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