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
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
289 file=/etc/powerdns/ip2iso
292 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
293 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
294 file=/etc/nagios3/puppetconf.d/auto-services.cfg
295 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
296 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
297 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
298 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
305 ## for these files, all modifications (even access time) are reported
306 ## - you may create some interesting-looking file (like /etc/safe_passwd),
307 ## just to watch whether someone will access it ...
312 ## Use for prelinked files or directories holding them
318 ## for these files, only access time is ignored
324 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
325 # so we go 3 levels deep
332 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
333 # so we go 3 levels deep there too
337 # Various directories / files that may include / be SUID/SGID binaries
340 file=/usr/lib/pt_chown
341 # X11, in Debian X7 this is now a symlink
343 #dir=/usr/X11R6/lib/X11/xmcd/bin
345 #file=/usr/lib/apache/suexec
346 #file=/usr/lib/apache/suexec.disabled
353 ## User0 and User1 are sections for files/dirs with user-definable checking
359 ## Here you can assign severities to policy violations.
360 ## If this severity exceeds the treshold of a log facility (see below),
361 ## a policy violation will be logged to that facility.
363 ## Severity for verification failures.
365 # SeverityReadOnly=crit
366 # SeverityLogFiles=crit
367 # SeverityGrowingLogs=crit
368 # SeverityIgnoreNone=crit
369 # SeverityAttributes=crit
374 SeverityReadOnly=crit
375 SeverityLogFiles=crit
376 SeverityGrowingLogs=warn
377 SeverityIgnoreNone=crit
378 SeverityAttributes=crit
382 ## We have a file in IgnoreAll that might or might not be present.
383 ## Setting the severity to 'info' prevents messages about deleted/new file.
385 # SeverityIgnoreAll=crit
386 SeverityIgnoreAll=info
388 ## Files : file access problems
391 ## Dirs : directory access problems
394 ## Names : suspect (non-printable) characters in a pathname
405 ## Switch on/OFF log facilities and set their threshold severity
407 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
408 ## 'mark' is used for timestamps.
411 ## Use 'none' to SWITCH OFF a log facility
413 ## By default, everything equal to and above the threshold is logged.
414 ## The specifiers '*', '!', and '=' are interpreted as
415 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
416 ## at least on Linux). Examples:
418 ## MailSeverity=!warn
419 ## MailSeverity==crit
435 # SyslogSeverity=none
437 ## Remote server (yule)
439 # ExportSeverity=none
441 ## External script or program
443 # ExternalSeverity = none
445 ## Logging to a database
447 # DatabaseSeverity = none
460 #####################################################
464 #####################################################
468 ## --- Check the filesystem for SUID/SGID binaries
473 # SuidCheckActive = yes
475 ## Interval for check (seconds)
477 # SuidCheckInterval = 7200
479 ## Alternative: crontab-like schedule
481 # SuidCheckSchedule = NULL
483 ## Directory to exclude
485 # SuidCheckExclude = NULL
487 ## Limit on files per second (0 == no limit)
491 ## Alternative: yield after every file
493 # SuidCheckYield = no
495 ## Severity of a detection
497 # SeveritySuidCheck = crit
499 ## Quarantine SUID/SGID files if found
501 # SuidCheckQuarantineFiles = yes
503 ## Method for Quarantining files:
504 # 0 - Delete or truncate the file.
505 # 1 - Remove SUID/SGID permissions from file.
506 # 2 - Move SUID/SGID file to quarantine dir.
508 # SuidCheckQuarantineMethod = 0
510 ## For method 1 and 3, really delete instead of truncating
512 # SuidCheckQuarantineDelete = yes
516 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
521 KernelCheckActive = True
523 ## Check interval (seconds); btw., the check is VERY fast
525 # KernelCheckInterval = 300
529 # SeverityKernel = crit
534 ## --- Logging of login/logout events
539 LoginCheckActive = True
541 ## Severity for logins, multiple logins, logouts
544 # SeverityLoginMulti=warn
545 # SeverityLogout=info
547 ## Interval for login/logout checks
549 # LoginCheckInterval = 300
554 ## --- Logging to a relational database
559 # SetDBName = samhain
567 # SetDBUser = samhain
571 # SetDBPassword = (default: none)
575 # SetDBHost = localhost
577 ## Log the server timestamp for received messages
579 # SetDBServerTstamp = True
581 ## Use a persistent connection
583 # UsePersistent = True
587 ## Interface to call external scripts/programs for logging
590 ## The absolute path to the command
591 ## - Each invocation of this directive will end the definition of the
592 ## preceding command, and start the definition of
593 ## an additional, new command
595 # OpenCommand = (no default)
598 ## - log for log messages, srv for messages received by the server
602 ## The command (full command line) to execute
604 # SetCommandLine = (no default)
606 ## The environment (KEY=value; repeat for more)
608 # SetEnviron = TZ=(your timezone)
610 ## The TIGER192 checksum (optional)
612 # SetChecksum = (no default)
614 ## User who runs the command
616 # SetCredentials = (default: samhain process uid)
618 ## Words not allowed in message
620 # SetFilterNot = (none)
622 ## Words required (ALL of them)
624 # SetFilterAnd = (none)
626 ## Words required (at least one)
628 # SetFilterOr = (none)
630 ## Deadtime between consecutive calls
634 ## Add default environment (HOME, PATH, SHELL)
639 #####################################################
641 # Miscellaneous configuration options
643 #####################################################
647 ## whether to become a daemon process
648 ## (this is not honoured on database initialisation)
653 ## whether to test signature of files (init/check/none)
654 ## - if 'none', then we have to decide this on the command line -
656 # ChecksumTest = none
659 ## whether to drop linux capabilities that are not required
660 ## - will make a root process a 'mere mortal' in many respects
664 ## Set nice level (-19 to 19, see 'man nice'),
665 ## and I/O limit (kilobytes per second; 0 == off)
666 ## to reduce load on host.
671 ## The version string to embed in file signature databases
673 # VersionString = NULL
675 ## Interval between time stamp messages
680 ## Interval between file checks
682 # SetFileCheckTime = 600
683 SetFileCheckTime = 7200
685 ## Alternative: crontab-like schedule
687 # FileCheckScheduleOne = NULL
689 ## Alternative: crontab-like schedule(2)
691 # FileCheckScheduleTwo = NULL
693 ## Report only once on modified fles
694 ## Setting this to 'FALSE' will generate a report for any policy
695 ## violation (old and new ones) each time the daemon checks the file system.
697 # ReportOnlyOnce = True
699 ## Report in full detail
701 # ReportFullDetail = False
703 ## Report file timestamps in local time rather than GMT
707 ## The console device (can also be a file or named pipe)
708 ## - There are two console devices. Accordingly, you can use
709 ## this directive a second time to set the second console device.
710 ## If you have not defined the second device at compile time,
711 ## and you don't want to use it, then:
712 ## setting it to /dev/null is less effective than just leaving
713 ## it alone (setting to /dev/null will waste time by opening
714 ## /dev/null and writing to it)
716 # SetConsole = /dev/console
718 ## Activate the SysV IPC message queue
720 # MessageQueueActive = False
723 ## If false, skip reverse lookup when connecting to a host known
724 ## by name rather than IP address (i.e. trust the DNS)
726 # SetReverseLookup = True
730 # Only highest-level (alert) reports will be mailed immediately,
731 # others will be queued. Here you can define, when the queue will
732 # be flushed (Note: the queue is automatically flushed after
733 # completing a file check).
737 ## Maximum number of mails to queue
741 ## Recipient (max. 8)
743 SetMailAddress=samhain-reports@debian.org
745 ## Mail relay (IP address)
748 if not nodeinfo['smarthost'].empty?
750 SetMailRelay = localhost
754 SetMailRelay = master.debian.org
759 ## Custom subject format
761 MailSubject = [Samhain at %H] %T: %S
763 ## --- end E-Mail ---
765 ## Path to the prelink executable
767 # SetPrelinkPath = /usr/sbin/prelink
769 ## TIGER192 checksum of the prelink executable
771 # SetPrelinkChecksum = (no default)
774 ## Path to the executable. If set, will be checksummed after startup
777 # SamhainPath = (no default)
780 ## The IP address of the log server
782 # SetLogServer = (default: compiled-in)
784 ## The IP address of the time server
786 # SetTimeServer = (default: compiled-in)
788 ## Trusted Users (comma delimited list of user names)
790 # TrustedUser = (no default; this adds to the compiled-in list)
792 ## Path to the file signature database
794 # SetDatabasePath = (default: compiled-in)
796 ## Path to the log file
798 # SetLogfilePath = (default: compiled-in)
800 ## Path to the PID file
802 # SetLockPath = (default: compiled-in)
805 ## The digest/checksum/hash algorithm
807 # DigestAlgo = TIGER192
810 ## Custom format for message header.
811 ## CAREFUL if you use XML logfile format.
820 # MessageHeader="%S %T "
823 ## Don't log path to config/database file on startup
827 ## The syslog facility, if you log to syslog
829 # SyslogFacility = LOG_AUTHPRIV
830 SyslogFacility=LOG_LOCAL2
832 ## The message authentication method
833 ## - If you change this, you *must* change it
834 ## on client *and* server
836 # MACType = HMAC-TIGER
839 ## everything below is ignored
842 #####################################################################
843 # This would be the proper syntax for parts that should only be
844 # included for certain hosts.
845 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
846 # result still has the proper syntax for the config file.
847 # You may have any number of @HOSTNAME/@end brackets.
848 # HOSTNAME should be the fully qualified 'official' name
849 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
850 # No IP number - except if samhain cannot determine the
851 # fully qualified hostname.
857 # These are two examples for conditional inclusion/exclusion
858 # of a machine based on the output from 'uname -srm'
867 #####################################################################