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