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