]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/samhain/templates/samhainrc.erb
/etc/multipath/wwids probably should be in /var - samhain ignoring it
[dsa-puppet.git] / modules / samhain / templates / samhainrc.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 #####################################################################
7 #
8 # Configuration file template for samhain.
9 #
10 #####################################################################
11
12 # -- empty lines and lines starting with '#', ';' or '//' are ignored
13 # -- boolean options can be Yes/No or True/False or 1/0 
14 # -- you can PGP clearsign this file -- samhain will check (if compiled
15 #    with support) or otherwise ignore the signature
16 # -- CHECK mail address
17 #
18 # To each log facility, you can assign a threshold severity. Only
19 # reports with at least the threshold severity will be logged
20 # to the respective facility (even further below).
21 #
22 #####################################################################
23 #
24 # SETUP for file system checking:
25
26 # (i)   There are several policies, each has its own section. Put files
27 #       into the section for the appropriate policy (see below).
28 # (ii)  Section [EventSeverity]: 
29 #       To each policy, you can assign a severity (further below).
30 # (iii) Section [Log]: 
31 #       To each log facility, you can assign a threshold severity. Only
32 #       reports with at least the threshold severity will be logged
33 #       to the respective facility (even further below).
34 #
35 #####################################################################
36
37 #####################################################################
38 #
39 # Files are defined with: file = /absolute/path
40 #
41 # Directories are defined with:                  dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
43 #
44 # Directory inodes are checked. If you only want to check files
45 # in a directory, but not the directory inode itself, use (e.g.):
46 #
47 # [ReadOnly]
48 # dir = /some/directory
49 # [IgnoreAll]
50 # file = /some/directory
51 #
52 # You can use shell-style globbing patterns, like: file = /path/foo*
53
54 ######################################################################
55
56 [Misc]
57 ##
58 ## Add or subtract tests from the policies
59 ## - if you want to change their definitions,
60 ##   you need to do that before using the policies
61 ##
62 # RedefReadOnly = (no default)
63 # RedefAttributes=(no default)
64 # RedefLogFiles=(no default)
65 # RedefGrowingLogFiles=(no default)
66 # RedefIgnoreAll=(no default)
67 # RedefIgnoreNone=(no default)
68 # RedefUser0=(no default)
69 # RedefUser1=(no default)
70 IgnoreMissing=/etc/lvm/archive/.*.vg
71
72 [Attributes]
73 ##
74 ## for these files, only changes in permissions and ownership are checked
75 ##
76 file=/etc/mtab
77 file=/etc/ssh_random_seed
78 file=/etc/asound.conf
79 file=/etc/bacula/bacula-fd.conf
80 file=/etc/localtime
81 file=/etc/ioctl.save
82 file=/etc/passwd.backup
83 file=/etc/shadow.backup
84 file=/etc/postfix/prng_exch
85 file=/etc/adjtime
86 file=/etc/lvm/.cache
87 file=/etc/lvm/cache
88 file=/etc/lvm/cache/.cache
89 file=/etc/network/run/ifstate
90 file=/var/state/samhain/samhain_file
91 file=/etc/bind/zones/db.debian.net
92 file=/etc/exim4/bsmtp
93 file=/etc/fake-hwclock.data
94 <% if classes.include?("named::geodns") -%>
95 file=/etc/bind
96 file=/etc/bind/named.conf.acl
97 file=/etc/bind/named.conf.local
98 file=/etc/bind/geodns/named.conf.geo
99 file=/etc/bind/geodns/recvconf.files
100 <% end -%>
101 <% if classes.include?("named") -%>
102 file=/etc/bind/named.conf.options
103 <% end -%>
104 file=/etc/apache2/conf.d/puppet-builddlist
105 <% if classes.include?("roles::static_mirror") -%>
106 file=/etc/apache2/sites-available/static-vhosts-simple
107 file=/etc/static-clients.conf
108 <% elsif classes.include?("roles::static_master") -%>
109 file=/etc/static-clients.conf
110 <% elsif classes.include?("roles::static_source") -%>
111 file=/etc/static-clients.conf
112 <% end -%>
113 file=/etc/multipath/wwids
114
115 #
116 # There are files in /etc that might change, thus changing the directory
117 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
118 #
119 file=/etc
120 file=/etc/ssh
121 file=/etc/network/run
122 file=/etc/bind/zones
123 file=/etc/spamassassin/sa-update-keys
124 file=/etc/init.d/.depend.boot
125 file=/etc/init.d/.depend.start
126 file=/etc/init.d/.depend.stop
127
128 # These are the directories for the files we handle with puppet
129 file=/etc/apache2/conf.d
130 files=/etc/apache2/mods-enabled
131 files=/etc/apache2/sites-available
132 file=/etc/bacula
133 file=/etc/samhain
134 file=/etc/munin
135 file=/etc/munin/plugins
136 file=/etc/munin/plugin-conf.d
137 file=/etc/munin/munin-conf.d
138 file=/etc/exim4
139 file=/etc/exim4/ssl
140 file=/etc/apt
141 file=/etc/apt/apt.conf.d
142 file=/etc/apt/sources.list.d
143 file=/etc/apt/preferences.d
144 file=/etc/default
145 file=/etc/logrotate.d
146 file=/etc/nagios
147 file=/etc/nagios/nrpe.d
148 file=/etc/nagios/obsolete-packages-ignore.d
149 file=/etc/bind/geodns
150 <% if scope.function_has_role(['nagiosmaster']) -%>
151 file=/etc/nagios3/puppetconf.d
152 <% end -%>
153 file=/etc/puppet
154 file=/etc/cron.d
155 file=/etc/cron.weekly
156 file=/usr/lib/nagios/plugins
157 file=/usr/sbin
158 file=/etc/monit
159 file=/etc/monit/monit.d
160 file=/etc/pam.d
161 file=/etc/schroot/default
162 file=/etc/schroot/setup.d
163 file=/etc/sysctl.d
164 file=/etc/syslog-ng
165 file=/etc/stunnel
166 file=/etc/ferm/
167 file=/etc/ferm/conf.d
168 file=/etc/ferm/dsa.d
169 file=/etc/rc.local
170 file=/etc/unbound
171 file=/etc/dsa
172 file=/etc/rabbitmq
173 <% if scope.function_has_role(['static_mirror']) or scope.function_has_role(['static_source']) or scope.function_has_role(['static_master']) -%>
174 file=/etc/ssh/userkeys
175 file=/etc/ssh/userkeys/staticsync
176 <% end -%>
177
178 [LogFiles]
179 ##
180 ## for these files, changes in signature, timestamps, and size are ignored 
181 ##
182 file=/etc/motd
183
184 # is on tmpfs, ignore.
185 #file=/var/run/utmp
186
187
188 #####################################################################
189 #
190 # This would be the proper syntax for parts that should only be
191 #    included for certain hosts.
192 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
193 #    result still has the proper syntax for the config file.
194 # You may have any number of @HOSTNAME/@end brackets.
195 # HOSTNAME should be the fully qualified 'official' name 
196 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
197 #    No IP number - except if samhain cannot determine the 
198 #    fully qualified hostname.
199 #
200 # @HOSTNAME
201 # file=/foo/bar
202 # @end
203 #
204 # These are two examples for conditional inclusion/exclusion
205 # of a machine based on the output from 'uname -srm'
206 #
207 # $Linux:2.*.7:i666
208 # file=/foo/bar3
209 # $end
210 #
211 # !$Linux:2.*.7:i686
212 # file=/foo/bar2
213 # $end
214 #
215 #####################################################################
216
217 [GrowingLogFiles]
218 ##
219 ## for these files, changes in signature, timestamps, and increase in size
220 ##                  are ignored 
221 ##
222 file=/var/log/warn
223 file=/var/log/messages
224 file=/var/log/wtmp
225 file=/var/log/faillog
226 file=/var/log/auth.log
227 file=/var/log/daemon.log
228 file=/var/log/user.log
229 file=/var/log/kern.log
230 file=/var/log/syslog
231
232
233 [IgnoreAll]
234 ##
235 ## for these files, no modifications are reported
236 ##
237 ## This file might be created or removed by the system sometimes.
238 ##
239 file=/etc/resolv.conf
240 <% if scope.lookupvar('site::nodeinfo')['buildd'] -%>
241 file=/etc/dupload.conf
242 <% end -%>
243 file=/etc/resolv.conf.pcmcia.save
244 file=/etc/nologin
245 file=/etc/postfix/debian.db
246 file=/etc/postfix/debian
247 file=/etc/ssh/ssh_known_hosts
248 file=/etc/ssh/ssh-rsa-shadow
249 file=/var/lib/misc/ssh-rsa-shadow
250 file=/etc/.da-backup.trace
251 file=/etc/postfix/debianhosts
252 file=/etc/postfix/debianhosts.db
253 file=/etc/blkid.tab
254 file=/etc/blkid.tab.old
255 file=/etc/resolv.conf.dhclient-new
256
257 # We handle these files with puppet - please to not be bothering us
258 file=/etc/dsa/pubsub.conf
259 file=/etc/nsswitch.conf
260 file=/etc/timezone
261 file=/etc/motd.tail
262 file=/etc/update-motd.d/
263 file=/etc/update-motd.d/puppet-motd
264 file=/etc/ntp.conf
265 file=/etc/samhain/samhainrc
266 file=/etc/munin/munin-node.conf
267 file=/etc/munin/plugin-conf.d/munin-node
268 dir=2/etc/munin/munin-conf.d
269 file=/etc/userdir-ldap.confc
270 file=/etc/exim4/blacklist
271 file=/etc/exim4/host_blacklist
272 file=/etc/exim4/callout_users
273 file=/etc/exim4/exim4.conf
274 file=/etc/exim4/grey_users
275 file=/etc/exim4/helo-check
276 file=/etc/exim4/locals
277 file=/etc/exim4/localusers
278 file=/etc/exim4/manualroute
279 file=/etc/exim4/rbllist
280 file=/etc/exim4/rhsbllist
281 file=/etc/exim4/submission-domains
282 file=/etc/exim4/virtualdomains
283 file=/etc/exim4/email-virtualdomains
284 file=/etc/exim4/whitelist
285 file=/etc/exim4/local-settings.conf
286 file=/etc/exim4/ssl/ca.crt
287 file=/etc/exim4/ssl/ca.crl
288 file=/etc/exim4/ssl/thishost.crt
289 file=/etc/exim4/ssl/thishost.key
290 dir=3/etc/exim4/email-virtualdomains
291 file=/etc/ssh/ssh_config
292 file=/etc/ssh/sshd_config
293 file=/etc/dsa/cron.ignore.dsa-puppet-stuff
294 file=/etc/vsftpd.conf
295 file=/etc/aliases
296 file=/etc/multipath.conf
297 file=/etc/static-components.conf
298 file=/etc/rabbitmq/rabbitmq.config
299 file=/etc/rabbitmq/enabled_plugins
300 dir=/etc/bacula/storages-list.d
301 dir=/etc/bacula/storage-conf.d
302 dir=/etc/bacula/conf.d
303 <%=
304 out=""
305 if scope.lookupvar('site::nodeinfo')['heavy_exim']
306   out = '
307 file=/etc/exim4/surbl_whitelist.txt
308 file=/etc/exim4/exim_surbl.pl
309 file=/etc/exim4/ccTLD.txt
310 file=/etc/clamav-unofficial-sigs.conf
311 file=/etc/clamav-unofficial-sigs.dsa.conf
312 '
313 end
314 out
315 %>
316 file=/etc/munin/plugins/bind
317 file=/etc/munin/plugins/bind_views
318 file=/etc/munin/plugins/cpu
319 file=/etc/munin/plugins/df
320 file=/etc/munin/plugins/df_abs
321 file=/etc/munin/plugins/df_inode
322 file=/etc/munin/plugins/entropy
323 file=/etc/munin/plugins/forks
324 file=/etc/munin/plugins/interrupts
325 file=/etc/munin/plugins/iostat
326 file=/etc/munin/plugins/irqstats
327 file=/etc/munin/plugins/load
328 file=/etc/munin/plugins/memory
329 file=/etc/munin/plugins/ntp_offset
330 file=/etc/munin/plugins/ntp_states
331 file=/etc/munin/plugins/open_files
332 file=/etc/munin/plugins/open_inodes
333 file=/etc/munin/plugins/processes
334 file=/etc/munin/plugins/ps_apache2
335 file=/etc/munin/plugins/ps_exim4
336 file=/etc/munin/plugins/ps_vsftpd
337 file=/etc/munin/plugins/spamassassin
338 file=/etc/munin/plugins/swap
339 file=/etc/munin/plugins/uptime
340 file=/etc/munin/plugins/vmstat
341 file=/etc/munin/plugins/vfstpd
342 file=/etc/munin/plugins/apache_accesses
343 file=/etc/munin/plugins/apache_processes
344 file=/etc/munin/plugins/apache_volume
345 file=/etc/munin/plugins/apache_servers
346 file=/etc/munin/plugins/exim_mailqueue
347 file=/etc/munin/plugins/exim_mailstats
348 file=/etc/munin/plugins/postfix_mailqueue
349 file=/etc/munin/plugins/postfix_mailvolume
350 file=/etc/apache2/conf.d/resource-limits
351 file=/etc/apache2/mods-enabled/info.conf
352 file=/etc/apache2/mods-enabled/info.load
353 file=/etc/apache2/mods-enabled/server.conf
354 file=/etc/apache2/mods-enabled/server.load
355 file=/etc/apache2/conf.d/server-status
356 file=/etc/apache2/conf.d/local-serverinfo
357 file=/etc/apache2/sites-available/www.debian.org
358 file=/etc/apt/preferences
359 file=/etc/apt/sources.list.d/volatile.list
360 file=/etc/apt/sources.list.d/security.list
361 file=/etc/apt/sources.list.d/buildd.list
362 file=/etc/apt/sources.list.d/buildd.debian.org.list
363 file=/etc/apt/sources.list.d/buildd.debian.org-proposed.list
364 file=/etc/apt/sources.list.d/buildd.debian.org-experimental.list
365 file=/etc/apt/sources.list.d/geoip.list
366 file=/etc/apt/sources.list.d/backports.debian.org.list
367 file=/etc/apt/sources.list.d/debian.org.list
368 file=/etc/apt/sources.list.d/db.debian.org.list
369 file=/etc/apt/sources.list.d/debian.restricted.list
370 file=/etc/apt/sources.list.d/debian.list
371 file=/etc/apt/sources.list.d/backports.org.list
372 file=/etc/apt/apt.conf.d/local-compression
373 file=/etc/apt/apt.conf.d/local-recommends
374 file=/etc/apt/apt.conf.d/local-pdiffs
375 file=/etc/apt/apt.conf.d/local-ssl-ca-global
376 file=/etc/apt/preferences.d/buildd
377 file=/etc/systemd/system/puppet.service
378 file=/etc/puppet/puppet.conf
379 file=/etc/default/puppet
380 file=/etc/default/postgrey
381 file=/etc/default/syslog-ng
382 file=/etc/logrotate.d/exim4-paniclog
383 file=/etc/logrotate.d/exim4-base
384 file=/etc/logrotate.d/syslog-ng
385 file=/etc/syslog-ng/syslog-ng.conf
386 file=/usr/sbin/dsa-update-apt-status
387 file=/usr/sbin/dsa-update-samhain-status
388 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
389 file=/etc/nagios/nrpe.d/debianorg.cfg
390 file=/etc/nagios/obsolete-packages-ignore
391 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
392 file=/etc/nagios/check-libs.conf
393 file=/usr/lib/nagios/plugins/dsa-check-packages
394 file=/usr/lib/nagios/plugins/dsa-check-soas
395 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
396 file=/usr/lib/nagios/plugins/dsa-check-samhain
397 file=/usr/lib/nagios/plugins/dsa-check-statusfile
398 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
399 file=/usr/lib/nagios/plugins/dsa-check-config
400 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
401 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
402 file=/usr/lib/nagios/plugins/dsa-check-puppet
403 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
404 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
405 file=/usr/lib/nagios/plugins/dsa-check-dabackup
406 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
407 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
408 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
409 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
410 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
411 file=/etc/sudoers
412 file=/etc/stunnel/puppet-ekeyd-peer.pem
413 file=/etc/stunnel/puppet-ekeyd.conf
414 file=/etc/sysctl.d/mmap_min_addr.conf
415 file=/etc/pam.d/sudo
416 file=/etc/monit/monitrc
417 file=/etc/monit/monit.d/01puppet
418 file=/etc/monit/monit.d/00debian.org
419 file=/etc/cron.d/dsa-puppet-stuff
420 file=/etc/cron.d/dsa-buildd
421 file=/etc/cron.weekly/stunnel-ekey-restart
422 file=/etc/default/schroot
423 file=/etc/schroot/default/nssdatabases
424 file=/etc/schroot/setup.d/99porterbox-extra-sources
425 file=/etc/schroot/setup.d/99porterbox-extra-apt-options
426 file=/etc/openvswitch/conf.db
427
428 <% if scope.function_has_role(['nagiosmaster']) -%>
429 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
430 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
431 file=/etc/nagios3/puppetconf.d/auto-services.cfg
432 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
433 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
434 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
435 file=/etc/nagios3/puppetconf.d/auto-servicegroups.cfg
436 file=/etc/nagios3/puppetconf.d/contacts.cfg
437 <% end -%>
438 <% if scope.function_has_role(['muninmaster']) -%>
439 file=/etc/munin/munin.conf
440 <% end -%>
441 <% if scope.function_has_role(['puppetmaster']) -%>
442 dir=8/etc/puppet
443 <% end -%>  
444 <% if classes.include?('named::geodns') -%>
445 dir=1/etc/bind/geodns
446 <% end -%>
447 <% if classes.include?('named::authoritative') -%>
448 dir=1/etc/bind
449 file=/etc/bind/named.conf.debian-zones
450 <% end -%>
451 dir=3/etc/lvm/archive
452 dir=3/etc/lvm/backup
453 dir=1/etc/ferm/dsa.d
454 dir=1/etc/ferm/conf.d
455 dir=3/etc/facter
456 file=/etc/ferm/conf.d/me.conf
457 file=/etc/ferm/conf.d/defs.conf
458 file=/etc/ferm/ferm.conf
459 file=/etc/ssl/README
460 dir=2/etc/ssl/debian
461 dir=1/etc/ssl/certs
462 dir=1/etc/ssl/ca-debian
463 dir=1/etc/ssl/ca-global
464 file=/etc/ca-certificates.conf
465 file=/etc/ca-certificates-debian.conf
466 file=/etc/ca-certificates-global.conf
467 file=/etc/ssl/private/ssl-cert-snakeoil.key
468 file=/etc/unbound/unbound.conf
469 <% if scope.lookupvar('::fqdn') == "draghi.debian.org" -%>
470 file=/etc/openvpn/deb-mgmt-clients.pool
471 <% end -%>
472
473
474 <% if scope.function_has_role(['puppetmaster']) %>
475
476 # Damn you rails apps and your shoddy packaging
477 file=/usr/share/puppet-dashboard/public/stylesheets
478 file=/usr/share/puppet-dashboard/public/javascripts
479 file=/usr/share/puppet-dashboard/public/stylesheets/all.css
480 file=/usr/share/puppet-dashboard/public/javascripts/all.js
481 dir=1/usr/share/puppet-dashboard/tmp/pids
482 <% end -%>
483
484 <% if classes.include?("porterbox") %>
485 file=/etc/cron.weekly/puppet-mail-big-homedirs
486 <% end -%>
487
488 [IgnoreNone]
489 ##
490 ## for these files, all modifications (even access time) are reported
491 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
492 ##      just to watch whether someone will access it ...
493 ##
494
495 [Prelink]
496 ##
497 ## Use for prelinked files or directories holding them
498 ##
499
500
501 [ReadOnly]
502 ##
503 ## for these files, only access time is ignored
504 ##
505 dir=/usr/bin
506 dir=/bin
507 dir=/boot
508 #
509 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
510 # so we go 3 levels deep
511 #
512 dir=3/sbin
513 dir=/usr/sbin
514 dir=/lib
515 dir=3/usr/lib
516 dir=3/usr/share
517 #
518 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
519 #        so we go 3 levels deep there too
520 #
521 dir=3/etc
522
523 # Various directories / files that may include / be SUID/SGID binaries
524 #
525 #
526 file=/usr/lib/pt_chown
527 # X11, in Debian X7 this is now a symlink
528 #dir=/usr/X11R6/bin
529 #dir=/usr/X11R6/lib/X11/xmcd/bin
530 # Apache:
531 #file=/usr/lib/apache/suexec
532 #file=/usr/lib/apache/suexec.disabled
533 # Extra directories:
534 #dir=/opt/gnome/bin
535 #dir=/opt/kde/bin
536
537 [User0]
538 [User1]
539 ## User0 and User1 are sections for files/dirs with user-definable checking
540 ## (see the manual) 
541
542
543 [EventSeverity]
544 ##
545 ## Here you can assign severities to policy violations.
546 ## If this severity exceeds the treshold of a log facility (see below),
547 ## a policy violation will be logged to that facility.
548 ##
549 ## Severity for verification failures.
550 ##
551 # SeverityReadOnly=crit
552 # SeverityLogFiles=crit
553 # SeverityGrowingLogs=crit
554 # SeverityIgnoreNone=crit
555 # SeverityAttributes=crit
556 # SeverityUser0=crit
557 # SeverityUser1=crit
558
559 # Default behaviour
560 SeverityReadOnly=crit
561 SeverityLogFiles=crit
562 SeverityGrowingLogs=warn
563 SeverityIgnoreNone=crit
564 SeverityAttributes=crit
565
566
567 ##
568 ## We have a file in IgnoreAll that might or might not be present.
569 ## Setting the severity to 'info' prevents messages about deleted/new file.
570 ##
571 # SeverityIgnoreAll=crit
572 SeverityIgnoreAll=info
573
574 ## Files : file access problems
575 # SeverityFiles=crit
576
577 ## Dirs  : directory access problems
578 # SeverityDirs=crit
579
580 ## Names : suspect (non-printable) characters in a pathname
581 # SeverityNames=crit
582
583 # Default behaviour
584 SeverityFiles=crit
585 SeverityDirs=crit
586 SeverityNames=warn
587
588
589 [Log]
590 ##
591 ## Switch on/OFF log facilities and set their threshold severity
592 ##
593 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
594 ## 'mark' is used for timestamps.
595 ##
596 ##
597 ## Use 'none' to SWITCH OFF a log facility
598 ## 
599 ## By default, everything equal to and above the threshold is logged.
600 ## The specifiers '*', '!', and '=' are interpreted as  
601 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
602 ## at least on Linux). Examples:
603 ## MailSeverity=*
604 ## MailSeverity=!warn
605 ## MailSeverity==crit
606
607 ## E-mail
608 ##
609 # MailSeverity=none
610
611 ## Console
612 ##
613 # PrintSeverity=info
614
615 ## Logfile
616 ##
617 # LogSeverity=mark
618
619 ## Syslog
620 ##
621 # SyslogSeverity=none
622
623 ## Remote server (yule)
624 ##
625 # ExportSeverity=none
626
627 ## External script or program
628 ##
629 # ExternalSeverity = none
630
631 ## Logging to a database
632 ##
633 # DatabaseSeverity = none
634
635 # Default behaviour
636 MailSeverity=crit
637 PrintSeverity=none
638 LogSeverity=info
639 SyslogSeverity=alert
640 #ExportSeverity=none
641
642
643
644
645
646 #####################################################
647 #
648 # Optional modules
649 #
650 #####################################################
651
652 # [SuidCheck]
653 ##
654 ## --- Check the filesystem for SUID/SGID binaries
655 ## 
656
657 ## Switch on
658 #
659 # SuidCheckActive = yes
660
661 ## Interval for check (seconds)
662 #
663 # SuidCheckInterval = 7200
664
665 ## Alternative: crontab-like schedule
666 #
667 # SuidCheckSchedule = NULL
668  
669 ## Directory to exclude 
670 #
671 # SuidCheckExclude = NULL
672
673 ## Limit on files per second (0 == no limit)
674 #
675 # SuidCheckFps = 0
676
677 ## Alternative: yield after every file
678 #
679 # SuidCheckYield = no
680
681 ## Severity of a detection
682 #
683 # SeveritySuidCheck = crit
684
685 ## Quarantine SUID/SGID files if found
686 #
687 # SuidCheckQuarantineFiles = yes
688
689 ## Method for Quarantining files:
690 #  0 - Delete or truncate the file.
691 #  1 - Remove SUID/SGID permissions from file.
692 #  2 - Move SUID/SGID file to quarantine dir.
693 #
694 # SuidCheckQuarantineMethod = 0
695
696 ## For method 1 and 3, really delete instead of truncating
697
698 # SuidCheckQuarantineDelete = yes
699
700 # [Kernel]
701 ##
702 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
703 ##
704
705 ## Switch on/off
706 #
707 #KernelCheckActive = True
708
709 ## Check interval (seconds); btw., the check is VERY fast
710 #
711 # KernelCheckInterval = 300
712
713 ## Severity
714 #
715 # SeverityKernel = crit
716
717
718 # [Utmp]
719 ##
720 ## --- Logging of login/logout events
721 ##
722
723 ## Switch on/off
724 #
725 # LoginCheckActive = True
726
727 ## Severity for logins, multiple logins, logouts
728
729 # SeverityLogin=info
730 # SeverityLoginMulti=warn
731 # SeverityLogout=info
732
733 ## Interval for login/logout checks
734 #
735 # LoginCheckInterval = 300
736
737
738 # [Database]
739 ##
740 ## --- Logging to a relational database
741 ##
742
743 ## Database name
744 #
745 # SetDBName = samhain
746
747 ## Database table
748 #
749 # SetDBTable = log
750
751 ## Database user
752 #
753 # SetDBUser = samhain
754
755 ## Database password
756 #
757 # SetDBPassword = (default: none)
758
759 ## Database host
760 #
761 # SetDBHost = localhost
762
763 ## Log the server timestamp for received messages
764 #
765 # SetDBServerTstamp = True
766
767 ## Use a persistent connection
768 #
769 # UsePersistent = True
770
771 # [External]
772 ##
773 ## Interface to call external scripts/programs for logging
774 ##
775
776 ## The absolute path to the command
777 ## - Each invocation of this directive will end the definition of the
778 ##   preceding command, and start the definition of 
779 ##   an additional, new command
780 #
781 # OpenCommand = (no default)
782
783 ## Type (log or rv)
784 ## - log for log messages, srv for messages received by the server
785 #
786 # SetType = log
787
788 ## The command (full command line) to execute
789 #
790 # SetCommandLine = (no default)
791
792 ## The environment (KEY=value; repeat for more)
793 #
794 # SetEnviron = TZ=(your timezone)
795
796 ## The TIGER192 checksum (optional)
797 #
798 # SetChecksum = (no default)
799
800 ## User who runs the command
801 #
802 # SetCredentials = (default: samhain process uid)
803
804 ## Words not allowed in message
805 #
806 # SetFilterNot = (none)
807
808 ## Words required (ALL of them)
809 #
810 # SetFilterAnd = (none)
811
812 ## Words required (at least one)
813 #
814 # SetFilterOr = (none)
815
816 ## Deadtime between consecutive calls
817 #
818 # SetDeadtime = 0
819
820 ## Add default environment (HOME, PATH, SHELL)
821 #
822 # SetDefault = no
823
824
825 #####################################################
826 #
827 # Miscellaneous configuration options
828 #
829 #####################################################
830
831 [Misc]
832
833 ## whether to become a daemon process
834 ## (this is not honoured on database initialisation)
835 #
836 # Daemon = no
837 Daemon = yes
838
839 ## whether to test signature of files (init/check/none)
840 ## - if 'none', then we have to decide this on the command line -
841 #
842 # ChecksumTest = none
843 ChecksumTest=check
844
845 ## whether to drop linux capabilities that are not required
846 ## - will make a root process a 'mere mortal' in many respects
847 #
848 # UseCaps = yes
849
850 ## Set nice level (-19 to 19, see 'man nice'),
851 ## and I/O limit (kilobytes per second; 0 == off)
852 ## to reduce load on host.
853 #
854 # SetNiceLevel = 0
855 # SetIOLimit = 0
856
857 ## The version string to embed in file signature databases
858 #
859 # VersionString = NULL
860
861 ## Interval between time stamp messages
862 #
863 # SetLoopTime = 60
864 SetLoopTime = 600
865
866 ## Interval between file checks 
867 #
868 # SetFileCheckTime = 600
869 SetFileCheckTime = 7200
870
871 ## Alternative: crontab-like schedule
872 #
873 # FileCheckScheduleOne = NULL
874
875 ## Alternative: crontab-like schedule(2)
876 #
877 # FileCheckScheduleTwo = NULL
878
879 ## Report only once on modified fles 
880 ## Setting this to 'FALSE' will generate a report for any policy 
881 ## violation (old and new ones) each time the daemon checks the file system.
882 #
883 # ReportOnlyOnce = True
884
885 ## Report in full detail
886 #
887 # ReportFullDetail = False
888
889 ## Report file timestamps in local time rather than GMT
890 #
891 # UseLocalTime = No
892
893 ## The console device (can also be a file or named pipe)
894 ## - There are two console devices. Accordingly, you can use
895 ##   this directive a second time to set the second console device.
896 ##   If you have not defined the second device at compile time,
897 ##   and you don't want to use it, then:
898 ##   setting it to /dev/null is less effective than just leaving
899 ##   it alone (setting to /dev/null will waste time by opening
900 ##   /dev/null and writing to it)
901 #
902 # SetConsole = /dev/console
903
904 ## Activate the SysV IPC message queue
905 #
906 # MessageQueueActive = False
907
908
909 ## If false, skip reverse lookup when connecting to a host known 
910 ## by name rather than IP address (i.e. trust the DNS)
911 #
912 # SetReverseLookup = True
913
914 ## --- E-Mail ---
915
916 # Only highest-level (alert) reports will be mailed immediately,
917 # others will be queued. Here you can define, when the queue will
918 # be flushed (Note: the queue is automatically flushed after
919 # completing a file check).
920 #
921 SetMailTime = 86400
922
923 ## Maximum number of mails to queue
924 #
925 SetMailNum = 10
926
927 ## Recipient (max. 8)
928 #
929 SetMailAddress=samhain-reports@<%= fqdn -%>
930
931 SetMailRelay = localhost
932
933 ## Custom subject format
934 #
935 MailSubject = [Samhain at %H] %T: %S
936
937 ## --- end E-Mail ---
938
939 ## Path to the prelink executable
940 #
941 # SetPrelinkPath = /usr/sbin/prelink
942
943 ## TIGER192 checksum of the prelink executable
944 #
945 # SetPrelinkChecksum = (no default)
946
947
948 ## Path to the executable. If set, will be checksummed after startup
949 ## and before exit.
950 #
951 # SamhainPath = (no default)
952
953
954 ## The IP address of the log server
955 #
956 # SetLogServer = (default: compiled-in)
957
958 ## The IP address of the time server
959 #
960 # SetTimeServer = (default: compiled-in)
961
962 ## Trusted Users (comma delimited list of user names) 
963 #
964 # TrustedUser = (no default; this adds to the compiled-in list)
965
966 ## Path to the file signature database
967 #
968 # SetDatabasePath = (default: compiled-in)
969
970 ## Path to the log file
971 #
972 # SetLogfilePath = (default: compiled-in)
973
974 ## Path to the PID file
975 #
976 # SetLockPath = (default: compiled-in)
977
978
979 ## The digest/checksum/hash algorithm
980 #
981 # DigestAlgo = TIGER192
982
983
984 ## Custom format for message header. 
985 ## CAREFUL if you use XML logfile format.
986 ##
987 ## %S severity
988 ## %T timestamp
989 ## %C class
990 ##
991 ## %F source file
992 ## %L source line
993 #
994 # MessageHeader="%S %T "
995
996
997 ## Don't log path to config/database file on startup
998 #
999 # HideSetup = False
1000
1001 ## The syslog facility, if you log to syslog
1002 #
1003 # SyslogFacility = LOG_AUTHPRIV
1004 SyslogFacility=LOG_LOCAL2
1005
1006 ## The message authentication method
1007 ## - If you change this, you *must* change it
1008 ##   on client *and* server
1009 #
1010 # MACType = HMAC-TIGER
1011
1012
1013 ## everything below is ignored
1014 [EOF]
1015
1016 #####################################################################
1017 # This would be the proper syntax for parts that should only be
1018 #    included for certain hosts.
1019 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
1020 #    result still has the proper syntax for the config file.
1021 # You may have any number of @HOSTNAME/@end brackets.
1022 # HOSTNAME should be the fully qualified 'official' name 
1023 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
1024 #    No IP number - except if samhain cannot determine the 
1025 #    fully qualified hostname.
1026 #
1027 # @HOSTNAME
1028 # file=/foo/bar
1029 # @end
1030 #
1031 # These are two examples for conditional inclusion/exclusion
1032 # of a machine based on the output from 'uname -srm'
1033 # $Linux:2.*.7:i666
1034 # file=/foo/bar3
1035 # $end
1036 #
1037 # !$Linux:2.*.7:i686
1038 # file=/foo/bar2
1039 # $end
1040 #
1041 #####################################################################