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