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