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.geo
94 file=/etc/bind/named.conf.acl
95 file=/etc/bind/named.conf.options
96 file=/etc/bind/geodns/db.security.debian.org.SA
97 file=/etc/bind/geodns/db.security.debian.org.OC
98 file=/etc/bind/geodns/db.security.debian.org.NA
99 file=/etc/bind/geodns/db.security.debian.org.EU
100 file=/etc/bind/geodns/db.security.debian.org.AS
101 file=/etc/bind/geodns/db.security.debian.org.AN
102 file=/etc/bind/geodns/db.security.debian.org.AF
103 file=/etc/bind/geodns/db.security.debian.org
108 # There are files in /etc that might change, thus changing the directory
109 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
113 file=/etc/network/run
116 # These are the directories for the files we handle with puppet
122 file=/etc/apt/apt.conf.d
123 file=/etc/apt/sources.list.d
125 file=/etc/logrotate.d
127 file=/etc/nagios/nrpe.d
128 file=/etc/bind/geodns
131 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
133 else extradir="file=/etc/puppet"
139 if not nodeinfo['buildd'].empty?
147 file=/usr/lib/nagios/plugins
150 file=/etc/monit/monit.d
157 ## for these files, changes in signature, timestamps, and size are ignored
164 #####################################################################
166 # This would be the proper syntax for parts that should only be
167 # included for certain hosts.
168 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
169 # result still has the proper syntax for the config file.
170 # You may have any number of @HOSTNAME/@end brackets.
171 # HOSTNAME should be the fully qualified 'official' name
172 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
173 # No IP number - except if samhain cannot determine the
174 # fully qualified hostname.
180 # These are two examples for conditional inclusion/exclusion
181 # of a machine based on the output from 'uname -srm'
191 #####################################################################
195 ## for these files, changes in signature, timestamps, and increase in size
199 file=/var/log/messages
201 file=/var/log/faillog
202 file=/var/log/auth.log
203 file=/var/log/daemon.log
204 file=/var/log/user.log
205 file=/var/log/kern.log
211 ## for these files, no modifications are reported
213 ## This file might be created or removed by the system sometimes.
215 file=/etc/resolv.conf.pcmcia.save
217 file=/etc/postfix/debian.db
218 file=/etc/postfix/debian
219 file=/etc/ssh/ssh_known_hosts
220 file=/etc/ssh/ssh-rsa-shadow
221 file=/var/lib/misc/ssh-rsa-shadow
222 file=/etc/.da-backup.trace
223 file=/etc/postfix/debianhosts
224 file=/etc/postfix/debianhosts.db
226 file=/etc/blkid.tab.old
227 file=/etc/resolv.conf.dhclient-new
229 # We handle these files with puppet - please to not be bothering us
232 file=/etc/samhain/samhainrc
233 file=/etc/munin/munin-node.conf
234 file=/etc/userdir-ldap.confc
235 file=/etc/exim4/blacklist
236 file=/etc/exim4/callout_users
237 file=/etc/exim4/exim4.conf
238 file=/etc/exim4/grey_users
239 file=/etc/exim4/helo-check
240 file=/etc/exim4/locals
241 file=/etc/exim4/localusers
242 file=/etc/exim4/manualroute
243 file=/etc/exim4/rbllist
244 file=/etc/exim4/rcpthosts
245 file=/etc/exim4/rhsbllist
246 file=/etc/exim4/virtualdomains
247 file=/etc/exim4/whitelist
248 file=/etc/exim4/local-auto.conf
249 file=/etc/exim4/local-settings.conf
250 file=/etc/exim4/ssl/ca.crt
251 file=/etc/exim4/ssl/ca.crl
252 file=/etc/exim4/ssl/thishost.crt
253 file=/etc/exim4/ssl/thishost.key
256 if not nodeinfo['buildd'].empty?
258 file=/etc/schroot/mount-defaults
265 if not nodeinfo['heavy_exim'].empty?
267 file=/etc/exim4/surbl_whitelist.txt
268 file=/etc/exim4/exim_surbl.pl
269 file=/etc/exim4/ccTLD.txt
274 file=/etc/apt/preferences
275 file=/etc/apt/sources.list.d/volatile.list
276 file=/etc/apt/sources.list.d/security.list
277 file=/etc/apt/sources.list.d/buildd.list
278 file=/etc/apt/sources.list.d/debian.org.list
279 file=/etc/apt/sources.list.d/debian.restricted.list
280 file=/etc/apt/sources.list.d/debian.list
281 file=/etc/apt/sources.list.d/backports.org.list
282 file=/etc/apt/apt.conf.d/local-recommends
283 file=/etc/apt/apt.conf.d/local-pdiffs
284 file=/etc/puppet/puppet.conf
285 file=/etc/default/puppet
286 file=/etc/default/postgrey
287 file=/etc/logrotate.d/exim4-paniclog
288 file=/etc/logrotate.d/exim4-base
289 file=/etc/logrotate.d/syslog-ng
290 file=/etc/syslog-ng/syslog-ng.conf
291 file=/usr/sbin/dsa-update-apt-status
292 file=/usr/sbin/dsa-update-samhain-status
293 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
294 file=/etc/nagios/nrpe.d/debianorg.cfg
295 file=/etc/nagios/obsolete-packages-ignore
296 file=/usr/lib/nagios/plugins/dsa-check-packages
297 file=/usr/lib/nagios/plugins/dsa-check-soas
298 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
299 file=/usr/lib/nagios/plugins/dsa-check-samhain
300 file=/usr/lib/nagios/plugins/dsa-check-statusfile
301 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
302 file=/usr/lib/nagios/plugins/dsa-check-config
303 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
304 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
305 file=/usr/lib/nagios/plugins/dsa-check-puppet
306 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
307 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
308 file=/usr/lib/nagios/plugins/dsa-check-dabackup
309 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
310 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
311 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
312 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
313 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
316 file=/etc/monit/monitrc
317 file=/etc/monit/monit.d/01puppet
318 file=/etc/monit/monit.d/00debian.org
321 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
322 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
323 file=/etc/nagios3/puppetconf.d/auto-services.cfg
324 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
325 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
326 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
327 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
334 ## for these files, all modifications (even access time) are reported
335 ## - you may create some interesting-looking file (like /etc/safe_passwd),
336 ## just to watch whether someone will access it ...
341 ## Use for prelinked files or directories holding them
347 ## for these files, only access time is ignored
353 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
354 # so we go 3 levels deep
361 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
362 # so we go 3 levels deep there too
366 # Various directories / files that may include / be SUID/SGID binaries
369 file=/usr/lib/pt_chown
370 # X11, in Debian X7 this is now a symlink
372 #dir=/usr/X11R6/lib/X11/xmcd/bin
374 #file=/usr/lib/apache/suexec
375 #file=/usr/lib/apache/suexec.disabled
382 ## User0 and User1 are sections for files/dirs with user-definable checking
388 ## Here you can assign severities to policy violations.
389 ## If this severity exceeds the treshold of a log facility (see below),
390 ## a policy violation will be logged to that facility.
392 ## Severity for verification failures.
394 # SeverityReadOnly=crit
395 # SeverityLogFiles=crit
396 # SeverityGrowingLogs=crit
397 # SeverityIgnoreNone=crit
398 # SeverityAttributes=crit
403 SeverityReadOnly=crit
404 SeverityLogFiles=crit
405 SeverityGrowingLogs=warn
406 SeverityIgnoreNone=crit
407 SeverityAttributes=crit
411 ## We have a file in IgnoreAll that might or might not be present.
412 ## Setting the severity to 'info' prevents messages about deleted/new file.
414 # SeverityIgnoreAll=crit
415 SeverityIgnoreAll=info
417 ## Files : file access problems
420 ## Dirs : directory access problems
423 ## Names : suspect (non-printable) characters in a pathname
434 ## Switch on/OFF log facilities and set their threshold severity
436 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
437 ## 'mark' is used for timestamps.
440 ## Use 'none' to SWITCH OFF a log facility
442 ## By default, everything equal to and above the threshold is logged.
443 ## The specifiers '*', '!', and '=' are interpreted as
444 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
445 ## at least on Linux). Examples:
447 ## MailSeverity=!warn
448 ## MailSeverity==crit
464 # SyslogSeverity=none
466 ## Remote server (yule)
468 # ExportSeverity=none
470 ## External script or program
472 # ExternalSeverity = none
474 ## Logging to a database
476 # DatabaseSeverity = none
489 #####################################################
493 #####################################################
497 ## --- Check the filesystem for SUID/SGID binaries
502 # SuidCheckActive = yes
504 ## Interval for check (seconds)
506 # SuidCheckInterval = 7200
508 ## Alternative: crontab-like schedule
510 # SuidCheckSchedule = NULL
512 ## Directory to exclude
514 # SuidCheckExclude = NULL
516 ## Limit on files per second (0 == no limit)
520 ## Alternative: yield after every file
522 # SuidCheckYield = no
524 ## Severity of a detection
526 # SeveritySuidCheck = crit
528 ## Quarantine SUID/SGID files if found
530 # SuidCheckQuarantineFiles = yes
532 ## Method for Quarantining files:
533 # 0 - Delete or truncate the file.
534 # 1 - Remove SUID/SGID permissions from file.
535 # 2 - Move SUID/SGID file to quarantine dir.
537 # SuidCheckQuarantineMethod = 0
539 ## For method 1 and 3, really delete instead of truncating
541 # SuidCheckQuarantineDelete = yes
545 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
550 KernelCheckActive = True
552 ## Check interval (seconds); btw., the check is VERY fast
554 # KernelCheckInterval = 300
558 # SeverityKernel = crit
563 ## --- Logging of login/logout events
568 LoginCheckActive = True
570 ## Severity for logins, multiple logins, logouts
573 # SeverityLoginMulti=warn
574 # SeverityLogout=info
576 ## Interval for login/logout checks
578 # LoginCheckInterval = 300
583 ## --- Logging to a relational database
588 # SetDBName = samhain
596 # SetDBUser = samhain
600 # SetDBPassword = (default: none)
604 # SetDBHost = localhost
606 ## Log the server timestamp for received messages
608 # SetDBServerTstamp = True
610 ## Use a persistent connection
612 # UsePersistent = True
616 ## Interface to call external scripts/programs for logging
619 ## The absolute path to the command
620 ## - Each invocation of this directive will end the definition of the
621 ## preceding command, and start the definition of
622 ## an additional, new command
624 # OpenCommand = (no default)
627 ## - log for log messages, srv for messages received by the server
631 ## The command (full command line) to execute
633 # SetCommandLine = (no default)
635 ## The environment (KEY=value; repeat for more)
637 # SetEnviron = TZ=(your timezone)
639 ## The TIGER192 checksum (optional)
641 # SetChecksum = (no default)
643 ## User who runs the command
645 # SetCredentials = (default: samhain process uid)
647 ## Words not allowed in message
649 # SetFilterNot = (none)
651 ## Words required (ALL of them)
653 # SetFilterAnd = (none)
655 ## Words required (at least one)
657 # SetFilterOr = (none)
659 ## Deadtime between consecutive calls
663 ## Add default environment (HOME, PATH, SHELL)
668 #####################################################
670 # Miscellaneous configuration options
672 #####################################################
676 ## whether to become a daemon process
677 ## (this is not honoured on database initialisation)
682 ## whether to test signature of files (init/check/none)
683 ## - if 'none', then we have to decide this on the command line -
685 # ChecksumTest = none
688 ## whether to drop linux capabilities that are not required
689 ## - will make a root process a 'mere mortal' in many respects
693 ## Set nice level (-19 to 19, see 'man nice'),
694 ## and I/O limit (kilobytes per second; 0 == off)
695 ## to reduce load on host.
700 ## The version string to embed in file signature databases
702 # VersionString = NULL
704 ## Interval between time stamp messages
709 ## Interval between file checks
711 # SetFileCheckTime = 600
712 SetFileCheckTime = 7200
714 ## Alternative: crontab-like schedule
716 # FileCheckScheduleOne = NULL
718 ## Alternative: crontab-like schedule(2)
720 # FileCheckScheduleTwo = NULL
722 ## Report only once on modified fles
723 ## Setting this to 'FALSE' will generate a report for any policy
724 ## violation (old and new ones) each time the daemon checks the file system.
726 # ReportOnlyOnce = True
728 ## Report in full detail
730 # ReportFullDetail = False
732 ## Report file timestamps in local time rather than GMT
736 ## The console device (can also be a file or named pipe)
737 ## - There are two console devices. Accordingly, you can use
738 ## this directive a second time to set the second console device.
739 ## If you have not defined the second device at compile time,
740 ## and you don't want to use it, then:
741 ## setting it to /dev/null is less effective than just leaving
742 ## it alone (setting to /dev/null will waste time by opening
743 ## /dev/null and writing to it)
745 # SetConsole = /dev/console
747 ## Activate the SysV IPC message queue
749 # MessageQueueActive = False
752 ## If false, skip reverse lookup when connecting to a host known
753 ## by name rather than IP address (i.e. trust the DNS)
755 # SetReverseLookup = True
759 # Only highest-level (alert) reports will be mailed immediately,
760 # others will be queued. Here you can define, when the queue will
761 # be flushed (Note: the queue is automatically flushed after
762 # completing a file check).
766 ## Maximum number of mails to queue
770 ## Recipient (max. 8)
772 SetMailAddress=samhain-reports@debian.org
774 ## Mail relay (IP address)
777 if not nodeinfo['smarthost'].empty?
779 SetMailRelay = localhost
783 SetMailRelay = master.debian.org
788 ## Custom subject format
790 MailSubject = [Samhain at %H] %T: %S
792 ## --- end E-Mail ---
794 ## Path to the prelink executable
796 # SetPrelinkPath = /usr/sbin/prelink
798 ## TIGER192 checksum of the prelink executable
800 # SetPrelinkChecksum = (no default)
803 ## Path to the executable. If set, will be checksummed after startup
806 # SamhainPath = (no default)
809 ## The IP address of the log server
811 # SetLogServer = (default: compiled-in)
813 ## The IP address of the time server
815 # SetTimeServer = (default: compiled-in)
817 ## Trusted Users (comma delimited list of user names)
819 # TrustedUser = (no default; this adds to the compiled-in list)
821 ## Path to the file signature database
823 # SetDatabasePath = (default: compiled-in)
825 ## Path to the log file
827 # SetLogfilePath = (default: compiled-in)
829 ## Path to the PID file
831 # SetLockPath = (default: compiled-in)
834 ## The digest/checksum/hash algorithm
836 # DigestAlgo = TIGER192
839 ## Custom format for message header.
840 ## CAREFUL if you use XML logfile format.
849 # MessageHeader="%S %T "
852 ## Don't log path to config/database file on startup
856 ## The syslog facility, if you log to syslog
858 # SyslogFacility = LOG_AUTHPRIV
859 SyslogFacility=LOG_LOCAL2
861 ## The message authentication method
862 ## - If you change this, you *must* change it
863 ## on client *and* server
865 # MACType = HMAC-TIGER
868 ## everything below is ignored
871 #####################################################################
872 # This would be the proper syntax for parts that should only be
873 # included for certain hosts.
874 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
875 # result still has the proper syntax for the config file.
876 # You may have any number of @HOSTNAME/@end brackets.
877 # HOSTNAME should be the fully qualified 'official' name
878 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
879 # No IP number - except if samhain cannot determine the
880 # fully qualified hostname.
886 # These are two examples for conditional inclusion/exclusion
887 # of a machine based on the output from 'uname -srm'
896 #####################################################################