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" -%>
94 file=/etc/bind/named.conf.acl
95 file=/etc/bind/named.conf.options
96 file=/etc/bind/named.conf.local
97 file=/etc/bind/geodns/named.conf.geo
98 file=/etc/bind/geodns/recvconf.files
99 file=/etc/bind/geodns/db.www.debian.org.SA
100 file=/etc/bind/geodns/db.www.debian.org.OC
101 file=/etc/bind/geodns/db.www.debian.org.NA
102 file=/etc/bind/geodns/db.www.debian.org.EU
103 file=/etc/bind/geodns/db.www.debian.org.AS
104 file=/etc/bind/geodns/db.www.debian.org.AN
105 file=/etc/bind/geodns/db.www.debian.org.AF
106 file=/etc/bind/geodns/db.www.debian.org
107 file=/etc/bind/geodns/db.security.debian.org.SA
108 file=/etc/bind/geodns/db.security.debian.org.OC
109 file=/etc/bind/geodns/db.security.debian.org.NA
110 file=/etc/bind/geodns/db.security.debian.org.EU
111 file=/etc/bind/geodns/db.security.debian.org.AS
112 file=/etc/bind/geodns/db.security.debian.org.AN
113 file=/etc/bind/geodns/db.security.debian.org.AF
114 file=/etc/bind/geodns/db.security.debian.org
115 file=/etc/bind/geodns/db.video.debconf.debian.org.EU
116 file=/etc/bind/geodns/db.video.debconf.debian.org.AF
117 file=/etc/bind/geodns/db.video.debconf.debian.org.OC
118 file=/etc/bind/geodns/db.video.debconf.debian.org.SA
119 file=/etc/bind/geodns/db.video.debconf.debian.org.AS
120 file=/etc/bind/geodns/db.video.debconf.debian.org.NA
121 file=/etc/bind/geodns/db.video.debconf.debian.org.AN
122 file=/etc/bind/geodns/db.video.debconf.debian.org
127 # There are files in /etc that might change, thus changing the directory
128 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
132 file=/etc/network/run
134 file=/etc/spamassassin/sa-update-keys
136 # These are the directories for the files we handle with puppet
137 file=/etc/apache2/conf.d
143 file=/etc/apt/apt.conf.d
144 file=/etc/apt/sources.list.d
146 file=/etc/logrotate.d
148 file=/etc/nagios/nrpe.d
149 file=/etc/nagios/obsolete-packages-ignore.d
150 file=/etc/bind/geodns
153 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
155 else extradir="file=/etc/puppet"
160 file=/usr/lib/nagios/plugins
163 file=/etc/monit/monit.d
171 ## for these files, changes in signature, timestamps, and size are ignored
178 #####################################################################
180 # This would be the proper syntax for parts that should only be
181 # included for certain hosts.
182 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
183 # result still has the proper syntax for the config file.
184 # You may have any number of @HOSTNAME/@end brackets.
185 # HOSTNAME should be the fully qualified 'official' name
186 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
187 # No IP number - except if samhain cannot determine the
188 # fully qualified hostname.
194 # These are two examples for conditional inclusion/exclusion
195 # of a machine based on the output from 'uname -srm'
205 #####################################################################
209 ## for these files, changes in signature, timestamps, and increase in size
213 file=/var/log/messages
215 file=/var/log/faillog
216 file=/var/log/auth.log
217 file=/var/log/daemon.log
218 file=/var/log/user.log
219 file=/var/log/kern.log
225 ## for these files, no modifications are reported
227 ## This file might be created or removed by the system sometimes.
229 file=/etc/resolv.conf.pcmcia.save
231 file=/etc/postfix/debian.db
232 file=/etc/postfix/debian
233 file=/etc/ssh/ssh_known_hosts
234 file=/etc/ssh/ssh-rsa-shadow
235 file=/var/lib/misc/ssh-rsa-shadow
236 file=/etc/.da-backup.trace
237 file=/etc/postfix/debianhosts
238 file=/etc/postfix/debianhosts.db
240 file=/etc/blkid.tab.old
241 file=/etc/resolv.conf.dhclient-new
243 # We handle these files with puppet - please to not be bothering us
246 file=/etc/samhain/samhainrc
247 file=/etc/munin/munin-node.conf
248 file=/etc/userdir-ldap.confc
249 file=/etc/exim4/blacklist
250 file=/etc/exim4/host_blacklist
251 file=/etc/exim4/callout_users
252 file=/etc/exim4/exim4.conf
253 file=/etc/exim4/grey_users
254 file=/etc/exim4/helo-check
255 file=/etc/exim4/locals
256 file=/etc/exim4/localusers
257 file=/etc/exim4/manualroute
258 file=/etc/exim4/rbllist
259 file=/etc/exim4/rcpthosts
260 file=/etc/exim4/rhsbllist
261 file=/etc/exim4/virtualdomains
262 file=/etc/exim4/whitelist
263 file=/etc/exim4/local-auto.conf
264 file=/etc/exim4/local-settings.conf
265 file=/etc/exim4/ssl/ca.crt
266 file=/etc/exim4/ssl/ca.crl
267 file=/etc/exim4/ssl/thishost.crt
268 file=/etc/exim4/ssl/thishost.key
269 file=/etc/ssh/ssh_config
270 file=/etc/ssh/sshd_config
273 if not nodeinfo['heavy_exim'].empty?
275 file=/etc/exim4/surbl_whitelist.txt
276 file=/etc/exim4/exim_surbl.pl
277 file=/etc/exim4/ccTLD.txt
278 file=/etc/clamav-unofficial-sigs.conf
279 file=/etc/clamav-unofficial-sigs.dsa.conf
284 file=/etc/apache2/conf.d/ressource-limits
285 file=/etc/apt/preferences
286 file=/etc/apt/sources.list.d/volatile.list
287 file=/etc/apt/sources.list.d/security.list
288 file=/etc/apt/sources.list.d/buildd.list
289 file=/etc/apt/sources.list.d/debian.org.list
290 file=/etc/apt/sources.list.d/debian.restricted.list
291 file=/etc/apt/sources.list.d/debian.list
292 file=/etc/apt/sources.list.d/backports.org.list
293 file=/etc/apt/apt.conf.d/local-recommends
294 file=/etc/apt/apt.conf.d/local-pdiffs
295 file=/etc/puppet/puppet.conf
296 file=/etc/default/puppet
297 file=/etc/default/postgrey
298 file=/etc/logrotate.d/exim4-paniclog
299 file=/etc/logrotate.d/exim4-base
300 file=/etc/logrotate.d/syslog-ng
301 file=/etc/syslog-ng/syslog-ng.conf
302 file=/usr/sbin/dsa-update-apt-status
303 file=/usr/sbin/dsa-update-samhain-status
304 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
305 file=/etc/nagios/nrpe.d/debianorg.cfg
306 file=/etc/nagios/obsolete-packages-ignore
307 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
308 file=/usr/lib/nagios/plugins/dsa-check-packages
309 file=/usr/lib/nagios/plugins/dsa-check-soas
310 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
311 file=/usr/lib/nagios/plugins/dsa-check-samhain
312 file=/usr/lib/nagios/plugins/dsa-check-statusfile
313 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
314 file=/usr/lib/nagios/plugins/dsa-check-config
315 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
316 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
317 file=/usr/lib/nagios/plugins/dsa-check-puppet
318 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
319 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
320 file=/usr/lib/nagios/plugins/dsa-check-dabackup
321 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
322 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
323 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
324 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
325 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
327 file=/etc/sysctl.d/mmap_min_addr.conf
329 file=/etc/monit/monitrc
330 file=/etc/monit/monit.d/01puppet
331 file=/etc/monit/monit.d/00debian.org
332 file=/etc/cron.d/dsa-puppet-stuff
335 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
336 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
337 file=/etc/nagios3/puppetconf.d/auto-services.cfg
338 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
339 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
340 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
341 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
342 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
349 ## for these files, all modifications (even access time) are reported
350 ## - you may create some interesting-looking file (like /etc/safe_passwd),
351 ## just to watch whether someone will access it ...
356 ## Use for prelinked files or directories holding them
362 ## for these files, only access time is ignored
368 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
369 # so we go 3 levels deep
376 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
377 # so we go 3 levels deep there too
381 # Various directories / files that may include / be SUID/SGID binaries
384 file=/usr/lib/pt_chown
385 # X11, in Debian X7 this is now a symlink
387 #dir=/usr/X11R6/lib/X11/xmcd/bin
389 #file=/usr/lib/apache/suexec
390 #file=/usr/lib/apache/suexec.disabled
397 ## User0 and User1 are sections for files/dirs with user-definable checking
403 ## Here you can assign severities to policy violations.
404 ## If this severity exceeds the treshold of a log facility (see below),
405 ## a policy violation will be logged to that facility.
407 ## Severity for verification failures.
409 # SeverityReadOnly=crit
410 # SeverityLogFiles=crit
411 # SeverityGrowingLogs=crit
412 # SeverityIgnoreNone=crit
413 # SeverityAttributes=crit
418 SeverityReadOnly=crit
419 SeverityLogFiles=crit
420 SeverityGrowingLogs=warn
421 SeverityIgnoreNone=crit
422 SeverityAttributes=crit
426 ## We have a file in IgnoreAll that might or might not be present.
427 ## Setting the severity to 'info' prevents messages about deleted/new file.
429 # SeverityIgnoreAll=crit
430 SeverityIgnoreAll=info
432 ## Files : file access problems
435 ## Dirs : directory access problems
438 ## Names : suspect (non-printable) characters in a pathname
449 ## Switch on/OFF log facilities and set their threshold severity
451 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
452 ## 'mark' is used for timestamps.
455 ## Use 'none' to SWITCH OFF a log facility
457 ## By default, everything equal to and above the threshold is logged.
458 ## The specifiers '*', '!', and '=' are interpreted as
459 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
460 ## at least on Linux). Examples:
462 ## MailSeverity=!warn
463 ## MailSeverity==crit
479 # SyslogSeverity=none
481 ## Remote server (yule)
483 # ExportSeverity=none
485 ## External script or program
487 # ExternalSeverity = none
489 ## Logging to a database
491 # DatabaseSeverity = none
504 #####################################################
508 #####################################################
512 ## --- Check the filesystem for SUID/SGID binaries
517 # SuidCheckActive = yes
519 ## Interval for check (seconds)
521 # SuidCheckInterval = 7200
523 ## Alternative: crontab-like schedule
525 # SuidCheckSchedule = NULL
527 ## Directory to exclude
529 # SuidCheckExclude = NULL
531 ## Limit on files per second (0 == no limit)
535 ## Alternative: yield after every file
537 # SuidCheckYield = no
539 ## Severity of a detection
541 # SeveritySuidCheck = crit
543 ## Quarantine SUID/SGID files if found
545 # SuidCheckQuarantineFiles = yes
547 ## Method for Quarantining files:
548 # 0 - Delete or truncate the file.
549 # 1 - Remove SUID/SGID permissions from file.
550 # 2 - Move SUID/SGID file to quarantine dir.
552 # SuidCheckQuarantineMethod = 0
554 ## For method 1 and 3, really delete instead of truncating
556 # SuidCheckQuarantineDelete = yes
560 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
565 KernelCheckActive = True
567 ## Check interval (seconds); btw., the check is VERY fast
569 # KernelCheckInterval = 300
573 # SeverityKernel = crit
578 ## --- Logging of login/logout events
583 LoginCheckActive = True
585 ## Severity for logins, multiple logins, logouts
588 # SeverityLoginMulti=warn
589 # SeverityLogout=info
591 ## Interval for login/logout checks
593 # LoginCheckInterval = 300
598 ## --- Logging to a relational database
603 # SetDBName = samhain
611 # SetDBUser = samhain
615 # SetDBPassword = (default: none)
619 # SetDBHost = localhost
621 ## Log the server timestamp for received messages
623 # SetDBServerTstamp = True
625 ## Use a persistent connection
627 # UsePersistent = True
631 ## Interface to call external scripts/programs for logging
634 ## The absolute path to the command
635 ## - Each invocation of this directive will end the definition of the
636 ## preceding command, and start the definition of
637 ## an additional, new command
639 # OpenCommand = (no default)
642 ## - log for log messages, srv for messages received by the server
646 ## The command (full command line) to execute
648 # SetCommandLine = (no default)
650 ## The environment (KEY=value; repeat for more)
652 # SetEnviron = TZ=(your timezone)
654 ## The TIGER192 checksum (optional)
656 # SetChecksum = (no default)
658 ## User who runs the command
660 # SetCredentials = (default: samhain process uid)
662 ## Words not allowed in message
664 # SetFilterNot = (none)
666 ## Words required (ALL of them)
668 # SetFilterAnd = (none)
670 ## Words required (at least one)
672 # SetFilterOr = (none)
674 ## Deadtime between consecutive calls
678 ## Add default environment (HOME, PATH, SHELL)
683 #####################################################
685 # Miscellaneous configuration options
687 #####################################################
691 ## whether to become a daemon process
692 ## (this is not honoured on database initialisation)
697 ## whether to test signature of files (init/check/none)
698 ## - if 'none', then we have to decide this on the command line -
700 # ChecksumTest = none
703 ## whether to drop linux capabilities that are not required
704 ## - will make a root process a 'mere mortal' in many respects
708 ## Set nice level (-19 to 19, see 'man nice'),
709 ## and I/O limit (kilobytes per second; 0 == off)
710 ## to reduce load on host.
715 ## The version string to embed in file signature databases
717 # VersionString = NULL
719 ## Interval between time stamp messages
724 ## Interval between file checks
726 # SetFileCheckTime = 600
727 SetFileCheckTime = 7200
729 ## Alternative: crontab-like schedule
731 # FileCheckScheduleOne = NULL
733 ## Alternative: crontab-like schedule(2)
735 # FileCheckScheduleTwo = NULL
737 ## Report only once on modified fles
738 ## Setting this to 'FALSE' will generate a report for any policy
739 ## violation (old and new ones) each time the daemon checks the file system.
741 # ReportOnlyOnce = True
743 ## Report in full detail
745 # ReportFullDetail = False
747 ## Report file timestamps in local time rather than GMT
751 ## The console device (can also be a file or named pipe)
752 ## - There are two console devices. Accordingly, you can use
753 ## this directive a second time to set the second console device.
754 ## If you have not defined the second device at compile time,
755 ## and you don't want to use it, then:
756 ## setting it to /dev/null is less effective than just leaving
757 ## it alone (setting to /dev/null will waste time by opening
758 ## /dev/null and writing to it)
760 # SetConsole = /dev/console
762 ## Activate the SysV IPC message queue
764 # MessageQueueActive = False
767 ## If false, skip reverse lookup when connecting to a host known
768 ## by name rather than IP address (i.e. trust the DNS)
770 # SetReverseLookup = True
774 # Only highest-level (alert) reports will be mailed immediately,
775 # others will be queued. Here you can define, when the queue will
776 # be flushed (Note: the queue is automatically flushed after
777 # completing a file check).
781 ## Maximum number of mails to queue
785 ## Recipient (max. 8)
787 SetMailAddress=samhain-reports@debian.org
789 ## Mail relay (IP address)
792 if not nodeinfo['smarthost'].empty?
794 SetMailRelay = localhost
798 SetMailRelay = master.debian.org
803 ## Custom subject format
805 MailSubject = [Samhain at %H] %T: %S
807 ## --- end E-Mail ---
809 ## Path to the prelink executable
811 # SetPrelinkPath = /usr/sbin/prelink
813 ## TIGER192 checksum of the prelink executable
815 # SetPrelinkChecksum = (no default)
818 ## Path to the executable. If set, will be checksummed after startup
821 # SamhainPath = (no default)
824 ## The IP address of the log server
826 # SetLogServer = (default: compiled-in)
828 ## The IP address of the time server
830 # SetTimeServer = (default: compiled-in)
832 ## Trusted Users (comma delimited list of user names)
834 # TrustedUser = (no default; this adds to the compiled-in list)
836 ## Path to the file signature database
838 # SetDatabasePath = (default: compiled-in)
840 ## Path to the log file
842 # SetLogfilePath = (default: compiled-in)
844 ## Path to the PID file
846 # SetLockPath = (default: compiled-in)
849 ## The digest/checksum/hash algorithm
851 # DigestAlgo = TIGER192
854 ## Custom format for message header.
855 ## CAREFUL if you use XML logfile format.
864 # MessageHeader="%S %T "
867 ## Don't log path to config/database file on startup
871 ## The syslog facility, if you log to syslog
873 # SyslogFacility = LOG_AUTHPRIV
874 SyslogFacility=LOG_LOCAL2
876 ## The message authentication method
877 ## - If you change this, you *must* change it
878 ## on client *and* server
880 # MACType = HMAC-TIGER
883 ## everything below is ignored
886 #####################################################################
887 # This would be the proper syntax for parts that should only be
888 # included for certain hosts.
889 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
890 # result still has the proper syntax for the config file.
891 # You may have any number of @HOSTNAME/@end brackets.
892 # HOSTNAME should be the fully qualified 'official' name
893 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
894 # No IP number - except if samhain cannot determine the
895 # fully qualified hostname.
901 # These are two examples for conditional inclusion/exclusion
902 # of a machine based on the output from 'uname -srm'
911 #####################################################################