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