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