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