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