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