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