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