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