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