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