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