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