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