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