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.security.debian.org.SA
98 file=/etc/bind/geodns/db.security.debian.org.OC
99 file=/etc/bind/geodns/db.security.debian.org.NA
100 file=/etc/bind/geodns/db.security.debian.org.EU
101 file=/etc/bind/geodns/db.security.debian.org.AS
102 file=/etc/bind/geodns/db.security.debian.org.AN
103 file=/etc/bind/geodns/db.security.debian.org.AF
104 file=/etc/bind/geodns/db.security.debian.org
105 file=/usr/share/GeoIP/GeoIPv6.dat
110 # There are files in /etc that might change, thus changing the directory
111 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
115 file=/etc/network/run
118 # These are the directories for the files we handle with puppet
124 file=/etc/apt/apt.conf.d
125 file=/etc/apt/sources.list.d
127 file=/etc/logrotate.d
129 file=/etc/nagios/nrpe.d
130 file=/etc/nagios/obsolete-packages-ignore.d
131 file=/etc/bind/geodns
132 file=/usr/share/GeoIP/
135 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
137 else extradir="file=/etc/puppet"
142 file=/usr/lib/nagios/plugins
145 file=/etc/monit/monit.d
152 ## for these files, changes in signature, timestamps, and size are ignored
159 #####################################################################
161 # This would be the proper syntax for parts that should only be
162 # included for certain hosts.
163 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
164 # result still has the proper syntax for the config file.
165 # You may have any number of @HOSTNAME/@end brackets.
166 # HOSTNAME should be the fully qualified 'official' name
167 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
168 # No IP number - except if samhain cannot determine the
169 # fully qualified hostname.
175 # These are two examples for conditional inclusion/exclusion
176 # of a machine based on the output from 'uname -srm'
186 #####################################################################
190 ## for these files, changes in signature, timestamps, and increase in size
194 file=/var/log/messages
196 file=/var/log/faillog
197 file=/var/log/auth.log
198 file=/var/log/daemon.log
199 file=/var/log/user.log
200 file=/var/log/kern.log
206 ## for these files, no modifications are reported
208 ## This file might be created or removed by the system sometimes.
210 file=/etc/resolv.conf.pcmcia.save
212 file=/etc/postfix/debian.db
213 file=/etc/postfix/debian
214 file=/etc/ssh/ssh_known_hosts
215 file=/etc/ssh/ssh-rsa-shadow
216 file=/var/lib/misc/ssh-rsa-shadow
217 file=/etc/.da-backup.trace
218 file=/etc/postfix/debianhosts
219 file=/etc/postfix/debianhosts.db
221 file=/etc/blkid.tab.old
222 file=/etc/resolv.conf.dhclient-new
224 # We handle these files with puppet - please to not be bothering us
227 file=/etc/samhain/samhainrc
228 file=/etc/munin/munin-node.conf
229 file=/etc/userdir-ldap.confc
230 file=/etc/exim4/blacklist
231 file=/etc/exim4/callout_users
232 file=/etc/exim4/exim4.conf
233 file=/etc/exim4/grey_users
234 file=/etc/exim4/helo-check
235 file=/etc/exim4/locals
236 file=/etc/exim4/localusers
237 file=/etc/exim4/manualroute
238 file=/etc/exim4/rbllist
239 file=/etc/exim4/rcpthosts
240 file=/etc/exim4/rhsbllist
241 file=/etc/exim4/virtualdomains
242 file=/etc/exim4/whitelist
243 file=/etc/exim4/local-auto.conf
244 file=/etc/exim4/local-settings.conf
245 file=/etc/exim4/ssl/ca.crt
246 file=/etc/exim4/ssl/ca.crl
247 file=/etc/exim4/ssl/thishost.crt
248 file=/etc/exim4/ssl/thishost.key
251 if not nodeinfo['heavy_exim'].empty?
253 file=/etc/exim4/surbl_whitelist.txt
254 file=/etc/exim4/exim_surbl.pl
255 file=/etc/exim4/ccTLD.txt
260 file=/etc/apt/preferences
261 file=/etc/apt/sources.list.d/volatile.list
262 file=/etc/apt/sources.list.d/security.list
263 file=/etc/apt/sources.list.d/buildd.list
264 file=/etc/apt/sources.list.d/debian.org.list
265 file=/etc/apt/sources.list.d/debian.restricted.list
266 file=/etc/apt/sources.list.d/debian.list
267 file=/etc/apt/sources.list.d/backports.org.list
268 file=/etc/apt/apt.conf.d/local-recommends
269 file=/etc/apt/apt.conf.d/local-pdiffs
270 file=/etc/puppet/puppet.conf
271 file=/etc/default/puppet
272 file=/etc/default/postgrey
273 file=/etc/logrotate.d/exim4-paniclog
274 file=/etc/logrotate.d/exim4-base
275 file=/etc/logrotate.d/syslog-ng
276 file=/etc/syslog-ng/syslog-ng.conf
277 file=/usr/sbin/dsa-update-apt-status
278 file=/usr/sbin/dsa-update-samhain-status
279 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
280 file=/etc/nagios/nrpe.d/debianorg.cfg
281 file=/etc/nagios/obsolete-packages-ignore
282 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
283 file=/usr/lib/nagios/plugins/dsa-check-packages
284 file=/usr/lib/nagios/plugins/dsa-check-soas
285 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
286 file=/usr/lib/nagios/plugins/dsa-check-samhain
287 file=/usr/lib/nagios/plugins/dsa-check-statusfile
288 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
289 file=/usr/lib/nagios/plugins/dsa-check-config
290 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
291 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
292 file=/usr/lib/nagios/plugins/dsa-check-puppet
293 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
294 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
295 file=/usr/lib/nagios/plugins/dsa-check-dabackup
296 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
297 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
298 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
299 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
300 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
303 file=/etc/monit/monitrc
304 file=/etc/monit/monit.d/01puppet
305 file=/etc/monit/monit.d/00debian.org
306 file=/etc/cron.d/dsa-puppet-stuff
309 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
310 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
311 file=/etc/nagios3/puppetconf.d/auto-services.cfg
312 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
313 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
314 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
315 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
322 ## for these files, all modifications (even access time) are reported
323 ## - you may create some interesting-looking file (like /etc/safe_passwd),
324 ## just to watch whether someone will access it ...
329 ## Use for prelinked files or directories holding them
335 ## for these files, only access time is ignored
341 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
342 # so we go 3 levels deep
349 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
350 # so we go 3 levels deep there too
354 # Various directories / files that may include / be SUID/SGID binaries
357 file=/usr/lib/pt_chown
358 # X11, in Debian X7 this is now a symlink
360 #dir=/usr/X11R6/lib/X11/xmcd/bin
362 #file=/usr/lib/apache/suexec
363 #file=/usr/lib/apache/suexec.disabled
370 ## User0 and User1 are sections for files/dirs with user-definable checking
376 ## Here you can assign severities to policy violations.
377 ## If this severity exceeds the treshold of a log facility (see below),
378 ## a policy violation will be logged to that facility.
380 ## Severity for verification failures.
382 # SeverityReadOnly=crit
383 # SeverityLogFiles=crit
384 # SeverityGrowingLogs=crit
385 # SeverityIgnoreNone=crit
386 # SeverityAttributes=crit
391 SeverityReadOnly=crit
392 SeverityLogFiles=crit
393 SeverityGrowingLogs=warn
394 SeverityIgnoreNone=crit
395 SeverityAttributes=crit
399 ## We have a file in IgnoreAll that might or might not be present.
400 ## Setting the severity to 'info' prevents messages about deleted/new file.
402 # SeverityIgnoreAll=crit
403 SeverityIgnoreAll=info
405 ## Files : file access problems
408 ## Dirs : directory access problems
411 ## Names : suspect (non-printable) characters in a pathname
422 ## Switch on/OFF log facilities and set their threshold severity
424 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
425 ## 'mark' is used for timestamps.
428 ## Use 'none' to SWITCH OFF a log facility
430 ## By default, everything equal to and above the threshold is logged.
431 ## The specifiers '*', '!', and '=' are interpreted as
432 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
433 ## at least on Linux). Examples:
435 ## MailSeverity=!warn
436 ## MailSeverity==crit
452 # SyslogSeverity=none
454 ## Remote server (yule)
456 # ExportSeverity=none
458 ## External script or program
460 # ExternalSeverity = none
462 ## Logging to a database
464 # DatabaseSeverity = none
477 #####################################################
481 #####################################################
485 ## --- Check the filesystem for SUID/SGID binaries
490 # SuidCheckActive = yes
492 ## Interval for check (seconds)
494 # SuidCheckInterval = 7200
496 ## Alternative: crontab-like schedule
498 # SuidCheckSchedule = NULL
500 ## Directory to exclude
502 # SuidCheckExclude = NULL
504 ## Limit on files per second (0 == no limit)
508 ## Alternative: yield after every file
510 # SuidCheckYield = no
512 ## Severity of a detection
514 # SeveritySuidCheck = crit
516 ## Quarantine SUID/SGID files if found
518 # SuidCheckQuarantineFiles = yes
520 ## Method for Quarantining files:
521 # 0 - Delete or truncate the file.
522 # 1 - Remove SUID/SGID permissions from file.
523 # 2 - Move SUID/SGID file to quarantine dir.
525 # SuidCheckQuarantineMethod = 0
527 ## For method 1 and 3, really delete instead of truncating
529 # SuidCheckQuarantineDelete = yes
533 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
538 KernelCheckActive = True
540 ## Check interval (seconds); btw., the check is VERY fast
542 # KernelCheckInterval = 300
546 # SeverityKernel = crit
551 ## --- Logging of login/logout events
556 LoginCheckActive = True
558 ## Severity for logins, multiple logins, logouts
561 # SeverityLoginMulti=warn
562 # SeverityLogout=info
564 ## Interval for login/logout checks
566 # LoginCheckInterval = 300
571 ## --- Logging to a relational database
576 # SetDBName = samhain
584 # SetDBUser = samhain
588 # SetDBPassword = (default: none)
592 # SetDBHost = localhost
594 ## Log the server timestamp for received messages
596 # SetDBServerTstamp = True
598 ## Use a persistent connection
600 # UsePersistent = True
604 ## Interface to call external scripts/programs for logging
607 ## The absolute path to the command
608 ## - Each invocation of this directive will end the definition of the
609 ## preceding command, and start the definition of
610 ## an additional, new command
612 # OpenCommand = (no default)
615 ## - log for log messages, srv for messages received by the server
619 ## The command (full command line) to execute
621 # SetCommandLine = (no default)
623 ## The environment (KEY=value; repeat for more)
625 # SetEnviron = TZ=(your timezone)
627 ## The TIGER192 checksum (optional)
629 # SetChecksum = (no default)
631 ## User who runs the command
633 # SetCredentials = (default: samhain process uid)
635 ## Words not allowed in message
637 # SetFilterNot = (none)
639 ## Words required (ALL of them)
641 # SetFilterAnd = (none)
643 ## Words required (at least one)
645 # SetFilterOr = (none)
647 ## Deadtime between consecutive calls
651 ## Add default environment (HOME, PATH, SHELL)
656 #####################################################
658 # Miscellaneous configuration options
660 #####################################################
664 ## whether to become a daemon process
665 ## (this is not honoured on database initialisation)
670 ## whether to test signature of files (init/check/none)
671 ## - if 'none', then we have to decide this on the command line -
673 # ChecksumTest = none
676 ## whether to drop linux capabilities that are not required
677 ## - will make a root process a 'mere mortal' in many respects
681 ## Set nice level (-19 to 19, see 'man nice'),
682 ## and I/O limit (kilobytes per second; 0 == off)
683 ## to reduce load on host.
688 ## The version string to embed in file signature databases
690 # VersionString = NULL
692 ## Interval between time stamp messages
697 ## Interval between file checks
699 # SetFileCheckTime = 600
700 SetFileCheckTime = 7200
702 ## Alternative: crontab-like schedule
704 # FileCheckScheduleOne = NULL
706 ## Alternative: crontab-like schedule(2)
708 # FileCheckScheduleTwo = NULL
710 ## Report only once on modified fles
711 ## Setting this to 'FALSE' will generate a report for any policy
712 ## violation (old and new ones) each time the daemon checks the file system.
714 # ReportOnlyOnce = True
716 ## Report in full detail
718 # ReportFullDetail = False
720 ## Report file timestamps in local time rather than GMT
724 ## The console device (can also be a file or named pipe)
725 ## - There are two console devices. Accordingly, you can use
726 ## this directive a second time to set the second console device.
727 ## If you have not defined the second device at compile time,
728 ## and you don't want to use it, then:
729 ## setting it to /dev/null is less effective than just leaving
730 ## it alone (setting to /dev/null will waste time by opening
731 ## /dev/null and writing to it)
733 # SetConsole = /dev/console
735 ## Activate the SysV IPC message queue
737 # MessageQueueActive = False
740 ## If false, skip reverse lookup when connecting to a host known
741 ## by name rather than IP address (i.e. trust the DNS)
743 # SetReverseLookup = True
747 # Only highest-level (alert) reports will be mailed immediately,
748 # others will be queued. Here you can define, when the queue will
749 # be flushed (Note: the queue is automatically flushed after
750 # completing a file check).
754 ## Maximum number of mails to queue
758 ## Recipient (max. 8)
760 SetMailAddress=samhain-reports@debian.org
762 ## Mail relay (IP address)
765 if not nodeinfo['smarthost'].empty?
767 SetMailRelay = localhost
771 SetMailRelay = master.debian.org
776 ## Custom subject format
778 MailSubject = [Samhain at %H] %T: %S
780 ## --- end E-Mail ---
782 ## Path to the prelink executable
784 # SetPrelinkPath = /usr/sbin/prelink
786 ## TIGER192 checksum of the prelink executable
788 # SetPrelinkChecksum = (no default)
791 ## Path to the executable. If set, will be checksummed after startup
794 # SamhainPath = (no default)
797 ## The IP address of the log server
799 # SetLogServer = (default: compiled-in)
801 ## The IP address of the time server
803 # SetTimeServer = (default: compiled-in)
805 ## Trusted Users (comma delimited list of user names)
807 # TrustedUser = (no default; this adds to the compiled-in list)
809 ## Path to the file signature database
811 # SetDatabasePath = (default: compiled-in)
813 ## Path to the log file
815 # SetLogfilePath = (default: compiled-in)
817 ## Path to the PID file
819 # SetLockPath = (default: compiled-in)
822 ## The digest/checksum/hash algorithm
824 # DigestAlgo = TIGER192
827 ## Custom format for message header.
828 ## CAREFUL if you use XML logfile format.
837 # MessageHeader="%S %T "
840 ## Don't log path to config/database file on startup
844 ## The syslog facility, if you log to syslog
846 # SyslogFacility = LOG_AUTHPRIV
847 SyslogFacility=LOG_LOCAL2
849 ## The message authentication method
850 ## - If you change this, you *must* change it
851 ## on client *and* server
853 # MACType = HMAC-TIGER
856 ## everything below is ignored
859 #####################################################################
860 # This would be the proper syntax for parts that should only be
861 # included for certain hosts.
862 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
863 # result still has the proper syntax for the config file.
864 # You may have any number of @HOSTNAME/@end brackets.
865 # HOSTNAME should be the fully qualified 'official' name
866 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
867 # No IP number - except if samhain cannot determine the
868 # fully qualified hostname.
874 # These are two examples for conditional inclusion/exclusion
875 # of a machine based on the output from 'uname -srm'
884 #####################################################################