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