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