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
6 #####################################################################
8 # Configuration file template for samhain.
10 #####################################################################
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
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).
22 #####################################################################
24 # SETUP for file system checking:
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).
35 #####################################################################
37 #####################################################################
39 # Files are defined with: file = /absolute/path
41 # Directories are defined with: dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
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.):
48 # dir = /some/directory
50 # file = /some/directory
52 # You can use shell-style globbing patterns, like: file = /path/foo*
54 ######################################################################
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
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)
73 ## for these files, only changes in permissions and ownership are checked
76 file=/etc/ssh_random_seed
81 file=/etc/passwd.backup
82 file=/etc/shadow.backup
83 file=/etc/postfix/prng_exch
87 file=/etc/lvm/cache/.cache
88 file=/etc/network/run/ifstate
89 file=/var/state/samhain/samhain_file
90 file=/etc/bind/zones/db.debian.net
92 <% if hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
93 file=/etc/bind/named.conf.acl
94 file=/etc/bind/named.conf.options
95 file=/etc/bind/named.conf.local
96 file=/etc/bind/geodns/named.conf.geo
97 file=/etc/bind/geodns/recvconf.files
98 file=/etc/bind/geodns/db.www.debian.org.SA
99 file=/etc/bind/geodns/db.www.debian.org.OC
100 file=/etc/bind/geodns/db.www.debian.org.NA
101 file=/etc/bind/geodns/db.www.debian.org.EU
102 file=/etc/bind/geodns/db.www.debian.org.AS
103 file=/etc/bind/geodns/db.www.debian.org.AN
104 file=/etc/bind/geodns/db.www.debian.org.AF
105 file=/etc/bind/geodns/db.www.debian.org
106 file=/etc/bind/geodns/db.security.debian.org.SA
107 file=/etc/bind/geodns/db.security.debian.org.OC
108 file=/etc/bind/geodns/db.security.debian.org.NA
109 file=/etc/bind/geodns/db.security.debian.org.EU
110 file=/etc/bind/geodns/db.security.debian.org.AS
111 file=/etc/bind/geodns/db.security.debian.org.AN
112 file=/etc/bind/geodns/db.security.debian.org.AF
113 file=/etc/bind/geodns/db.security.debian.org
114 file=/etc/bind/geodns/db.video.debconf.debian.org.EU
115 file=/etc/bind/geodns/db.video.debconf.debian.org.AF
116 file=/etc/bind/geodns/db.video.debconf.debian.org.OC
117 file=/etc/bind/geodns/db.video.debconf.debian.org.SA
118 file=/etc/bind/geodns/db.video.debconf.debian.org.AS
119 file=/etc/bind/geodns/db.video.debconf.debian.org.NA
120 file=/etc/bind/geodns/db.video.debconf.debian.org.AN
121 file=/etc/bind/geodns/db.video.debconf.debian.org
126 # There are files in /etc that might change, thus changing the directory
127 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
131 file=/etc/network/run
134 # These are the directories for the files we handle with puppet
140 file=/etc/apt/apt.conf.d
141 file=/etc/apt/sources.list.d
143 file=/etc/logrotate.d
145 file=/etc/nagios/nrpe.d
146 file=/etc/nagios/obsolete-packages-ignore.d
147 file=/etc/bind/geodns
150 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
152 else extradir="file=/etc/puppet"
157 file=/usr/lib/nagios/plugins
160 file=/etc/monit/monit.d
167 ## for these files, changes in signature, timestamps, and size are ignored
174 #####################################################################
176 # This would be the proper syntax for parts that should only be
177 # included for certain hosts.
178 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
179 # result still has the proper syntax for the config file.
180 # You may have any number of @HOSTNAME/@end brackets.
181 # HOSTNAME should be the fully qualified 'official' name
182 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
183 # No IP number - except if samhain cannot determine the
184 # fully qualified hostname.
190 # These are two examples for conditional inclusion/exclusion
191 # of a machine based on the output from 'uname -srm'
201 #####################################################################
205 ## for these files, changes in signature, timestamps, and increase in size
209 file=/var/log/messages
211 file=/var/log/faillog
212 file=/var/log/auth.log
213 file=/var/log/daemon.log
214 file=/var/log/user.log
215 file=/var/log/kern.log
221 ## for these files, no modifications are reported
223 ## This file might be created or removed by the system sometimes.
225 file=/etc/resolv.conf.pcmcia.save
227 file=/etc/postfix/debian.db
228 file=/etc/postfix/debian
229 file=/etc/ssh/ssh_known_hosts
230 file=/etc/ssh/ssh-rsa-shadow
231 file=/var/lib/misc/ssh-rsa-shadow
232 file=/etc/.da-backup.trace
233 file=/etc/postfix/debianhosts
234 file=/etc/postfix/debianhosts.db
236 file=/etc/blkid.tab.old
237 file=/etc/resolv.conf.dhclient-new
239 # We handle these files with puppet - please to not be bothering us
242 file=/etc/samhain/samhainrc
243 file=/etc/munin/munin-node.conf
244 file=/etc/userdir-ldap.confc
245 file=/etc/exim4/blacklist
246 file=/etc/exim4/callout_users
247 file=/etc/exim4/exim4.conf
248 file=/etc/exim4/grey_users
249 file=/etc/exim4/helo-check
250 file=/etc/exim4/locals
251 file=/etc/exim4/localusers
252 file=/etc/exim4/manualroute
253 file=/etc/exim4/rbllist
254 file=/etc/exim4/rcpthosts
255 file=/etc/exim4/rhsbllist
256 file=/etc/exim4/virtualdomains
257 file=/etc/exim4/whitelist
258 file=/etc/exim4/local-auto.conf
259 file=/etc/exim4/local-settings.conf
260 file=/etc/exim4/ssl/ca.crt
261 file=/etc/exim4/ssl/ca.crl
262 file=/etc/exim4/ssl/thishost.crt
263 file=/etc/exim4/ssl/thishost.key
266 if not nodeinfo['heavy_exim'].empty?
268 file=/etc/exim4/surbl_whitelist.txt
269 file=/etc/exim4/exim_surbl.pl
270 file=/etc/exim4/ccTLD.txt
271 file=/etc/clamav-unofficial-sigs.conf
272 file=/etc/clamav-unofficial-sigs.dsa.conf
277 file=/etc/apt/preferences
278 file=/etc/apt/sources.list.d/volatile.list
279 file=/etc/apt/sources.list.d/security.list
280 file=/etc/apt/sources.list.d/buildd.list
281 file=/etc/apt/sources.list.d/debian.org.list
282 file=/etc/apt/sources.list.d/debian.restricted.list
283 file=/etc/apt/sources.list.d/debian.list
284 file=/etc/apt/sources.list.d/backports.org.list
285 file=/etc/apt/apt.conf.d/local-recommends
286 file=/etc/apt/apt.conf.d/local-pdiffs
287 file=/etc/puppet/puppet.conf
288 file=/etc/default/puppet
289 file=/etc/default/postgrey
290 file=/etc/logrotate.d/exim4-paniclog
291 file=/etc/logrotate.d/exim4-base
292 file=/etc/logrotate.d/syslog-ng
293 file=/etc/syslog-ng/syslog-ng.conf
294 file=/usr/sbin/dsa-update-apt-status
295 file=/usr/sbin/dsa-update-samhain-status
296 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
297 file=/etc/nagios/nrpe.d/debianorg.cfg
298 file=/etc/nagios/obsolete-packages-ignore
299 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
300 file=/usr/lib/nagios/plugins/dsa-check-packages
301 file=/usr/lib/nagios/plugins/dsa-check-soas
302 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
303 file=/usr/lib/nagios/plugins/dsa-check-samhain
304 file=/usr/lib/nagios/plugins/dsa-check-statusfile
305 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
306 file=/usr/lib/nagios/plugins/dsa-check-config
307 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
308 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
309 file=/usr/lib/nagios/plugins/dsa-check-puppet
310 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
311 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
312 file=/usr/lib/nagios/plugins/dsa-check-dabackup
313 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
314 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
315 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
316 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
317 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
320 file=/etc/monit/monitrc
321 file=/etc/monit/monit.d/01puppet
322 file=/etc/monit/monit.d/00debian.org
323 file=/etc/cron.d/dsa-puppet-stuff
326 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
327 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
328 file=/etc/nagios3/puppetconf.d/auto-services.cfg
329 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
330 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
331 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
332 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
333 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
340 ## for these files, all modifications (even access time) are reported
341 ## - you may create some interesting-looking file (like /etc/safe_passwd),
342 ## just to watch whether someone will access it ...
347 ## Use for prelinked files or directories holding them
353 ## for these files, only access time is ignored
359 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
360 # so we go 3 levels deep
367 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
368 # so we go 3 levels deep there too
372 # Various directories / files that may include / be SUID/SGID binaries
375 file=/usr/lib/pt_chown
376 # X11, in Debian X7 this is now a symlink
378 #dir=/usr/X11R6/lib/X11/xmcd/bin
380 #file=/usr/lib/apache/suexec
381 #file=/usr/lib/apache/suexec.disabled
388 ## User0 and User1 are sections for files/dirs with user-definable checking
394 ## Here you can assign severities to policy violations.
395 ## If this severity exceeds the treshold of a log facility (see below),
396 ## a policy violation will be logged to that facility.
398 ## Severity for verification failures.
400 # SeverityReadOnly=crit
401 # SeverityLogFiles=crit
402 # SeverityGrowingLogs=crit
403 # SeverityIgnoreNone=crit
404 # SeverityAttributes=crit
409 SeverityReadOnly=crit
410 SeverityLogFiles=crit
411 SeverityGrowingLogs=warn
412 SeverityIgnoreNone=crit
413 SeverityAttributes=crit
417 ## We have a file in IgnoreAll that might or might not be present.
418 ## Setting the severity to 'info' prevents messages about deleted/new file.
420 # SeverityIgnoreAll=crit
421 SeverityIgnoreAll=info
423 ## Files : file access problems
426 ## Dirs : directory access problems
429 ## Names : suspect (non-printable) characters in a pathname
440 ## Switch on/OFF log facilities and set their threshold severity
442 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
443 ## 'mark' is used for timestamps.
446 ## Use 'none' to SWITCH OFF a log facility
448 ## By default, everything equal to and above the threshold is logged.
449 ## The specifiers '*', '!', and '=' are interpreted as
450 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
451 ## at least on Linux). Examples:
453 ## MailSeverity=!warn
454 ## MailSeverity==crit
470 # SyslogSeverity=none
472 ## Remote server (yule)
474 # ExportSeverity=none
476 ## External script or program
478 # ExternalSeverity = none
480 ## Logging to a database
482 # DatabaseSeverity = none
495 #####################################################
499 #####################################################
503 ## --- Check the filesystem for SUID/SGID binaries
508 # SuidCheckActive = yes
510 ## Interval for check (seconds)
512 # SuidCheckInterval = 7200
514 ## Alternative: crontab-like schedule
516 # SuidCheckSchedule = NULL
518 ## Directory to exclude
520 # SuidCheckExclude = NULL
522 ## Limit on files per second (0 == no limit)
526 ## Alternative: yield after every file
528 # SuidCheckYield = no
530 ## Severity of a detection
532 # SeveritySuidCheck = crit
534 ## Quarantine SUID/SGID files if found
536 # SuidCheckQuarantineFiles = yes
538 ## Method for Quarantining files:
539 # 0 - Delete or truncate the file.
540 # 1 - Remove SUID/SGID permissions from file.
541 # 2 - Move SUID/SGID file to quarantine dir.
543 # SuidCheckQuarantineMethod = 0
545 ## For method 1 and 3, really delete instead of truncating
547 # SuidCheckQuarantineDelete = yes
551 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
556 KernelCheckActive = True
558 ## Check interval (seconds); btw., the check is VERY fast
560 # KernelCheckInterval = 300
564 # SeverityKernel = crit
569 ## --- Logging of login/logout events
574 LoginCheckActive = True
576 ## Severity for logins, multiple logins, logouts
579 # SeverityLoginMulti=warn
580 # SeverityLogout=info
582 ## Interval for login/logout checks
584 # LoginCheckInterval = 300
589 ## --- Logging to a relational database
594 # SetDBName = samhain
602 # SetDBUser = samhain
606 # SetDBPassword = (default: none)
610 # SetDBHost = localhost
612 ## Log the server timestamp for received messages
614 # SetDBServerTstamp = True
616 ## Use a persistent connection
618 # UsePersistent = True
622 ## Interface to call external scripts/programs for logging
625 ## The absolute path to the command
626 ## - Each invocation of this directive will end the definition of the
627 ## preceding command, and start the definition of
628 ## an additional, new command
630 # OpenCommand = (no default)
633 ## - log for log messages, srv for messages received by the server
637 ## The command (full command line) to execute
639 # SetCommandLine = (no default)
641 ## The environment (KEY=value; repeat for more)
643 # SetEnviron = TZ=(your timezone)
645 ## The TIGER192 checksum (optional)
647 # SetChecksum = (no default)
649 ## User who runs the command
651 # SetCredentials = (default: samhain process uid)
653 ## Words not allowed in message
655 # SetFilterNot = (none)
657 ## Words required (ALL of them)
659 # SetFilterAnd = (none)
661 ## Words required (at least one)
663 # SetFilterOr = (none)
665 ## Deadtime between consecutive calls
669 ## Add default environment (HOME, PATH, SHELL)
674 #####################################################
676 # Miscellaneous configuration options
678 #####################################################
682 ## whether to become a daemon process
683 ## (this is not honoured on database initialisation)
688 ## whether to test signature of files (init/check/none)
689 ## - if 'none', then we have to decide this on the command line -
691 # ChecksumTest = none
694 ## whether to drop linux capabilities that are not required
695 ## - will make a root process a 'mere mortal' in many respects
699 ## Set nice level (-19 to 19, see 'man nice'),
700 ## and I/O limit (kilobytes per second; 0 == off)
701 ## to reduce load on host.
706 ## The version string to embed in file signature databases
708 # VersionString = NULL
710 ## Interval between time stamp messages
715 ## Interval between file checks
717 # SetFileCheckTime = 600
718 SetFileCheckTime = 7200
720 ## Alternative: crontab-like schedule
722 # FileCheckScheduleOne = NULL
724 ## Alternative: crontab-like schedule(2)
726 # FileCheckScheduleTwo = NULL
728 ## Report only once on modified fles
729 ## Setting this to 'FALSE' will generate a report for any policy
730 ## violation (old and new ones) each time the daemon checks the file system.
732 # ReportOnlyOnce = True
734 ## Report in full detail
736 # ReportFullDetail = False
738 ## Report file timestamps in local time rather than GMT
742 ## The console device (can also be a file or named pipe)
743 ## - There are two console devices. Accordingly, you can use
744 ## this directive a second time to set the second console device.
745 ## If you have not defined the second device at compile time,
746 ## and you don't want to use it, then:
747 ## setting it to /dev/null is less effective than just leaving
748 ## it alone (setting to /dev/null will waste time by opening
749 ## /dev/null and writing to it)
751 # SetConsole = /dev/console
753 ## Activate the SysV IPC message queue
755 # MessageQueueActive = False
758 ## If false, skip reverse lookup when connecting to a host known
759 ## by name rather than IP address (i.e. trust the DNS)
761 # SetReverseLookup = True
765 # Only highest-level (alert) reports will be mailed immediately,
766 # others will be queued. Here you can define, when the queue will
767 # be flushed (Note: the queue is automatically flushed after
768 # completing a file check).
772 ## Maximum number of mails to queue
776 ## Recipient (max. 8)
778 SetMailAddress=samhain-reports@debian.org
780 ## Mail relay (IP address)
783 if not nodeinfo['smarthost'].empty?
785 SetMailRelay = localhost
789 SetMailRelay = master.debian.org
794 ## Custom subject format
796 MailSubject = [Samhain at %H] %T: %S
798 ## --- end E-Mail ---
800 ## Path to the prelink executable
802 # SetPrelinkPath = /usr/sbin/prelink
804 ## TIGER192 checksum of the prelink executable
806 # SetPrelinkChecksum = (no default)
809 ## Path to the executable. If set, will be checksummed after startup
812 # SamhainPath = (no default)
815 ## The IP address of the log server
817 # SetLogServer = (default: compiled-in)
819 ## The IP address of the time server
821 # SetTimeServer = (default: compiled-in)
823 ## Trusted Users (comma delimited list of user names)
825 # TrustedUser = (no default; this adds to the compiled-in list)
827 ## Path to the file signature database
829 # SetDatabasePath = (default: compiled-in)
831 ## Path to the log file
833 # SetLogfilePath = (default: compiled-in)
835 ## Path to the PID file
837 # SetLockPath = (default: compiled-in)
840 ## The digest/checksum/hash algorithm
842 # DigestAlgo = TIGER192
845 ## Custom format for message header.
846 ## CAREFUL if you use XML logfile format.
855 # MessageHeader="%S %T "
858 ## Don't log path to config/database file on startup
862 ## The syslog facility, if you log to syslog
864 # SyslogFacility = LOG_AUTHPRIV
865 SyslogFacility=LOG_LOCAL2
867 ## The message authentication method
868 ## - If you change this, you *must* change it
869 ## on client *and* server
871 # MACType = HMAC-TIGER
874 ## everything below is ignored
877 #####################################################################
878 # This would be the proper syntax for parts that should only be
879 # included for certain hosts.
880 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
881 # result still has the proper syntax for the config file.
882 # You may have any number of @HOSTNAME/@end brackets.
883 # HOSTNAME should be the fully qualified 'official' name
884 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
885 # No IP number - except if samhain cannot determine the
886 # fully qualified hostname.
892 # These are two examples for conditional inclusion/exclusion
893 # of a machine based on the output from 'uname -srm'
902 #####################################################################