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