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