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