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
133 file=/etc/spamassassin/sa-update-keys
135 # These are the directories for the files we handle with puppet
141 file=/etc/apt/apt.conf.d
142 file=/etc/apt/sources.list.d
144 file=/etc/logrotate.d
146 file=/etc/nagios/nrpe.d
147 file=/etc/nagios/obsolete-packages-ignore.d
148 file=/etc/bind/geodns
151 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
153 else extradir="file=/etc/puppet"
158 file=/usr/lib/nagios/plugins
161 file=/etc/monit/monit.d
168 ## for these files, changes in signature, timestamps, and size are ignored
175 #####################################################################
177 # This would be the proper syntax for parts that should only be
178 # included for certain hosts.
179 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
180 # result still has the proper syntax for the config file.
181 # You may have any number of @HOSTNAME/@end brackets.
182 # HOSTNAME should be the fully qualified 'official' name
183 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
184 # No IP number - except if samhain cannot determine the
185 # fully qualified hostname.
191 # These are two examples for conditional inclusion/exclusion
192 # of a machine based on the output from 'uname -srm'
202 #####################################################################
206 ## for these files, changes in signature, timestamps, and increase in size
210 file=/var/log/messages
212 file=/var/log/faillog
213 file=/var/log/auth.log
214 file=/var/log/daemon.log
215 file=/var/log/user.log
216 file=/var/log/kern.log
222 ## for these files, no modifications are reported
224 ## This file might be created or removed by the system sometimes.
226 file=/etc/resolv.conf.pcmcia.save
228 file=/etc/postfix/debian.db
229 file=/etc/postfix/debian
230 file=/etc/ssh/ssh_known_hosts
231 file=/etc/ssh/ssh-rsa-shadow
232 file=/var/lib/misc/ssh-rsa-shadow
233 file=/etc/.da-backup.trace
234 file=/etc/postfix/debianhosts
235 file=/etc/postfix/debianhosts.db
237 file=/etc/blkid.tab.old
238 file=/etc/resolv.conf.dhclient-new
240 # We handle these files with puppet - please to not be bothering us
243 file=/etc/samhain/samhainrc
244 file=/etc/munin/munin-node.conf
245 file=/etc/userdir-ldap.confc
246 file=/etc/exim4/blacklist
247 file=/etc/exim4/callout_users
248 file=/etc/exim4/exim4.conf
249 file=/etc/exim4/grey_users
250 file=/etc/exim4/helo-check
251 file=/etc/exim4/locals
252 file=/etc/exim4/localusers
253 file=/etc/exim4/manualroute
254 file=/etc/exim4/rbllist
255 file=/etc/exim4/rcpthosts
256 file=/etc/exim4/rhsbllist
257 file=/etc/exim4/virtualdomains
258 file=/etc/exim4/whitelist
259 file=/etc/exim4/local-auto.conf
260 file=/etc/exim4/local-settings.conf
261 file=/etc/exim4/ssl/ca.crt
262 file=/etc/exim4/ssl/ca.crl
263 file=/etc/exim4/ssl/thishost.crt
264 file=/etc/exim4/ssl/thishost.key
267 if not nodeinfo['heavy_exim'].empty?
269 file=/etc/exim4/surbl_whitelist.txt
270 file=/etc/exim4/exim_surbl.pl
271 file=/etc/exim4/ccTLD.txt
272 file=/etc/clamav-unofficial-sigs.conf
273 file=/etc/clamav-unofficial-sigs.dsa.conf
278 file=/etc/apt/preferences
279 file=/etc/apt/sources.list.d/volatile.list
280 file=/etc/apt/sources.list.d/security.list
281 file=/etc/apt/sources.list.d/buildd.list
282 file=/etc/apt/sources.list.d/debian.org.list
283 file=/etc/apt/sources.list.d/debian.restricted.list
284 file=/etc/apt/sources.list.d/debian.list
285 file=/etc/apt/sources.list.d/backports.org.list
286 file=/etc/apt/apt.conf.d/local-recommends
287 file=/etc/apt/apt.conf.d/local-pdiffs
288 file=/etc/puppet/puppet.conf
289 file=/etc/default/puppet
290 file=/etc/default/postgrey
291 file=/etc/logrotate.d/exim4-paniclog
292 file=/etc/logrotate.d/exim4-base
293 file=/etc/logrotate.d/syslog-ng
294 file=/etc/syslog-ng/syslog-ng.conf
295 file=/usr/sbin/dsa-update-apt-status
296 file=/usr/sbin/dsa-update-samhain-status
297 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
298 file=/etc/nagios/nrpe.d/debianorg.cfg
299 file=/etc/nagios/obsolete-packages-ignore
300 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
301 file=/usr/lib/nagios/plugins/dsa-check-packages
302 file=/usr/lib/nagios/plugins/dsa-check-soas
303 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
304 file=/usr/lib/nagios/plugins/dsa-check-samhain
305 file=/usr/lib/nagios/plugins/dsa-check-statusfile
306 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
307 file=/usr/lib/nagios/plugins/dsa-check-config
308 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
309 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
310 file=/usr/lib/nagios/plugins/dsa-check-puppet
311 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
312 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
313 file=/usr/lib/nagios/plugins/dsa-check-dabackup
314 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
315 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
316 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
317 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
318 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
321 file=/etc/monit/monitrc
322 file=/etc/monit/monit.d/01puppet
323 file=/etc/monit/monit.d/00debian.org
324 file=/etc/cron.d/dsa-puppet-stuff
327 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
328 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
329 file=/etc/nagios3/puppetconf.d/auto-services.cfg
330 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
331 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
332 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
333 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
334 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
341 ## for these files, all modifications (even access time) are reported
342 ## - you may create some interesting-looking file (like /etc/safe_passwd),
343 ## just to watch whether someone will access it ...
348 ## Use for prelinked files or directories holding them
354 ## for these files, only access time is ignored
360 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
361 # so we go 3 levels deep
368 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
369 # so we go 3 levels deep there too
373 # Various directories / files that may include / be SUID/SGID binaries
376 file=/usr/lib/pt_chown
377 # X11, in Debian X7 this is now a symlink
379 #dir=/usr/X11R6/lib/X11/xmcd/bin
381 #file=/usr/lib/apache/suexec
382 #file=/usr/lib/apache/suexec.disabled
389 ## User0 and User1 are sections for files/dirs with user-definable checking
395 ## Here you can assign severities to policy violations.
396 ## If this severity exceeds the treshold of a log facility (see below),
397 ## a policy violation will be logged to that facility.
399 ## Severity for verification failures.
401 # SeverityReadOnly=crit
402 # SeverityLogFiles=crit
403 # SeverityGrowingLogs=crit
404 # SeverityIgnoreNone=crit
405 # SeverityAttributes=crit
410 SeverityReadOnly=crit
411 SeverityLogFiles=crit
412 SeverityGrowingLogs=warn
413 SeverityIgnoreNone=crit
414 SeverityAttributes=crit
418 ## We have a file in IgnoreAll that might or might not be present.
419 ## Setting the severity to 'info' prevents messages about deleted/new file.
421 # SeverityIgnoreAll=crit
422 SeverityIgnoreAll=info
424 ## Files : file access problems
427 ## Dirs : directory access problems
430 ## Names : suspect (non-printable) characters in a pathname
441 ## Switch on/OFF log facilities and set their threshold severity
443 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
444 ## 'mark' is used for timestamps.
447 ## Use 'none' to SWITCH OFF a log facility
449 ## By default, everything equal to and above the threshold is logged.
450 ## The specifiers '*', '!', and '=' are interpreted as
451 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
452 ## at least on Linux). Examples:
454 ## MailSeverity=!warn
455 ## MailSeverity==crit
471 # SyslogSeverity=none
473 ## Remote server (yule)
475 # ExportSeverity=none
477 ## External script or program
479 # ExternalSeverity = none
481 ## Logging to a database
483 # DatabaseSeverity = none
496 #####################################################
500 #####################################################
504 ## --- Check the filesystem for SUID/SGID binaries
509 # SuidCheckActive = yes
511 ## Interval for check (seconds)
513 # SuidCheckInterval = 7200
515 ## Alternative: crontab-like schedule
517 # SuidCheckSchedule = NULL
519 ## Directory to exclude
521 # SuidCheckExclude = NULL
523 ## Limit on files per second (0 == no limit)
527 ## Alternative: yield after every file
529 # SuidCheckYield = no
531 ## Severity of a detection
533 # SeveritySuidCheck = crit
535 ## Quarantine SUID/SGID files if found
537 # SuidCheckQuarantineFiles = yes
539 ## Method for Quarantining files:
540 # 0 - Delete or truncate the file.
541 # 1 - Remove SUID/SGID permissions from file.
542 # 2 - Move SUID/SGID file to quarantine dir.
544 # SuidCheckQuarantineMethod = 0
546 ## For method 1 and 3, really delete instead of truncating
548 # SuidCheckQuarantineDelete = yes
552 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
557 KernelCheckActive = True
559 ## Check interval (seconds); btw., the check is VERY fast
561 # KernelCheckInterval = 300
565 # SeverityKernel = crit
570 ## --- Logging of login/logout events
575 LoginCheckActive = True
577 ## Severity for logins, multiple logins, logouts
580 # SeverityLoginMulti=warn
581 # SeverityLogout=info
583 ## Interval for login/logout checks
585 # LoginCheckInterval = 300
590 ## --- Logging to a relational database
595 # SetDBName = samhain
603 # SetDBUser = samhain
607 # SetDBPassword = (default: none)
611 # SetDBHost = localhost
613 ## Log the server timestamp for received messages
615 # SetDBServerTstamp = True
617 ## Use a persistent connection
619 # UsePersistent = True
623 ## Interface to call external scripts/programs for logging
626 ## The absolute path to the command
627 ## - Each invocation of this directive will end the definition of the
628 ## preceding command, and start the definition of
629 ## an additional, new command
631 # OpenCommand = (no default)
634 ## - log for log messages, srv for messages received by the server
638 ## The command (full command line) to execute
640 # SetCommandLine = (no default)
642 ## The environment (KEY=value; repeat for more)
644 # SetEnviron = TZ=(your timezone)
646 ## The TIGER192 checksum (optional)
648 # SetChecksum = (no default)
650 ## User who runs the command
652 # SetCredentials = (default: samhain process uid)
654 ## Words not allowed in message
656 # SetFilterNot = (none)
658 ## Words required (ALL of them)
660 # SetFilterAnd = (none)
662 ## Words required (at least one)
664 # SetFilterOr = (none)
666 ## Deadtime between consecutive calls
670 ## Add default environment (HOME, PATH, SHELL)
675 #####################################################
677 # Miscellaneous configuration options
679 #####################################################
683 ## whether to become a daemon process
684 ## (this is not honoured on database initialisation)
689 ## whether to test signature of files (init/check/none)
690 ## - if 'none', then we have to decide this on the command line -
692 # ChecksumTest = none
695 ## whether to drop linux capabilities that are not required
696 ## - will make a root process a 'mere mortal' in many respects
700 ## Set nice level (-19 to 19, see 'man nice'),
701 ## and I/O limit (kilobytes per second; 0 == off)
702 ## to reduce load on host.
707 ## The version string to embed in file signature databases
709 # VersionString = NULL
711 ## Interval between time stamp messages
716 ## Interval between file checks
718 # SetFileCheckTime = 600
719 SetFileCheckTime = 7200
721 ## Alternative: crontab-like schedule
723 # FileCheckScheduleOne = NULL
725 ## Alternative: crontab-like schedule(2)
727 # FileCheckScheduleTwo = NULL
729 ## Report only once on modified fles
730 ## Setting this to 'FALSE' will generate a report for any policy
731 ## violation (old and new ones) each time the daemon checks the file system.
733 # ReportOnlyOnce = True
735 ## Report in full detail
737 # ReportFullDetail = False
739 ## Report file timestamps in local time rather than GMT
743 ## The console device (can also be a file or named pipe)
744 ## - There are two console devices. Accordingly, you can use
745 ## this directive a second time to set the second console device.
746 ## If you have not defined the second device at compile time,
747 ## and you don't want to use it, then:
748 ## setting it to /dev/null is less effective than just leaving
749 ## it alone (setting to /dev/null will waste time by opening
750 ## /dev/null and writing to it)
752 # SetConsole = /dev/console
754 ## Activate the SysV IPC message queue
756 # MessageQueueActive = False
759 ## If false, skip reverse lookup when connecting to a host known
760 ## by name rather than IP address (i.e. trust the DNS)
762 # SetReverseLookup = True
766 # Only highest-level (alert) reports will be mailed immediately,
767 # others will be queued. Here you can define, when the queue will
768 # be flushed (Note: the queue is automatically flushed after
769 # completing a file check).
773 ## Maximum number of mails to queue
777 ## Recipient (max. 8)
779 SetMailAddress=samhain-reports@debian.org
781 ## Mail relay (IP address)
784 if not nodeinfo['smarthost'].empty?
786 SetMailRelay = localhost
790 SetMailRelay = master.debian.org
795 ## Custom subject format
797 MailSubject = [Samhain at %H] %T: %S
799 ## --- end E-Mail ---
801 ## Path to the prelink executable
803 # SetPrelinkPath = /usr/sbin/prelink
805 ## TIGER192 checksum of the prelink executable
807 # SetPrelinkChecksum = (no default)
810 ## Path to the executable. If set, will be checksummed after startup
813 # SamhainPath = (no default)
816 ## The IP address of the log server
818 # SetLogServer = (default: compiled-in)
820 ## The IP address of the time server
822 # SetTimeServer = (default: compiled-in)
824 ## Trusted Users (comma delimited list of user names)
826 # TrustedUser = (no default; this adds to the compiled-in list)
828 ## Path to the file signature database
830 # SetDatabasePath = (default: compiled-in)
832 ## Path to the log file
834 # SetLogfilePath = (default: compiled-in)
836 ## Path to the PID file
838 # SetLockPath = (default: compiled-in)
841 ## The digest/checksum/hash algorithm
843 # DigestAlgo = TIGER192
846 ## Custom format for message header.
847 ## CAREFUL if you use XML logfile format.
856 # MessageHeader="%S %T "
859 ## Don't log path to config/database file on startup
863 ## The syslog facility, if you log to syslog
865 # SyslogFacility = LOG_AUTHPRIV
866 SyslogFacility=LOG_LOCAL2
868 ## The message authentication method
869 ## - If you change this, you *must* change it
870 ## on client *and* server
872 # MACType = HMAC-TIGER
875 ## everything below is ignored
878 #####################################################################
879 # This would be the proper syntax for parts that should only be
880 # included for certain hosts.
881 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
882 # result still has the proper syntax for the config file.
883 # You may have any number of @HOSTNAME/@end brackets.
884 # HOSTNAME should be the fully qualified 'official' name
885 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
886 # No IP number - except if samhain cannot determine the
887 # fully qualified hostname.
893 # These are two examples for conditional inclusion/exclusion
894 # of a machine based on the output from 'uname -srm'
903 #####################################################################