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/geodns/named.conf.geo
96 file=/etc/bind/geodns/recvconf.files
97 file=/etc/bind/geodns/db.www.debian.org.SA
98 file=/etc/bind/geodns/db.www.debian.org.OC
99 file=/etc/bind/geodns/db.www.debian.org.NA
100 file=/etc/bind/geodns/db.www.debian.org.EU
101 file=/etc/bind/geodns/db.www.debian.org.AS
102 file=/etc/bind/geodns/db.www.debian.org.AN
103 file=/etc/bind/geodns/db.www.debian.org.AF
104 file=/etc/bind/geodns/db.www.debian.org
105 file=/etc/bind/geodns/db.security.debian.org.SA
106 file=/etc/bind/geodns/db.security.debian.org.OC
107 file=/etc/bind/geodns/db.security.debian.org.NA
108 file=/etc/bind/geodns/db.security.debian.org.EU
109 file=/etc/bind/geodns/db.security.debian.org.AS
110 file=/etc/bind/geodns/db.security.debian.org.AN
111 file=/etc/bind/geodns/db.security.debian.org.AF
112 file=/etc/bind/geodns/db.security.debian.org
113 file=/usr/share/GeoIP/GeoIPv6.dat
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
140 file=/usr/share/GeoIP/
143 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
145 else extradir="file=/etc/puppet"
150 file=/usr/lib/nagios/plugins
153 file=/etc/monit/monit.d
160 ## for these files, changes in signature, timestamps, and size are ignored
167 #####################################################################
169 # This would be the proper syntax for parts that should only be
170 # included for certain hosts.
171 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
172 # result still has the proper syntax for the config file.
173 # You may have any number of @HOSTNAME/@end brackets.
174 # HOSTNAME should be the fully qualified 'official' name
175 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
176 # No IP number - except if samhain cannot determine the
177 # fully qualified hostname.
183 # These are two examples for conditional inclusion/exclusion
184 # of a machine based on the output from 'uname -srm'
194 #####################################################################
198 ## for these files, changes in signature, timestamps, and increase in size
202 file=/var/log/messages
204 file=/var/log/faillog
205 file=/var/log/auth.log
206 file=/var/log/daemon.log
207 file=/var/log/user.log
208 file=/var/log/kern.log
214 ## for these files, no modifications are reported
216 ## This file might be created or removed by the system sometimes.
218 file=/etc/resolv.conf.pcmcia.save
220 file=/etc/postfix/debian.db
221 file=/etc/postfix/debian
222 file=/etc/ssh/ssh_known_hosts
223 file=/etc/ssh/ssh-rsa-shadow
224 file=/var/lib/misc/ssh-rsa-shadow
225 file=/etc/.da-backup.trace
226 file=/etc/postfix/debianhosts
227 file=/etc/postfix/debianhosts.db
229 file=/etc/blkid.tab.old
230 file=/etc/resolv.conf.dhclient-new
232 # We handle these files with puppet - please to not be bothering us
235 file=/etc/samhain/samhainrc
236 file=/etc/munin/munin-node.conf
237 file=/etc/userdir-ldap.confc
238 file=/etc/exim4/blacklist
239 file=/etc/exim4/callout_users
240 file=/etc/exim4/exim4.conf
241 file=/etc/exim4/grey_users
242 file=/etc/exim4/helo-check
243 file=/etc/exim4/locals
244 file=/etc/exim4/localusers
245 file=/etc/exim4/manualroute
246 file=/etc/exim4/rbllist
247 file=/etc/exim4/rcpthosts
248 file=/etc/exim4/rhsbllist
249 file=/etc/exim4/virtualdomains
250 file=/etc/exim4/whitelist
251 file=/etc/exim4/local-auto.conf
252 file=/etc/exim4/local-settings.conf
253 file=/etc/exim4/ssl/ca.crt
254 file=/etc/exim4/ssl/ca.crl
255 file=/etc/exim4/ssl/thishost.crt
256 file=/etc/exim4/ssl/thishost.key
259 if not nodeinfo['heavy_exim'].empty?
261 file=/etc/exim4/surbl_whitelist.txt
262 file=/etc/exim4/exim_surbl.pl
263 file=/etc/exim4/ccTLD.txt
268 file=/etc/apt/preferences
269 file=/etc/apt/sources.list.d/volatile.list
270 file=/etc/apt/sources.list.d/security.list
271 file=/etc/apt/sources.list.d/buildd.list
272 file=/etc/apt/sources.list.d/debian.org.list
273 file=/etc/apt/sources.list.d/debian.restricted.list
274 file=/etc/apt/sources.list.d/debian.list
275 file=/etc/apt/sources.list.d/backports.org.list
276 file=/etc/apt/apt.conf.d/local-recommends
277 file=/etc/apt/apt.conf.d/local-pdiffs
278 file=/etc/puppet/puppet.conf
279 file=/etc/default/puppet
280 file=/etc/default/postgrey
281 file=/etc/logrotate.d/exim4-paniclog
282 file=/etc/logrotate.d/exim4-base
283 file=/etc/logrotate.d/syslog-ng
284 file=/etc/syslog-ng/syslog-ng.conf
285 file=/usr/sbin/dsa-update-apt-status
286 file=/usr/sbin/dsa-update-samhain-status
287 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
288 file=/etc/nagios/nrpe.d/debianorg.cfg
289 file=/etc/nagios/obsolete-packages-ignore
290 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
291 file=/usr/lib/nagios/plugins/dsa-check-packages
292 file=/usr/lib/nagios/plugins/dsa-check-soas
293 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
294 file=/usr/lib/nagios/plugins/dsa-check-samhain
295 file=/usr/lib/nagios/plugins/dsa-check-statusfile
296 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
297 file=/usr/lib/nagios/plugins/dsa-check-config
298 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
299 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
300 file=/usr/lib/nagios/plugins/dsa-check-puppet
301 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
302 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
303 file=/usr/lib/nagios/plugins/dsa-check-dabackup
304 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
305 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
306 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
307 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
308 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
311 file=/etc/monit/monitrc
312 file=/etc/monit/monit.d/01puppet
313 file=/etc/monit/monit.d/00debian.org
314 file=/etc/cron.d/dsa-puppet-stuff
317 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
318 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
319 file=/etc/nagios3/puppetconf.d/auto-services.cfg
320 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
321 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
322 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
323 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
330 ## for these files, all modifications (even access time) are reported
331 ## - you may create some interesting-looking file (like /etc/safe_passwd),
332 ## just to watch whether someone will access it ...
337 ## Use for prelinked files or directories holding them
343 ## for these files, only access time is ignored
349 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
350 # so we go 3 levels deep
357 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
358 # so we go 3 levels deep there too
362 # Various directories / files that may include / be SUID/SGID binaries
365 file=/usr/lib/pt_chown
366 # X11, in Debian X7 this is now a symlink
368 #dir=/usr/X11R6/lib/X11/xmcd/bin
370 #file=/usr/lib/apache/suexec
371 #file=/usr/lib/apache/suexec.disabled
378 ## User0 and User1 are sections for files/dirs with user-definable checking
384 ## Here you can assign severities to policy violations.
385 ## If this severity exceeds the treshold of a log facility (see below),
386 ## a policy violation will be logged to that facility.
388 ## Severity for verification failures.
390 # SeverityReadOnly=crit
391 # SeverityLogFiles=crit
392 # SeverityGrowingLogs=crit
393 # SeverityIgnoreNone=crit
394 # SeverityAttributes=crit
399 SeverityReadOnly=crit
400 SeverityLogFiles=crit
401 SeverityGrowingLogs=warn
402 SeverityIgnoreNone=crit
403 SeverityAttributes=crit
407 ## We have a file in IgnoreAll that might or might not be present.
408 ## Setting the severity to 'info' prevents messages about deleted/new file.
410 # SeverityIgnoreAll=crit
411 SeverityIgnoreAll=info
413 ## Files : file access problems
416 ## Dirs : directory access problems
419 ## Names : suspect (non-printable) characters in a pathname
430 ## Switch on/OFF log facilities and set their threshold severity
432 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
433 ## 'mark' is used for timestamps.
436 ## Use 'none' to SWITCH OFF a log facility
438 ## By default, everything equal to and above the threshold is logged.
439 ## The specifiers '*', '!', and '=' are interpreted as
440 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
441 ## at least on Linux). Examples:
443 ## MailSeverity=!warn
444 ## MailSeverity==crit
460 # SyslogSeverity=none
462 ## Remote server (yule)
464 # ExportSeverity=none
466 ## External script or program
468 # ExternalSeverity = none
470 ## Logging to a database
472 # DatabaseSeverity = none
485 #####################################################
489 #####################################################
493 ## --- Check the filesystem for SUID/SGID binaries
498 # SuidCheckActive = yes
500 ## Interval for check (seconds)
502 # SuidCheckInterval = 7200
504 ## Alternative: crontab-like schedule
506 # SuidCheckSchedule = NULL
508 ## Directory to exclude
510 # SuidCheckExclude = NULL
512 ## Limit on files per second (0 == no limit)
516 ## Alternative: yield after every file
518 # SuidCheckYield = no
520 ## Severity of a detection
522 # SeveritySuidCheck = crit
524 ## Quarantine SUID/SGID files if found
526 # SuidCheckQuarantineFiles = yes
528 ## Method for Quarantining files:
529 # 0 - Delete or truncate the file.
530 # 1 - Remove SUID/SGID permissions from file.
531 # 2 - Move SUID/SGID file to quarantine dir.
533 # SuidCheckQuarantineMethod = 0
535 ## For method 1 and 3, really delete instead of truncating
537 # SuidCheckQuarantineDelete = yes
541 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
546 KernelCheckActive = True
548 ## Check interval (seconds); btw., the check is VERY fast
550 # KernelCheckInterval = 300
554 # SeverityKernel = crit
559 ## --- Logging of login/logout events
564 LoginCheckActive = True
566 ## Severity for logins, multiple logins, logouts
569 # SeverityLoginMulti=warn
570 # SeverityLogout=info
572 ## Interval for login/logout checks
574 # LoginCheckInterval = 300
579 ## --- Logging to a relational database
584 # SetDBName = samhain
592 # SetDBUser = samhain
596 # SetDBPassword = (default: none)
600 # SetDBHost = localhost
602 ## Log the server timestamp for received messages
604 # SetDBServerTstamp = True
606 ## Use a persistent connection
608 # UsePersistent = True
612 ## Interface to call external scripts/programs for logging
615 ## The absolute path to the command
616 ## - Each invocation of this directive will end the definition of the
617 ## preceding command, and start the definition of
618 ## an additional, new command
620 # OpenCommand = (no default)
623 ## - log for log messages, srv for messages received by the server
627 ## The command (full command line) to execute
629 # SetCommandLine = (no default)
631 ## The environment (KEY=value; repeat for more)
633 # SetEnviron = TZ=(your timezone)
635 ## The TIGER192 checksum (optional)
637 # SetChecksum = (no default)
639 ## User who runs the command
641 # SetCredentials = (default: samhain process uid)
643 ## Words not allowed in message
645 # SetFilterNot = (none)
647 ## Words required (ALL of them)
649 # SetFilterAnd = (none)
651 ## Words required (at least one)
653 # SetFilterOr = (none)
655 ## Deadtime between consecutive calls
659 ## Add default environment (HOME, PATH, SHELL)
664 #####################################################
666 # Miscellaneous configuration options
668 #####################################################
672 ## whether to become a daemon process
673 ## (this is not honoured on database initialisation)
678 ## whether to test signature of files (init/check/none)
679 ## - if 'none', then we have to decide this on the command line -
681 # ChecksumTest = none
684 ## whether to drop linux capabilities that are not required
685 ## - will make a root process a 'mere mortal' in many respects
689 ## Set nice level (-19 to 19, see 'man nice'),
690 ## and I/O limit (kilobytes per second; 0 == off)
691 ## to reduce load on host.
696 ## The version string to embed in file signature databases
698 # VersionString = NULL
700 ## Interval between time stamp messages
705 ## Interval between file checks
707 # SetFileCheckTime = 600
708 SetFileCheckTime = 7200
710 ## Alternative: crontab-like schedule
712 # FileCheckScheduleOne = NULL
714 ## Alternative: crontab-like schedule(2)
716 # FileCheckScheduleTwo = NULL
718 ## Report only once on modified fles
719 ## Setting this to 'FALSE' will generate a report for any policy
720 ## violation (old and new ones) each time the daemon checks the file system.
722 # ReportOnlyOnce = True
724 ## Report in full detail
726 # ReportFullDetail = False
728 ## Report file timestamps in local time rather than GMT
732 ## The console device (can also be a file or named pipe)
733 ## - There are two console devices. Accordingly, you can use
734 ## this directive a second time to set the second console device.
735 ## If you have not defined the second device at compile time,
736 ## and you don't want to use it, then:
737 ## setting it to /dev/null is less effective than just leaving
738 ## it alone (setting to /dev/null will waste time by opening
739 ## /dev/null and writing to it)
741 # SetConsole = /dev/console
743 ## Activate the SysV IPC message queue
745 # MessageQueueActive = False
748 ## If false, skip reverse lookup when connecting to a host known
749 ## by name rather than IP address (i.e. trust the DNS)
751 # SetReverseLookup = True
755 # Only highest-level (alert) reports will be mailed immediately,
756 # others will be queued. Here you can define, when the queue will
757 # be flushed (Note: the queue is automatically flushed after
758 # completing a file check).
762 ## Maximum number of mails to queue
766 ## Recipient (max. 8)
768 SetMailAddress=samhain-reports@debian.org
770 ## Mail relay (IP address)
773 if not nodeinfo['smarthost'].empty?
775 SetMailRelay = localhost
779 SetMailRelay = master.debian.org
784 ## Custom subject format
786 MailSubject = [Samhain at %H] %T: %S
788 ## --- end E-Mail ---
790 ## Path to the prelink executable
792 # SetPrelinkPath = /usr/sbin/prelink
794 ## TIGER192 checksum of the prelink executable
796 # SetPrelinkChecksum = (no default)
799 ## Path to the executable. If set, will be checksummed after startup
802 # SamhainPath = (no default)
805 ## The IP address of the log server
807 # SetLogServer = (default: compiled-in)
809 ## The IP address of the time server
811 # SetTimeServer = (default: compiled-in)
813 ## Trusted Users (comma delimited list of user names)
815 # TrustedUser = (no default; this adds to the compiled-in list)
817 ## Path to the file signature database
819 # SetDatabasePath = (default: compiled-in)
821 ## Path to the log file
823 # SetLogfilePath = (default: compiled-in)
825 ## Path to the PID file
827 # SetLockPath = (default: compiled-in)
830 ## The digest/checksum/hash algorithm
832 # DigestAlgo = TIGER192
835 ## Custom format for message header.
836 ## CAREFUL if you use XML logfile format.
845 # MessageHeader="%S %T "
848 ## Don't log path to config/database file on startup
852 ## The syslog facility, if you log to syslog
854 # SyslogFacility = LOG_AUTHPRIV
855 SyslogFacility=LOG_LOCAL2
857 ## The message authentication method
858 ## - If you change this, you *must* change it
859 ## on client *and* server
861 # MACType = HMAC-TIGER
864 ## everything below is ignored
867 #####################################################################
868 # This would be the proper syntax for parts that should only be
869 # included for certain hosts.
870 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
871 # result still has the proper syntax for the config file.
872 # You may have any number of @HOSTNAME/@end brackets.
873 # HOSTNAME should be the fully qualified 'official' name
874 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
875 # No IP number - except if samhain cannot determine the
876 # fully qualified hostname.
882 # These are two examples for conditional inclusion/exclusion
883 # of a machine based on the output from 'uname -srm'
892 #####################################################################