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
118 # There are files in /etc that might change, thus changing the directory
119 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
123 file=/etc/network/run
126 # These are the directories for the files we handle with puppet
132 file=/etc/apt/apt.conf.d
133 file=/etc/apt/sources.list.d
135 file=/etc/logrotate.d
137 file=/etc/nagios/nrpe.d
138 file=/etc/nagios/obsolete-packages-ignore.d
139 file=/etc/bind/geodns
142 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
144 else extradir="file=/etc/puppet"
149 file=/usr/lib/nagios/plugins
152 file=/etc/monit/monit.d
159 ## for these files, changes in signature, timestamps, and size are ignored
166 #####################################################################
168 # This would be the proper syntax for parts that should only be
169 # included for certain hosts.
170 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
171 # result still has the proper syntax for the config file.
172 # You may have any number of @HOSTNAME/@end brackets.
173 # HOSTNAME should be the fully qualified 'official' name
174 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
175 # No IP number - except if samhain cannot determine the
176 # fully qualified hostname.
182 # These are two examples for conditional inclusion/exclusion
183 # of a machine based on the output from 'uname -srm'
193 #####################################################################
197 ## for these files, changes in signature, timestamps, and increase in size
201 file=/var/log/messages
203 file=/var/log/faillog
204 file=/var/log/auth.log
205 file=/var/log/daemon.log
206 file=/var/log/user.log
207 file=/var/log/kern.log
213 ## for these files, no modifications are reported
215 ## This file might be created or removed by the system sometimes.
217 file=/etc/resolv.conf.pcmcia.save
219 file=/etc/postfix/debian.db
220 file=/etc/postfix/debian
221 file=/etc/ssh/ssh_known_hosts
222 file=/etc/ssh/ssh-rsa-shadow
223 file=/var/lib/misc/ssh-rsa-shadow
224 file=/etc/.da-backup.trace
225 file=/etc/postfix/debianhosts
226 file=/etc/postfix/debianhosts.db
228 file=/etc/blkid.tab.old
229 file=/etc/resolv.conf.dhclient-new
231 # We handle these files with puppet - please to not be bothering us
234 file=/etc/samhain/samhainrc
235 file=/etc/munin/munin-node.conf
236 file=/etc/userdir-ldap.confc
237 file=/etc/exim4/blacklist
238 file=/etc/exim4/callout_users
239 file=/etc/exim4/exim4.conf
240 file=/etc/exim4/grey_users
241 file=/etc/exim4/helo-check
242 file=/etc/exim4/locals
243 file=/etc/exim4/localusers
244 file=/etc/exim4/manualroute
245 file=/etc/exim4/rbllist
246 file=/etc/exim4/rcpthosts
247 file=/etc/exim4/rhsbllist
248 file=/etc/exim4/virtualdomains
249 file=/etc/exim4/whitelist
250 file=/etc/exim4/local-auto.conf
251 file=/etc/exim4/local-settings.conf
252 file=/etc/exim4/ssl/ca.crt
253 file=/etc/exim4/ssl/ca.crl
254 file=/etc/exim4/ssl/thishost.crt
255 file=/etc/exim4/ssl/thishost.key
258 if not nodeinfo['heavy_exim'].empty?
260 file=/etc/exim4/surbl_whitelist.txt
261 file=/etc/exim4/exim_surbl.pl
262 file=/etc/exim4/ccTLD.txt
267 file=/etc/apt/preferences
268 file=/etc/apt/sources.list.d/volatile.list
269 file=/etc/apt/sources.list.d/security.list
270 file=/etc/apt/sources.list.d/buildd.list
271 file=/etc/apt/sources.list.d/debian.org.list
272 file=/etc/apt/sources.list.d/debian.restricted.list
273 file=/etc/apt/sources.list.d/debian.list
274 file=/etc/apt/sources.list.d/backports.org.list
275 file=/etc/apt/apt.conf.d/local-recommends
276 file=/etc/apt/apt.conf.d/local-pdiffs
277 file=/etc/puppet/puppet.conf
278 file=/etc/default/puppet
279 file=/etc/default/postgrey
280 file=/etc/logrotate.d/exim4-paniclog
281 file=/etc/logrotate.d/exim4-base
282 file=/etc/logrotate.d/syslog-ng
283 file=/etc/syslog-ng/syslog-ng.conf
284 file=/usr/sbin/dsa-update-apt-status
285 file=/usr/sbin/dsa-update-samhain-status
286 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
287 file=/etc/nagios/nrpe.d/debianorg.cfg
288 file=/etc/nagios/obsolete-packages-ignore
289 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
290 file=/usr/lib/nagios/plugins/dsa-check-packages
291 file=/usr/lib/nagios/plugins/dsa-check-soas
292 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
293 file=/usr/lib/nagios/plugins/dsa-check-samhain
294 file=/usr/lib/nagios/plugins/dsa-check-statusfile
295 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
296 file=/usr/lib/nagios/plugins/dsa-check-config
297 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
298 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
299 file=/usr/lib/nagios/plugins/dsa-check-puppet
300 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
301 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
302 file=/usr/lib/nagios/plugins/dsa-check-dabackup
303 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
304 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
305 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
306 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
307 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
310 file=/etc/monit/monitrc
311 file=/etc/monit/monit.d/01puppet
312 file=/etc/monit/monit.d/00debian.org
313 file=/etc/cron.d/dsa-puppet-stuff
316 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
317 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
318 file=/etc/nagios3/puppetconf.d/auto-services.cfg
319 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
320 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
321 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
322 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
329 ## for these files, all modifications (even access time) are reported
330 ## - you may create some interesting-looking file (like /etc/safe_passwd),
331 ## just to watch whether someone will access it ...
336 ## Use for prelinked files or directories holding them
342 ## for these files, only access time is ignored
348 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
349 # so we go 3 levels deep
356 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
357 # so we go 3 levels deep there too
361 # Various directories / files that may include / be SUID/SGID binaries
364 file=/usr/lib/pt_chown
365 # X11, in Debian X7 this is now a symlink
367 #dir=/usr/X11R6/lib/X11/xmcd/bin
369 #file=/usr/lib/apache/suexec
370 #file=/usr/lib/apache/suexec.disabled
377 ## User0 and User1 are sections for files/dirs with user-definable checking
383 ## Here you can assign severities to policy violations.
384 ## If this severity exceeds the treshold of a log facility (see below),
385 ## a policy violation will be logged to that facility.
387 ## Severity for verification failures.
389 # SeverityReadOnly=crit
390 # SeverityLogFiles=crit
391 # SeverityGrowingLogs=crit
392 # SeverityIgnoreNone=crit
393 # SeverityAttributes=crit
398 SeverityReadOnly=crit
399 SeverityLogFiles=crit
400 SeverityGrowingLogs=warn
401 SeverityIgnoreNone=crit
402 SeverityAttributes=crit
406 ## We have a file in IgnoreAll that might or might not be present.
407 ## Setting the severity to 'info' prevents messages about deleted/new file.
409 # SeverityIgnoreAll=crit
410 SeverityIgnoreAll=info
412 ## Files : file access problems
415 ## Dirs : directory access problems
418 ## Names : suspect (non-printable) characters in a pathname
429 ## Switch on/OFF log facilities and set their threshold severity
431 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
432 ## 'mark' is used for timestamps.
435 ## Use 'none' to SWITCH OFF a log facility
437 ## By default, everything equal to and above the threshold is logged.
438 ## The specifiers '*', '!', and '=' are interpreted as
439 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
440 ## at least on Linux). Examples:
442 ## MailSeverity=!warn
443 ## MailSeverity==crit
459 # SyslogSeverity=none
461 ## Remote server (yule)
463 # ExportSeverity=none
465 ## External script or program
467 # ExternalSeverity = none
469 ## Logging to a database
471 # DatabaseSeverity = none
484 #####################################################
488 #####################################################
492 ## --- Check the filesystem for SUID/SGID binaries
497 # SuidCheckActive = yes
499 ## Interval for check (seconds)
501 # SuidCheckInterval = 7200
503 ## Alternative: crontab-like schedule
505 # SuidCheckSchedule = NULL
507 ## Directory to exclude
509 # SuidCheckExclude = NULL
511 ## Limit on files per second (0 == no limit)
515 ## Alternative: yield after every file
517 # SuidCheckYield = no
519 ## Severity of a detection
521 # SeveritySuidCheck = crit
523 ## Quarantine SUID/SGID files if found
525 # SuidCheckQuarantineFiles = yes
527 ## Method for Quarantining files:
528 # 0 - Delete or truncate the file.
529 # 1 - Remove SUID/SGID permissions from file.
530 # 2 - Move SUID/SGID file to quarantine dir.
532 # SuidCheckQuarantineMethod = 0
534 ## For method 1 and 3, really delete instead of truncating
536 # SuidCheckQuarantineDelete = yes
540 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
545 KernelCheckActive = True
547 ## Check interval (seconds); btw., the check is VERY fast
549 # KernelCheckInterval = 300
553 # SeverityKernel = crit
558 ## --- Logging of login/logout events
563 LoginCheckActive = True
565 ## Severity for logins, multiple logins, logouts
568 # SeverityLoginMulti=warn
569 # SeverityLogout=info
571 ## Interval for login/logout checks
573 # LoginCheckInterval = 300
578 ## --- Logging to a relational database
583 # SetDBName = samhain
591 # SetDBUser = samhain
595 # SetDBPassword = (default: none)
599 # SetDBHost = localhost
601 ## Log the server timestamp for received messages
603 # SetDBServerTstamp = True
605 ## Use a persistent connection
607 # UsePersistent = True
611 ## Interface to call external scripts/programs for logging
614 ## The absolute path to the command
615 ## - Each invocation of this directive will end the definition of the
616 ## preceding command, and start the definition of
617 ## an additional, new command
619 # OpenCommand = (no default)
622 ## - log for log messages, srv for messages received by the server
626 ## The command (full command line) to execute
628 # SetCommandLine = (no default)
630 ## The environment (KEY=value; repeat for more)
632 # SetEnviron = TZ=(your timezone)
634 ## The TIGER192 checksum (optional)
636 # SetChecksum = (no default)
638 ## User who runs the command
640 # SetCredentials = (default: samhain process uid)
642 ## Words not allowed in message
644 # SetFilterNot = (none)
646 ## Words required (ALL of them)
648 # SetFilterAnd = (none)
650 ## Words required (at least one)
652 # SetFilterOr = (none)
654 ## Deadtime between consecutive calls
658 ## Add default environment (HOME, PATH, SHELL)
663 #####################################################
665 # Miscellaneous configuration options
667 #####################################################
671 ## whether to become a daemon process
672 ## (this is not honoured on database initialisation)
677 ## whether to test signature of files (init/check/none)
678 ## - if 'none', then we have to decide this on the command line -
680 # ChecksumTest = none
683 ## whether to drop linux capabilities that are not required
684 ## - will make a root process a 'mere mortal' in many respects
688 ## Set nice level (-19 to 19, see 'man nice'),
689 ## and I/O limit (kilobytes per second; 0 == off)
690 ## to reduce load on host.
695 ## The version string to embed in file signature databases
697 # VersionString = NULL
699 ## Interval between time stamp messages
704 ## Interval between file checks
706 # SetFileCheckTime = 600
707 SetFileCheckTime = 7200
709 ## Alternative: crontab-like schedule
711 # FileCheckScheduleOne = NULL
713 ## Alternative: crontab-like schedule(2)
715 # FileCheckScheduleTwo = NULL
717 ## Report only once on modified fles
718 ## Setting this to 'FALSE' will generate a report for any policy
719 ## violation (old and new ones) each time the daemon checks the file system.
721 # ReportOnlyOnce = True
723 ## Report in full detail
725 # ReportFullDetail = False
727 ## Report file timestamps in local time rather than GMT
731 ## The console device (can also be a file or named pipe)
732 ## - There are two console devices. Accordingly, you can use
733 ## this directive a second time to set the second console device.
734 ## If you have not defined the second device at compile time,
735 ## and you don't want to use it, then:
736 ## setting it to /dev/null is less effective than just leaving
737 ## it alone (setting to /dev/null will waste time by opening
738 ## /dev/null and writing to it)
740 # SetConsole = /dev/console
742 ## Activate the SysV IPC message queue
744 # MessageQueueActive = False
747 ## If false, skip reverse lookup when connecting to a host known
748 ## by name rather than IP address (i.e. trust the DNS)
750 # SetReverseLookup = True
754 # Only highest-level (alert) reports will be mailed immediately,
755 # others will be queued. Here you can define, when the queue will
756 # be flushed (Note: the queue is automatically flushed after
757 # completing a file check).
761 ## Maximum number of mails to queue
765 ## Recipient (max. 8)
767 SetMailAddress=samhain-reports@debian.org
769 ## Mail relay (IP address)
772 if not nodeinfo['smarthost'].empty?
774 SetMailRelay = localhost
778 SetMailRelay = master.debian.org
783 ## Custom subject format
785 MailSubject = [Samhain at %H] %T: %S
787 ## --- end E-Mail ---
789 ## Path to the prelink executable
791 # SetPrelinkPath = /usr/sbin/prelink
793 ## TIGER192 checksum of the prelink executable
795 # SetPrelinkChecksum = (no default)
798 ## Path to the executable. If set, will be checksummed after startup
801 # SamhainPath = (no default)
804 ## The IP address of the log server
806 # SetLogServer = (default: compiled-in)
808 ## The IP address of the time server
810 # SetTimeServer = (default: compiled-in)
812 ## Trusted Users (comma delimited list of user names)
814 # TrustedUser = (no default; this adds to the compiled-in list)
816 ## Path to the file signature database
818 # SetDatabasePath = (default: compiled-in)
820 ## Path to the log file
822 # SetLogfilePath = (default: compiled-in)
824 ## Path to the PID file
826 # SetLockPath = (default: compiled-in)
829 ## The digest/checksum/hash algorithm
831 # DigestAlgo = TIGER192
834 ## Custom format for message header.
835 ## CAREFUL if you use XML logfile format.
844 # MessageHeader="%S %T "
847 ## Don't log path to config/database file on startup
851 ## The syslog facility, if you log to syslog
853 # SyslogFacility = LOG_AUTHPRIV
854 SyslogFacility=LOG_LOCAL2
856 ## The message authentication method
857 ## - If you change this, you *must* change it
858 ## on client *and* server
860 # MACType = HMAC-TIGER
863 ## everything below is ignored
866 #####################################################################
867 # This would be the proper syntax for parts that should only be
868 # included for certain hosts.
869 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
870 # result still has the proper syntax for the config file.
871 # You may have any number of @HOSTNAME/@end brackets.
872 # HOSTNAME should be the fully qualified 'official' name
873 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
874 # No IP number - except if samhain cannot determine the
875 # fully qualified hostname.
881 # These are two examples for conditional inclusion/exclusion
882 # of a machine based on the output from 'uname -srm'
891 #####################################################################