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.security.debian.org
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
109 # There are files in /etc that might change, thus changing the directory
110 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
114 file=/etc/network/run
117 # These are the directories for the files we handle with puppet
123 file=/etc/apt/apt.conf.d
124 file=/etc/apt/sources.list.d
126 file=/etc/logrotate.d
128 file=/etc/nagios/nrpe.d
129 file=/etc/nagios/obsolete-packages-ignore.d
130 file=/etc/bind/geodns
133 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
135 else extradir="file=/etc/puppet"
140 file=/usr/lib/nagios/plugins
143 file=/etc/monit/monit.d
150 ## for these files, changes in signature, timestamps, and size are ignored
157 #####################################################################
159 # This would be the proper syntax for parts that should only be
160 # included for certain hosts.
161 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
162 # result still has the proper syntax for the config file.
163 # You may have any number of @HOSTNAME/@end brackets.
164 # HOSTNAME should be the fully qualified 'official' name
165 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
166 # No IP number - except if samhain cannot determine the
167 # fully qualified hostname.
173 # These are two examples for conditional inclusion/exclusion
174 # of a machine based on the output from 'uname -srm'
184 #####################################################################
188 ## for these files, changes in signature, timestamps, and increase in size
192 file=/var/log/messages
194 file=/var/log/faillog
195 file=/var/log/auth.log
196 file=/var/log/daemon.log
197 file=/var/log/user.log
198 file=/var/log/kern.log
204 ## for these files, no modifications are reported
206 ## This file might be created or removed by the system sometimes.
208 file=/etc/resolv.conf.pcmcia.save
210 file=/etc/postfix/debian.db
211 file=/etc/postfix/debian
212 file=/etc/ssh/ssh_known_hosts
213 file=/etc/ssh/ssh-rsa-shadow
214 file=/var/lib/misc/ssh-rsa-shadow
215 file=/etc/.da-backup.trace
216 file=/etc/postfix/debianhosts
217 file=/etc/postfix/debianhosts.db
219 file=/etc/blkid.tab.old
220 file=/etc/resolv.conf.dhclient-new
222 # We handle these files with puppet - please to not be bothering us
225 file=/etc/samhain/samhainrc
226 file=/etc/munin/munin-node.conf
227 file=/etc/userdir-ldap.confc
228 file=/etc/exim4/blacklist
229 file=/etc/exim4/callout_users
230 file=/etc/exim4/exim4.conf
231 file=/etc/exim4/grey_users
232 file=/etc/exim4/helo-check
233 file=/etc/exim4/locals
234 file=/etc/exim4/localusers
235 file=/etc/exim4/manualroute
236 file=/etc/exim4/rbllist
237 file=/etc/exim4/rcpthosts
238 file=/etc/exim4/rhsbllist
239 file=/etc/exim4/virtualdomains
240 file=/etc/exim4/whitelist
241 file=/etc/exim4/local-auto.conf
242 file=/etc/exim4/local-settings.conf
243 file=/etc/exim4/ssl/ca.crt
244 file=/etc/exim4/ssl/ca.crl
245 file=/etc/exim4/ssl/thishost.crt
246 file=/etc/exim4/ssl/thishost.key
249 if not nodeinfo['heavy_exim'].empty?
251 file=/etc/exim4/surbl_whitelist.txt
252 file=/etc/exim4/exim_surbl.pl
253 file=/etc/exim4/ccTLD.txt
258 file=/etc/apt/preferences
259 file=/etc/apt/sources.list.d/volatile.list
260 file=/etc/apt/sources.list.d/security.list
261 file=/etc/apt/sources.list.d/buildd.list
262 file=/etc/apt/sources.list.d/debian.org.list
263 file=/etc/apt/sources.list.d/debian.restricted.list
264 file=/etc/apt/sources.list.d/debian.list
265 file=/etc/apt/sources.list.d/backports.org.list
266 file=/etc/apt/apt.conf.d/local-recommends
267 file=/etc/apt/apt.conf.d/local-pdiffs
268 file=/etc/puppet/puppet.conf
269 file=/etc/default/puppet
270 file=/etc/default/postgrey
271 file=/etc/logrotate.d/exim4-paniclog
272 file=/etc/logrotate.d/exim4-base
273 file=/etc/logrotate.d/syslog-ng
274 file=/etc/syslog-ng/syslog-ng.conf
275 file=/usr/sbin/dsa-update-apt-status
276 file=/usr/sbin/dsa-update-samhain-status
277 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
278 file=/etc/nagios/nrpe.d/debianorg.cfg
279 file=/etc/nagios/obsolete-packages-ignore
280 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
281 file=/usr/lib/nagios/plugins/dsa-check-packages
282 file=/usr/lib/nagios/plugins/dsa-check-soas
283 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
284 file=/usr/lib/nagios/plugins/dsa-check-samhain
285 file=/usr/lib/nagios/plugins/dsa-check-statusfile
286 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
287 file=/usr/lib/nagios/plugins/dsa-check-config
288 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
289 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
290 file=/usr/lib/nagios/plugins/dsa-check-puppet
291 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
292 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
293 file=/usr/lib/nagios/plugins/dsa-check-dabackup
294 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
295 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
296 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
297 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
298 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
301 file=/etc/monit/monitrc
302 file=/etc/monit/monit.d/01puppet
303 file=/etc/monit/monit.d/00debian.org
304 file=/etc/cron.d/dsa-puppet-stuff
307 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
308 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
309 file=/etc/nagios3/puppetconf.d/auto-services.cfg
310 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
311 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
312 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
313 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
320 ## for these files, all modifications (even access time) are reported
321 ## - you may create some interesting-looking file (like /etc/safe_passwd),
322 ## just to watch whether someone will access it ...
327 ## Use for prelinked files or directories holding them
333 ## for these files, only access time is ignored
339 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
340 # so we go 3 levels deep
347 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
348 # so we go 3 levels deep there too
352 # Various directories / files that may include / be SUID/SGID binaries
355 file=/usr/lib/pt_chown
356 # X11, in Debian X7 this is now a symlink
358 #dir=/usr/X11R6/lib/X11/xmcd/bin
360 #file=/usr/lib/apache/suexec
361 #file=/usr/lib/apache/suexec.disabled
368 ## User0 and User1 are sections for files/dirs with user-definable checking
374 ## Here you can assign severities to policy violations.
375 ## If this severity exceeds the treshold of a log facility (see below),
376 ## a policy violation will be logged to that facility.
378 ## Severity for verification failures.
380 # SeverityReadOnly=crit
381 # SeverityLogFiles=crit
382 # SeverityGrowingLogs=crit
383 # SeverityIgnoreNone=crit
384 # SeverityAttributes=crit
389 SeverityReadOnly=crit
390 SeverityLogFiles=crit
391 SeverityGrowingLogs=warn
392 SeverityIgnoreNone=crit
393 SeverityAttributes=crit
397 ## We have a file in IgnoreAll that might or might not be present.
398 ## Setting the severity to 'info' prevents messages about deleted/new file.
400 # SeverityIgnoreAll=crit
401 SeverityIgnoreAll=info
403 ## Files : file access problems
406 ## Dirs : directory access problems
409 ## Names : suspect (non-printable) characters in a pathname
420 ## Switch on/OFF log facilities and set their threshold severity
422 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
423 ## 'mark' is used for timestamps.
426 ## Use 'none' to SWITCH OFF a log facility
428 ## By default, everything equal to and above the threshold is logged.
429 ## The specifiers '*', '!', and '=' are interpreted as
430 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
431 ## at least on Linux). Examples:
433 ## MailSeverity=!warn
434 ## MailSeverity==crit
450 # SyslogSeverity=none
452 ## Remote server (yule)
454 # ExportSeverity=none
456 ## External script or program
458 # ExternalSeverity = none
460 ## Logging to a database
462 # DatabaseSeverity = none
475 #####################################################
479 #####################################################
483 ## --- Check the filesystem for SUID/SGID binaries
488 # SuidCheckActive = yes
490 ## Interval for check (seconds)
492 # SuidCheckInterval = 7200
494 ## Alternative: crontab-like schedule
496 # SuidCheckSchedule = NULL
498 ## Directory to exclude
500 # SuidCheckExclude = NULL
502 ## Limit on files per second (0 == no limit)
506 ## Alternative: yield after every file
508 # SuidCheckYield = no
510 ## Severity of a detection
512 # SeveritySuidCheck = crit
514 ## Quarantine SUID/SGID files if found
516 # SuidCheckQuarantineFiles = yes
518 ## Method for Quarantining files:
519 # 0 - Delete or truncate the file.
520 # 1 - Remove SUID/SGID permissions from file.
521 # 2 - Move SUID/SGID file to quarantine dir.
523 # SuidCheckQuarantineMethod = 0
525 ## For method 1 and 3, really delete instead of truncating
527 # SuidCheckQuarantineDelete = yes
531 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
536 KernelCheckActive = True
538 ## Check interval (seconds); btw., the check is VERY fast
540 # KernelCheckInterval = 300
544 # SeverityKernel = crit
549 ## --- Logging of login/logout events
554 LoginCheckActive = True
556 ## Severity for logins, multiple logins, logouts
559 # SeverityLoginMulti=warn
560 # SeverityLogout=info
562 ## Interval for login/logout checks
564 # LoginCheckInterval = 300
569 ## --- Logging to a relational database
574 # SetDBName = samhain
582 # SetDBUser = samhain
586 # SetDBPassword = (default: none)
590 # SetDBHost = localhost
592 ## Log the server timestamp for received messages
594 # SetDBServerTstamp = True
596 ## Use a persistent connection
598 # UsePersistent = True
602 ## Interface to call external scripts/programs for logging
605 ## The absolute path to the command
606 ## - Each invocation of this directive will end the definition of the
607 ## preceding command, and start the definition of
608 ## an additional, new command
610 # OpenCommand = (no default)
613 ## - log for log messages, srv for messages received by the server
617 ## The command (full command line) to execute
619 # SetCommandLine = (no default)
621 ## The environment (KEY=value; repeat for more)
623 # SetEnviron = TZ=(your timezone)
625 ## The TIGER192 checksum (optional)
627 # SetChecksum = (no default)
629 ## User who runs the command
631 # SetCredentials = (default: samhain process uid)
633 ## Words not allowed in message
635 # SetFilterNot = (none)
637 ## Words required (ALL of them)
639 # SetFilterAnd = (none)
641 ## Words required (at least one)
643 # SetFilterOr = (none)
645 ## Deadtime between consecutive calls
649 ## Add default environment (HOME, PATH, SHELL)
654 #####################################################
656 # Miscellaneous configuration options
658 #####################################################
662 ## whether to become a daemon process
663 ## (this is not honoured on database initialisation)
668 ## whether to test signature of files (init/check/none)
669 ## - if 'none', then we have to decide this on the command line -
671 # ChecksumTest = none
674 ## whether to drop linux capabilities that are not required
675 ## - will make a root process a 'mere mortal' in many respects
679 ## Set nice level (-19 to 19, see 'man nice'),
680 ## and I/O limit (kilobytes per second; 0 == off)
681 ## to reduce load on host.
686 ## The version string to embed in file signature databases
688 # VersionString = NULL
690 ## Interval between time stamp messages
695 ## Interval between file checks
697 # SetFileCheckTime = 600
698 SetFileCheckTime = 7200
700 ## Alternative: crontab-like schedule
702 # FileCheckScheduleOne = NULL
704 ## Alternative: crontab-like schedule(2)
706 # FileCheckScheduleTwo = NULL
708 ## Report only once on modified fles
709 ## Setting this to 'FALSE' will generate a report for any policy
710 ## violation (old and new ones) each time the daemon checks the file system.
712 # ReportOnlyOnce = True
714 ## Report in full detail
716 # ReportFullDetail = False
718 ## Report file timestamps in local time rather than GMT
722 ## The console device (can also be a file or named pipe)
723 ## - There are two console devices. Accordingly, you can use
724 ## this directive a second time to set the second console device.
725 ## If you have not defined the second device at compile time,
726 ## and you don't want to use it, then:
727 ## setting it to /dev/null is less effective than just leaving
728 ## it alone (setting to /dev/null will waste time by opening
729 ## /dev/null and writing to it)
731 # SetConsole = /dev/console
733 ## Activate the SysV IPC message queue
735 # MessageQueueActive = False
738 ## If false, skip reverse lookup when connecting to a host known
739 ## by name rather than IP address (i.e. trust the DNS)
741 # SetReverseLookup = True
745 # Only highest-level (alert) reports will be mailed immediately,
746 # others will be queued. Here you can define, when the queue will
747 # be flushed (Note: the queue is automatically flushed after
748 # completing a file check).
752 ## Maximum number of mails to queue
756 ## Recipient (max. 8)
758 SetMailAddress=samhain-reports@debian.org
760 ## Mail relay (IP address)
763 if not nodeinfo['smarthost'].empty?
765 SetMailRelay = localhost
769 SetMailRelay = master.debian.org
774 ## Custom subject format
776 MailSubject = [Samhain at %H] %T: %S
778 ## --- end E-Mail ---
780 ## Path to the prelink executable
782 # SetPrelinkPath = /usr/sbin/prelink
784 ## TIGER192 checksum of the prelink executable
786 # SetPrelinkChecksum = (no default)
789 ## Path to the executable. If set, will be checksummed after startup
792 # SamhainPath = (no default)
795 ## The IP address of the log server
797 # SetLogServer = (default: compiled-in)
799 ## The IP address of the time server
801 # SetTimeServer = (default: compiled-in)
803 ## Trusted Users (comma delimited list of user names)
805 # TrustedUser = (no default; this adds to the compiled-in list)
807 ## Path to the file signature database
809 # SetDatabasePath = (default: compiled-in)
811 ## Path to the log file
813 # SetLogfilePath = (default: compiled-in)
815 ## Path to the PID file
817 # SetLockPath = (default: compiled-in)
820 ## The digest/checksum/hash algorithm
822 # DigestAlgo = TIGER192
825 ## Custom format for message header.
826 ## CAREFUL if you use XML logfile format.
835 # MessageHeader="%S %T "
838 ## Don't log path to config/database file on startup
842 ## The syslog facility, if you log to syslog
844 # SyslogFacility = LOG_AUTHPRIV
845 SyslogFacility=LOG_LOCAL2
847 ## The message authentication method
848 ## - If you change this, you *must* change it
849 ## on client *and* server
851 # MACType = HMAC-TIGER
854 ## everything below is ignored
857 #####################################################################
858 # This would be the proper syntax for parts that should only be
859 # included for certain hosts.
860 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
861 # result still has the proper syntax for the config file.
862 # You may have any number of @HOSTNAME/@end brackets.
863 # HOSTNAME should be the fully qualified 'official' name
864 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
865 # No IP number - except if samhain cannot determine the
866 # fully qualified hostname.
872 # These are two examples for conditional inclusion/exclusion
873 # of a machine based on the output from 'uname -srm'
882 #####################################################################