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