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