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