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