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