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