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