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