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