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
116 file=/etc/bind/geodns
119 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
121 else extradir="file=/etc/puppet"
126 file=/usr/lib/nagios/plugins
129 file=/etc/monit/monit.d
136 ## for these files, changes in signature, timestamps, and size are ignored
143 #####################################################################
145 # This would be the proper syntax for parts that should only be
146 # included for certain hosts.
147 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
148 # result still has the proper syntax for the config file.
149 # You may have any number of @HOSTNAME/@end brackets.
150 # HOSTNAME should be the fully qualified 'official' name
151 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
152 # No IP number - except if samhain cannot determine the
153 # fully qualified hostname.
159 # These are two examples for conditional inclusion/exclusion
160 # of a machine based on the output from 'uname -srm'
170 #####################################################################
174 ## for these files, changes in signature, timestamps, and increase in size
178 file=/var/log/messages
180 file=/var/log/faillog
181 file=/var/log/auth.log
182 file=/var/log/daemon.log
183 file=/var/log/user.log
184 file=/var/log/kern.log
190 ## for these files, no modifications are reported
192 ## This file might be created or removed by the system sometimes.
194 file=/etc/resolv.conf.pcmcia.save
196 file=/etc/postfix/debian.db
197 file=/etc/postfix/debian
198 file=/etc/ssh/ssh_known_hosts
199 file=/etc/ssh/ssh-rsa-shadow
200 file=/var/lib/misc/ssh-rsa-shadow
201 file=/etc/.da-backup.trace
202 file=/etc/postfix/debianhosts
203 file=/etc/postfix/debianhosts.db
205 file=/etc/blkid.tab.old
206 file=/etc/resolv.conf.dhclient-new
208 # We handle these files with puppet - please to not be bothering us
211 file=/etc/samhain/samhainrc
212 file=/etc/munin/munin-node.conf
213 file=/etc/userdir-ldap.confc
214 file=/etc/exim4/blacklist
215 file=/etc/exim4/callout_users
216 file=/etc/exim4/exim4.conf
217 file=/etc/exim4/grey_users
218 file=/etc/exim4/helo-check
219 file=/etc/exim4/locals
220 file=/etc/exim4/localusers
221 file=/etc/exim4/manualroute
222 file=/etc/exim4/rbllist
223 file=/etc/exim4/rcpthosts
224 file=/etc/exim4/rhsbllist
225 file=/etc/exim4/virtualdomains
226 file=/etc/exim4/whitelist
227 file=/etc/exim4/local-auto.conf
228 file=/etc/exim4/local-settings.conf
229 file=/etc/exim4/ssl/ca.crt
230 file=/etc/exim4/ssl/ca.crl
231 file=/etc/exim4/ssl/thishost.crt
232 file=/etc/exim4/ssl/thishost.key
235 if not nodeinfo['heavy_exim'].empty?
237 file=/etc/exim4/surbl_whitelist.txt
238 file=/etc/exim4/exim_surbl.pl
239 file=/etc/exim4/ccTLD.txt
244 file=/etc/apt/preferences
245 file=/etc/apt/sources.list.d/volatile.list
246 file=/etc/apt/sources.list.d/security.list
247 file=/etc/apt/sources.list.d/buildd.list
248 file=/etc/apt/sources.list.d/debian.org.list
249 file=/etc/apt/sources.list.d/debian.restricted.list
250 file=/etc/apt/sources.list.d/debian.list
251 file=/etc/apt/sources.list.d/backports.org.list
252 file=/etc/apt/apt.conf.d/local-recommends
253 file=/etc/apt/apt.conf.d/local-pdiffs
254 file=/etc/puppet/puppet.conf
255 file=/etc/default/puppet
256 file=/etc/default/postgrey
257 file=/etc/logrotate.d/exim4-paniclog
258 file=/etc/logrotate.d/exim4-base
259 file=/etc/logrotate.d/syslog-ng
260 file=/etc/syslog-ng/syslog-ng.conf
261 file=/usr/sbin/dsa-update-apt-status
262 file=/usr/sbin/dsa-update-samhain-status
263 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
264 file=/etc/nagios/nrpe.d/debianorg.cfg
265 file=/etc/nagios/obsolete-packages-ignore
266 file=/usr/lib/nagios/plugins/dsa-check-packages
267 file=/usr/lib/nagios/plugins/dsa-check-soas
268 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
269 file=/usr/lib/nagios/plugins/dsa-check-samhain
270 file=/usr/lib/nagios/plugins/dsa-check-statusfile
271 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
272 file=/usr/lib/nagios/plugins/dsa-check-config
273 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
274 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
275 file=/usr/lib/nagios/plugins/dsa-check-puppet
276 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
277 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
278 file=/usr/lib/nagios/plugins/dsa-check-dabackup
279 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
280 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
281 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
282 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
283 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
286 file=/etc/monit/monitrc
287 file=/etc/monit/monit.d/01puppet
288 file=/etc/monit/monit.d/00debian.org
291 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
292 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
293 file=/etc/nagios3/puppetconf.d/auto-services.cfg
294 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
295 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
296 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
297 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
304 ## for these files, all modifications (even access time) are reported
305 ## - you may create some interesting-looking file (like /etc/safe_passwd),
306 ## just to watch whether someone will access it ...
311 ## Use for prelinked files or directories holding them
317 ## for these files, only access time is ignored
323 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
324 # so we go 3 levels deep
331 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
332 # so we go 3 levels deep there too
336 # Various directories / files that may include / be SUID/SGID binaries
339 file=/usr/lib/pt_chown
340 # X11, in Debian X7 this is now a symlink
342 #dir=/usr/X11R6/lib/X11/xmcd/bin
344 #file=/usr/lib/apache/suexec
345 #file=/usr/lib/apache/suexec.disabled
352 ## User0 and User1 are sections for files/dirs with user-definable checking
358 ## Here you can assign severities to policy violations.
359 ## If this severity exceeds the treshold of a log facility (see below),
360 ## a policy violation will be logged to that facility.
362 ## Severity for verification failures.
364 # SeverityReadOnly=crit
365 # SeverityLogFiles=crit
366 # SeverityGrowingLogs=crit
367 # SeverityIgnoreNone=crit
368 # SeverityAttributes=crit
373 SeverityReadOnly=crit
374 SeverityLogFiles=crit
375 SeverityGrowingLogs=warn
376 SeverityIgnoreNone=crit
377 SeverityAttributes=crit
381 ## We have a file in IgnoreAll that might or might not be present.
382 ## Setting the severity to 'info' prevents messages about deleted/new file.
384 # SeverityIgnoreAll=crit
385 SeverityIgnoreAll=info
387 ## Files : file access problems
390 ## Dirs : directory access problems
393 ## Names : suspect (non-printable) characters in a pathname
404 ## Switch on/OFF log facilities and set their threshold severity
406 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
407 ## 'mark' is used for timestamps.
410 ## Use 'none' to SWITCH OFF a log facility
412 ## By default, everything equal to and above the threshold is logged.
413 ## The specifiers '*', '!', and '=' are interpreted as
414 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
415 ## at least on Linux). Examples:
417 ## MailSeverity=!warn
418 ## MailSeverity==crit
434 # SyslogSeverity=none
436 ## Remote server (yule)
438 # ExportSeverity=none
440 ## External script or program
442 # ExternalSeverity = none
444 ## Logging to a database
446 # DatabaseSeverity = none
459 #####################################################
463 #####################################################
467 ## --- Check the filesystem for SUID/SGID binaries
472 # SuidCheckActive = yes
474 ## Interval for check (seconds)
476 # SuidCheckInterval = 7200
478 ## Alternative: crontab-like schedule
480 # SuidCheckSchedule = NULL
482 ## Directory to exclude
484 # SuidCheckExclude = NULL
486 ## Limit on files per second (0 == no limit)
490 ## Alternative: yield after every file
492 # SuidCheckYield = no
494 ## Severity of a detection
496 # SeveritySuidCheck = crit
498 ## Quarantine SUID/SGID files if found
500 # SuidCheckQuarantineFiles = yes
502 ## Method for Quarantining files:
503 # 0 - Delete or truncate the file.
504 # 1 - Remove SUID/SGID permissions from file.
505 # 2 - Move SUID/SGID file to quarantine dir.
507 # SuidCheckQuarantineMethod = 0
509 ## For method 1 and 3, really delete instead of truncating
511 # SuidCheckQuarantineDelete = yes
515 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
520 KernelCheckActive = True
522 ## Check interval (seconds); btw., the check is VERY fast
524 # KernelCheckInterval = 300
528 # SeverityKernel = crit
533 ## --- Logging of login/logout events
538 LoginCheckActive = True
540 ## Severity for logins, multiple logins, logouts
543 # SeverityLoginMulti=warn
544 # SeverityLogout=info
546 ## Interval for login/logout checks
548 # LoginCheckInterval = 300
553 ## --- Logging to a relational database
558 # SetDBName = samhain
566 # SetDBUser = samhain
570 # SetDBPassword = (default: none)
574 # SetDBHost = localhost
576 ## Log the server timestamp for received messages
578 # SetDBServerTstamp = True
580 ## Use a persistent connection
582 # UsePersistent = True
586 ## Interface to call external scripts/programs for logging
589 ## The absolute path to the command
590 ## - Each invocation of this directive will end the definition of the
591 ## preceding command, and start the definition of
592 ## an additional, new command
594 # OpenCommand = (no default)
597 ## - log for log messages, srv for messages received by the server
601 ## The command (full command line) to execute
603 # SetCommandLine = (no default)
605 ## The environment (KEY=value; repeat for more)
607 # SetEnviron = TZ=(your timezone)
609 ## The TIGER192 checksum (optional)
611 # SetChecksum = (no default)
613 ## User who runs the command
615 # SetCredentials = (default: samhain process uid)
617 ## Words not allowed in message
619 # SetFilterNot = (none)
621 ## Words required (ALL of them)
623 # SetFilterAnd = (none)
625 ## Words required (at least one)
627 # SetFilterOr = (none)
629 ## Deadtime between consecutive calls
633 ## Add default environment (HOME, PATH, SHELL)
638 #####################################################
640 # Miscellaneous configuration options
642 #####################################################
646 ## whether to become a daemon process
647 ## (this is not honoured on database initialisation)
652 ## whether to test signature of files (init/check/none)
653 ## - if 'none', then we have to decide this on the command line -
655 # ChecksumTest = none
658 ## whether to drop linux capabilities that are not required
659 ## - will make a root process a 'mere mortal' in many respects
663 ## Set nice level (-19 to 19, see 'man nice'),
664 ## and I/O limit (kilobytes per second; 0 == off)
665 ## to reduce load on host.
670 ## The version string to embed in file signature databases
672 # VersionString = NULL
674 ## Interval between time stamp messages
679 ## Interval between file checks
681 # SetFileCheckTime = 600
682 SetFileCheckTime = 7200
684 ## Alternative: crontab-like schedule
686 # FileCheckScheduleOne = NULL
688 ## Alternative: crontab-like schedule(2)
690 # FileCheckScheduleTwo = NULL
692 ## Report only once on modified fles
693 ## Setting this to 'FALSE' will generate a report for any policy
694 ## violation (old and new ones) each time the daemon checks the file system.
696 # ReportOnlyOnce = True
698 ## Report in full detail
700 # ReportFullDetail = False
702 ## Report file timestamps in local time rather than GMT
706 ## The console device (can also be a file or named pipe)
707 ## - There are two console devices. Accordingly, you can use
708 ## this directive a second time to set the second console device.
709 ## If you have not defined the second device at compile time,
710 ## and you don't want to use it, then:
711 ## setting it to /dev/null is less effective than just leaving
712 ## it alone (setting to /dev/null will waste time by opening
713 ## /dev/null and writing to it)
715 # SetConsole = /dev/console
717 ## Activate the SysV IPC message queue
719 # MessageQueueActive = False
722 ## If false, skip reverse lookup when connecting to a host known
723 ## by name rather than IP address (i.e. trust the DNS)
725 # SetReverseLookup = True
729 # Only highest-level (alert) reports will be mailed immediately,
730 # others will be queued. Here you can define, when the queue will
731 # be flushed (Note: the queue is automatically flushed after
732 # completing a file check).
736 ## Maximum number of mails to queue
740 ## Recipient (max. 8)
742 SetMailAddress=samhain-reports@debian.org
744 ## Mail relay (IP address)
747 if not nodeinfo['smarthost'].empty?
749 SetMailRelay = localhost
753 SetMailRelay = master.debian.org
758 ## Custom subject format
760 MailSubject = [Samhain at %H] %T: %S
762 ## --- end E-Mail ---
764 ## Path to the prelink executable
766 # SetPrelinkPath = /usr/sbin/prelink
768 ## TIGER192 checksum of the prelink executable
770 # SetPrelinkChecksum = (no default)
773 ## Path to the executable. If set, will be checksummed after startup
776 # SamhainPath = (no default)
779 ## The IP address of the log server
781 # SetLogServer = (default: compiled-in)
783 ## The IP address of the time server
785 # SetTimeServer = (default: compiled-in)
787 ## Trusted Users (comma delimited list of user names)
789 # TrustedUser = (no default; this adds to the compiled-in list)
791 ## Path to the file signature database
793 # SetDatabasePath = (default: compiled-in)
795 ## Path to the log file
797 # SetLogfilePath = (default: compiled-in)
799 ## Path to the PID file
801 # SetLockPath = (default: compiled-in)
804 ## The digest/checksum/hash algorithm
806 # DigestAlgo = TIGER192
809 ## Custom format for message header.
810 ## CAREFUL if you use XML logfile format.
819 # MessageHeader="%S %T "
822 ## Don't log path to config/database file on startup
826 ## The syslog facility, if you log to syslog
828 # SyslogFacility = LOG_AUTHPRIV
829 SyslogFacility=LOG_LOCAL2
831 ## The message authentication method
832 ## - If you change this, you *must* change it
833 ## on client *and* server
835 # MACType = HMAC-TIGER
838 ## everything below is ignored
841 #####################################################################
842 # This would be the proper syntax for parts that should only be
843 # included for certain hosts.
844 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
845 # result still has the proper syntax for the config file.
846 # You may have any number of @HOSTNAME/@end brackets.
847 # HOSTNAME should be the fully qualified 'official' name
848 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
849 # No IP number - except if samhain cannot determine the
850 # fully qualified hostname.
856 # These are two examples for conditional inclusion/exclusion
857 # of a machine based on the output from 'uname -srm'
866 #####################################################################