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