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