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
96 # There are files in /etc that might change, thus changing the directory
97 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
101 file=/etc/network/run
104 # These are the directories for the files we handle with puppet
110 file=/etc/apt/apt.conf.d
111 file=/etc/apt/sources.list.d
113 file=/etc/logrotate.d
115 file=/etc/nagios/nrpe.d
118 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
120 else extradir="file=/etc/puppet"
125 file=/usr/lib/nagios/plugins
128 file=/etc/monit/monit.d
135 ## for these files, changes in signature, timestamps, and size are ignored
142 #####################################################################
144 # This would be the proper syntax for parts that should only be
145 # included for certain hosts.
146 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
147 # result still has the proper syntax for the config file.
148 # You may have any number of @HOSTNAME/@end brackets.
149 # HOSTNAME should be the fully qualified 'official' name
150 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
151 # No IP number - except if samhain cannot determine the
152 # fully qualified hostname.
158 # These are two examples for conditional inclusion/exclusion
159 # of a machine based on the output from 'uname -srm'
169 #####################################################################
173 ## for these files, changes in signature, timestamps, and increase in size
177 file=/var/log/messages
179 file=/var/log/faillog
180 file=/var/log/auth.log
181 file=/var/log/daemon.log
182 file=/var/log/user.log
183 file=/var/log/kern.log
189 ## for these files, no modifications are reported
191 ## This file might be created or removed by the system sometimes.
193 file=/etc/resolv.conf.pcmcia.save
195 file=/etc/postfix/debian.db
196 file=/etc/postfix/debian
197 file=/etc/ssh/ssh_known_hosts
198 file=/etc/ssh/ssh-rsa-shadow
199 file=/var/lib/misc/ssh-rsa-shadow
200 file=/etc/.da-backup.trace
201 file=/etc/postfix/debianhosts
202 file=/etc/postfix/debianhosts.db
204 file=/etc/blkid.tab.old
205 file=/etc/resolv.conf.dhclient-new
207 # We handle these files with puppet - please to not be bothering us
210 file=/etc/samhain/samhainrc
211 file=/etc/munin/munin-node.conf
212 file=/etc/userdir-ldap.confc
213 file=/etc/exim4/blacklist
214 file=/etc/exim4/callout_users
215 file=/etc/exim4/exim4.conf
216 file=/etc/exim4/grey_users
217 file=/etc/exim4/helo-check
218 file=/etc/exim4/locals
219 file=/etc/exim4/localusers
220 file=/etc/exim4/manualroute
221 file=/etc/exim4/rbllist
222 file=/etc/exim4/rcpthosts
223 file=/etc/exim4/rhsbllist
224 file=/etc/exim4/virtualdomains
225 file=/etc/exim4/whitelist
226 file=/etc/exim4/local-auto.conf
227 file=/etc/exim4/local-settings.conf
228 file=/etc/exim4/ssl/ca.crt
229 file=/etc/exim4/ssl/ca.crl
230 file=/etc/exim4/ssl/thishost.crt
231 file=/etc/exim4/ssl/thishost.key
234 if not nodeinfo['heavy_exim'].empty?
236 file=/etc/exim4/surbl_whitelist.txt
237 file=/etc/exim4/exim_surbl.pl
238 file=/etc/exim4/ccTLD.txt
243 file=/etc/apt/preferences
244 file=/etc/apt/sources.list.d/volatile.list
245 file=/etc/apt/sources.list.d/security.list
246 file=/etc/apt/sources.list.d/buildd.list
247 file=/etc/apt/sources.list.d/debian.org.list
248 file=/etc/apt/sources.list.d/debian.restricted.list
249 file=/etc/apt/sources.list.d/debian.list
250 file=/etc/apt/sources.list.d/backports.org.list
251 file=/etc/apt/apt.conf.d/local-recommends
252 file=/etc/apt/apt.conf.d/local-pdiffs
253 file=/etc/puppet/puppet.conf
254 file=/etc/default/puppet
255 file=/etc/logrotate.d/exim4-paniclog
256 file=/etc/logrotate.d/exim4-base
257 file=/etc/logrotate.d/syslog-ng
258 file=/etc/syslog-ng/syslog-ng.conf
259 file=/usr/sbin/dsa-update-apt-status
260 file=/usr/sbin/dsa-update-samhain-status
261 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
262 file=/etc/nagios/nrpe.d/debianorg.cfg
263 file=/etc/nagios/obsolete-packages-ignore
264 file=/usr/lib/nagios/plugins/dsa-check-packages
265 file=/usr/lib/nagios/plugins/dsa-check-soas
266 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
267 file=/usr/lib/nagios/plugins/dsa-check-samhain
268 file=/usr/lib/nagios/plugins/dsa-check-statusfile
269 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
270 file=/usr/lib/nagios/plugins/dsa-check-config
271 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
272 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
273 file=/usr/lib/nagios/plugins/dsa-check-puppet
274 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
275 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
276 file=/usr/lib/nagios/plugins/dsa-check-dabackup
277 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
278 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
279 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
280 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
281 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
284 file=/etc/monit/monitrc
285 file=/etc/monit/monit.d/01puppet
286 file=/etc/monit/monit.d/00debian.org
289 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
290 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
291 file=/etc/nagios3/puppetconf.d/auto-services.cfg
292 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
293 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
294 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
295 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
302 ## for these files, all modifications (even access time) are reported
303 ## - you may create some interesting-looking file (like /etc/safe_passwd),
304 ## just to watch whether someone will access it ...
309 ## Use for prelinked files or directories holding them
315 ## for these files, only access time is ignored
321 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
322 # so we go 3 levels deep
329 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
330 # so we go 3 levels deep there too
334 # Various directories / files that may include / be SUID/SGID binaries
337 file=/usr/lib/pt_chown
338 # X11, in Debian X7 this is now a symlink
340 #dir=/usr/X11R6/lib/X11/xmcd/bin
342 #file=/usr/lib/apache/suexec
343 #file=/usr/lib/apache/suexec.disabled
350 ## User0 and User1 are sections for files/dirs with user-definable checking
356 ## Here you can assign severities to policy violations.
357 ## If this severity exceeds the treshold of a log facility (see below),
358 ## a policy violation will be logged to that facility.
360 ## Severity for verification failures.
362 # SeverityReadOnly=crit
363 # SeverityLogFiles=crit
364 # SeverityGrowingLogs=crit
365 # SeverityIgnoreNone=crit
366 # SeverityAttributes=crit
371 SeverityReadOnly=crit
372 SeverityLogFiles=crit
373 SeverityGrowingLogs=warn
374 SeverityIgnoreNone=crit
375 SeverityAttributes=crit
379 ## We have a file in IgnoreAll that might or might not be present.
380 ## Setting the severity to 'info' prevents messages about deleted/new file.
382 # SeverityIgnoreAll=crit
383 SeverityIgnoreAll=info
385 ## Files : file access problems
388 ## Dirs : directory access problems
391 ## Names : suspect (non-printable) characters in a pathname
402 ## Switch on/OFF log facilities and set their threshold severity
404 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
405 ## 'mark' is used for timestamps.
408 ## Use 'none' to SWITCH OFF a log facility
410 ## By default, everything equal to and above the threshold is logged.
411 ## The specifiers '*', '!', and '=' are interpreted as
412 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
413 ## at least on Linux). Examples:
415 ## MailSeverity=!warn
416 ## MailSeverity==crit
432 # SyslogSeverity=none
434 ## Remote server (yule)
436 # ExportSeverity=none
438 ## External script or program
440 # ExternalSeverity = none
442 ## Logging to a database
444 # DatabaseSeverity = none
457 #####################################################
461 #####################################################
465 ## --- Check the filesystem for SUID/SGID binaries
470 # SuidCheckActive = yes
472 ## Interval for check (seconds)
474 # SuidCheckInterval = 7200
476 ## Alternative: crontab-like schedule
478 # SuidCheckSchedule = NULL
480 ## Directory to exclude
482 # SuidCheckExclude = NULL
484 ## Limit on files per second (0 == no limit)
488 ## Alternative: yield after every file
490 # SuidCheckYield = no
492 ## Severity of a detection
494 # SeveritySuidCheck = crit
496 ## Quarantine SUID/SGID files if found
498 # SuidCheckQuarantineFiles = yes
500 ## Method for Quarantining files:
501 # 0 - Delete or truncate the file.
502 # 1 - Remove SUID/SGID permissions from file.
503 # 2 - Move SUID/SGID file to quarantine dir.
505 # SuidCheckQuarantineMethod = 0
507 ## For method 1 and 3, really delete instead of truncating
509 # SuidCheckQuarantineDelete = yes
513 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
518 KernelCheckActive = True
520 ## Check interval (seconds); btw., the check is VERY fast
522 # KernelCheckInterval = 300
526 # SeverityKernel = crit
531 ## --- Logging of login/logout events
536 LoginCheckActive = True
538 ## Severity for logins, multiple logins, logouts
541 # SeverityLoginMulti=warn
542 # SeverityLogout=info
544 ## Interval for login/logout checks
546 # LoginCheckInterval = 300
551 ## --- Logging to a relational database
556 # SetDBName = samhain
564 # SetDBUser = samhain
568 # SetDBPassword = (default: none)
572 # SetDBHost = localhost
574 ## Log the server timestamp for received messages
576 # SetDBServerTstamp = True
578 ## Use a persistent connection
580 # UsePersistent = True
584 ## Interface to call external scripts/programs for logging
587 ## The absolute path to the command
588 ## - Each invocation of this directive will end the definition of the
589 ## preceding command, and start the definition of
590 ## an additional, new command
592 # OpenCommand = (no default)
595 ## - log for log messages, srv for messages received by the server
599 ## The command (full command line) to execute
601 # SetCommandLine = (no default)
603 ## The environment (KEY=value; repeat for more)
605 # SetEnviron = TZ=(your timezone)
607 ## The TIGER192 checksum (optional)
609 # SetChecksum = (no default)
611 ## User who runs the command
613 # SetCredentials = (default: samhain process uid)
615 ## Words not allowed in message
617 # SetFilterNot = (none)
619 ## Words required (ALL of them)
621 # SetFilterAnd = (none)
623 ## Words required (at least one)
625 # SetFilterOr = (none)
627 ## Deadtime between consecutive calls
631 ## Add default environment (HOME, PATH, SHELL)
636 #####################################################
638 # Miscellaneous configuration options
640 #####################################################
644 ## whether to become a daemon process
645 ## (this is not honoured on database initialisation)
650 ## whether to test signature of files (init/check/none)
651 ## - if 'none', then we have to decide this on the command line -
653 # ChecksumTest = none
656 ## whether to drop linux capabilities that are not required
657 ## - will make a root process a 'mere mortal' in many respects
661 ## Set nice level (-19 to 19, see 'man nice'),
662 ## and I/O limit (kilobytes per second; 0 == off)
663 ## to reduce load on host.
668 ## The version string to embed in file signature databases
670 # VersionString = NULL
672 ## Interval between time stamp messages
677 ## Interval between file checks
679 # SetFileCheckTime = 600
680 SetFileCheckTime = 7200
682 ## Alternative: crontab-like schedule
684 # FileCheckScheduleOne = NULL
686 ## Alternative: crontab-like schedule(2)
688 # FileCheckScheduleTwo = NULL
690 ## Report only once on modified fles
691 ## Setting this to 'FALSE' will generate a report for any policy
692 ## violation (old and new ones) each time the daemon checks the file system.
694 # ReportOnlyOnce = True
696 ## Report in full detail
698 # ReportFullDetail = False
700 ## Report file timestamps in local time rather than GMT
704 ## The console device (can also be a file or named pipe)
705 ## - There are two console devices. Accordingly, you can use
706 ## this directive a second time to set the second console device.
707 ## If you have not defined the second device at compile time,
708 ## and you don't want to use it, then:
709 ## setting it to /dev/null is less effective than just leaving
710 ## it alone (setting to /dev/null will waste time by opening
711 ## /dev/null and writing to it)
713 # SetConsole = /dev/console
715 ## Activate the SysV IPC message queue
717 # MessageQueueActive = False
720 ## If false, skip reverse lookup when connecting to a host known
721 ## by name rather than IP address (i.e. trust the DNS)
723 # SetReverseLookup = True
727 # Only highest-level (alert) reports will be mailed immediately,
728 # others will be queued. Here you can define, when the queue will
729 # be flushed (Note: the queue is automatically flushed after
730 # completing a file check).
734 ## Maximum number of mails to queue
738 ## Recipient (max. 8)
740 SetMailAddress=samhain-reports@debian.org
742 ## Mail relay (IP address)
745 if not nodeinfo['smarthost'].empty?
747 SetMailRelay = localhost
751 SetMailRelay = master.debian.org
756 ## Custom subject format
758 MailSubject = [Samhain at %H] %T: %S
760 ## --- end E-Mail ---
762 ## Path to the prelink executable
764 # SetPrelinkPath = /usr/sbin/prelink
766 ## TIGER192 checksum of the prelink executable
768 # SetPrelinkChecksum = (no default)
771 ## Path to the executable. If set, will be checksummed after startup
774 # SamhainPath = (no default)
777 ## The IP address of the log server
779 # SetLogServer = (default: compiled-in)
781 ## The IP address of the time server
783 # SetTimeServer = (default: compiled-in)
785 ## Trusted Users (comma delimited list of user names)
787 # TrustedUser = (no default; this adds to the compiled-in list)
789 ## Path to the file signature database
791 # SetDatabasePath = (default: compiled-in)
793 ## Path to the log file
795 # SetLogfilePath = (default: compiled-in)
797 ## Path to the PID file
799 # SetLockPath = (default: compiled-in)
802 ## The digest/checksum/hash algorithm
804 # DigestAlgo = TIGER192
807 ## Custom format for message header.
808 ## CAREFUL if you use XML logfile format.
817 # MessageHeader="%S %T "
820 ## Don't log path to config/database file on startup
824 ## The syslog facility, if you log to syslog
826 # SyslogFacility = LOG_AUTHPRIV
827 SyslogFacility=LOG_LOCAL2
829 ## The message authentication method
830 ## - If you change this, you *must* change it
831 ## on client *and* server
833 # MACType = HMAC-TIGER
836 ## everything below is ignored
839 #####################################################################
840 # This would be the proper syntax for parts that should only be
841 # included for certain hosts.
842 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
843 # result still has the proper syntax for the config file.
844 # You may have any number of @HOSTNAME/@end brackets.
845 # HOSTNAME should be the fully qualified 'official' name
846 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
847 # No IP number - except if samhain cannot determine the
848 # fully qualified hostname.
854 # These are two examples for conditional inclusion/exclusion
855 # of a machine based on the output from 'uname -srm'
864 #####################################################################