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