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
232 file=/etc/apt/preferences
233 file=/etc/apt/sources.list.d/volatile.list
234 file=/etc/apt/sources.list.d/security.list
235 file=/etc/apt/sources.list.d/buildd.list
236 file=/etc/apt/sources.list.d/debian.org.list
237 file=/etc/apt/sources.list.d/debian.restricted.list
238 file=/etc/apt/sources.list.d/debian.list
239 file=/etc/apt/sources.list.d/backports.org.list
240 file=/etc/apt/apt.conf.d/local-recommends
241 file=/etc/apt/apt.conf.d/local-pdiffs
242 file=/etc/puppet/puppet.conf
243 file=/etc/default/puppet
244 file=/etc/logrotate.d/exim4-paniclog
245 file=/etc/logrotate.d/exim4-base
246 file=/etc/logrotate.d/syslog-ng
247 file=/etc/syslog-ng/syslog-ng.conf
248 file=/usr/sbin/dsa-update-apt-status
249 file=/usr/sbin/dsa-update-samhain-status
250 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
251 file=/etc/nagios/nrpe.d/debianorg.cfg
252 file=/etc/nagios/obsolete-packages-ignore
253 file=/usr/lib/nagios/plugins/dsa-check-packages
254 file=/usr/lib/nagios/plugins/dsa-check-soas
255 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
256 file=/usr/lib/nagios/plugins/dsa-check-samhain
257 file=/usr/lib/nagios/plugins/dsa-check-statusfile
258 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
259 file=/usr/lib/nagios/plugins/dsa-check-config
260 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
261 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
262 file=/usr/lib/nagios/plugins/dsa-check-puppet
263 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
264 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
265 file=/usr/lib/nagios/plugins/dsa-check-dabackup
266 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
267 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
268 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
269 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
270 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
273 file=/etc/monit/monitrc
274 file=/etc/monit/monit.d/01puppet
275 file=/etc/monit/monit.d/00debian.org
278 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
279 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
280 file=/etc/nagios3/puppetconf.d/auto-services.cfg
281 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
282 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
283 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
284 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
291 ## for these files, all modifications (even access time) are reported
292 ## - you may create some interesting-looking file (like /etc/safe_passwd),
293 ## just to watch whether someone will access it ...
298 ## Use for prelinked files or directories holding them
304 ## for these files, only access time is ignored
310 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
311 # so we go 3 levels deep
318 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
319 # so we go 3 levels deep there too
323 # Various directories / files that may include / be SUID/SGID binaries
326 file=/usr/lib/pt_chown
327 # X11, in Debian X7 this is now a symlink
329 #dir=/usr/X11R6/lib/X11/xmcd/bin
331 #file=/usr/lib/apache/suexec
332 #file=/usr/lib/apache/suexec.disabled
339 ## User0 and User1 are sections for files/dirs with user-definable checking
345 ## Here you can assign severities to policy violations.
346 ## If this severity exceeds the treshold of a log facility (see below),
347 ## a policy violation will be logged to that facility.
349 ## Severity for verification failures.
351 # SeverityReadOnly=crit
352 # SeverityLogFiles=crit
353 # SeverityGrowingLogs=crit
354 # SeverityIgnoreNone=crit
355 # SeverityAttributes=crit
360 SeverityReadOnly=crit
361 SeverityLogFiles=crit
362 SeverityGrowingLogs=warn
363 SeverityIgnoreNone=crit
364 SeverityAttributes=crit
368 ## We have a file in IgnoreAll that might or might not be present.
369 ## Setting the severity to 'info' prevents messages about deleted/new file.
371 # SeverityIgnoreAll=crit
372 SeverityIgnoreAll=info
374 ## Files : file access problems
377 ## Dirs : directory access problems
380 ## Names : suspect (non-printable) characters in a pathname
391 ## Switch on/OFF log facilities and set their threshold severity
393 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
394 ## 'mark' is used for timestamps.
397 ## Use 'none' to SWITCH OFF a log facility
399 ## By default, everything equal to and above the threshold is logged.
400 ## The specifiers '*', '!', and '=' are interpreted as
401 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
402 ## at least on Linux). Examples:
404 ## MailSeverity=!warn
405 ## MailSeverity==crit
421 # SyslogSeverity=none
423 ## Remote server (yule)
425 # ExportSeverity=none
427 ## External script or program
429 # ExternalSeverity = none
431 ## Logging to a database
433 # DatabaseSeverity = none
446 #####################################################
450 #####################################################
454 ## --- Check the filesystem for SUID/SGID binaries
459 # SuidCheckActive = yes
461 ## Interval for check (seconds)
463 # SuidCheckInterval = 7200
465 ## Alternative: crontab-like schedule
467 # SuidCheckSchedule = NULL
469 ## Directory to exclude
471 # SuidCheckExclude = NULL
473 ## Limit on files per second (0 == no limit)
477 ## Alternative: yield after every file
479 # SuidCheckYield = no
481 ## Severity of a detection
483 # SeveritySuidCheck = crit
485 ## Quarantine SUID/SGID files if found
487 # SuidCheckQuarantineFiles = yes
489 ## Method for Quarantining files:
490 # 0 - Delete or truncate the file.
491 # 1 - Remove SUID/SGID permissions from file.
492 # 2 - Move SUID/SGID file to quarantine dir.
494 # SuidCheckQuarantineMethod = 0
496 ## For method 1 and 3, really delete instead of truncating
498 # SuidCheckQuarantineDelete = yes
502 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
507 KernelCheckActive = True
509 ## Check interval (seconds); btw., the check is VERY fast
511 # KernelCheckInterval = 300
515 # SeverityKernel = crit
520 ## --- Logging of login/logout events
525 LoginCheckActive = True
527 ## Severity for logins, multiple logins, logouts
530 # SeverityLoginMulti=warn
531 # SeverityLogout=info
533 ## Interval for login/logout checks
535 # LoginCheckInterval = 300
540 ## --- Logging to a relational database
545 # SetDBName = samhain
553 # SetDBUser = samhain
557 # SetDBPassword = (default: none)
561 # SetDBHost = localhost
563 ## Log the server timestamp for received messages
565 # SetDBServerTstamp = True
567 ## Use a persistent connection
569 # UsePersistent = True
573 ## Interface to call external scripts/programs for logging
576 ## The absolute path to the command
577 ## - Each invocation of this directive will end the definition of the
578 ## preceding command, and start the definition of
579 ## an additional, new command
581 # OpenCommand = (no default)
584 ## - log for log messages, srv for messages received by the server
588 ## The command (full command line) to execute
590 # SetCommandLine = (no default)
592 ## The environment (KEY=value; repeat for more)
594 # SetEnviron = TZ=(your timezone)
596 ## The TIGER192 checksum (optional)
598 # SetChecksum = (no default)
600 ## User who runs the command
602 # SetCredentials = (default: samhain process uid)
604 ## Words not allowed in message
606 # SetFilterNot = (none)
608 ## Words required (ALL of them)
610 # SetFilterAnd = (none)
612 ## Words required (at least one)
614 # SetFilterOr = (none)
616 ## Deadtime between consecutive calls
620 ## Add default environment (HOME, PATH, SHELL)
625 #####################################################
627 # Miscellaneous configuration options
629 #####################################################
633 ## whether to become a daemon process
634 ## (this is not honoured on database initialisation)
639 ## whether to test signature of files (init/check/none)
640 ## - if 'none', then we have to decide this on the command line -
642 # ChecksumTest = none
645 ## whether to drop linux capabilities that are not required
646 ## - will make a root process a 'mere mortal' in many respects
650 ## Set nice level (-19 to 19, see 'man nice'),
651 ## and I/O limit (kilobytes per second; 0 == off)
652 ## to reduce load on host.
657 ## The version string to embed in file signature databases
659 # VersionString = NULL
661 ## Interval between time stamp messages
666 ## Interval between file checks
668 # SetFileCheckTime = 600
669 SetFileCheckTime = 7200
671 ## Alternative: crontab-like schedule
673 # FileCheckScheduleOne = NULL
675 ## Alternative: crontab-like schedule(2)
677 # FileCheckScheduleTwo = NULL
679 ## Report only once on modified fles
680 ## Setting this to 'FALSE' will generate a report for any policy
681 ## violation (old and new ones) each time the daemon checks the file system.
683 # ReportOnlyOnce = True
685 ## Report in full detail
687 # ReportFullDetail = False
689 ## Report file timestamps in local time rather than GMT
693 ## The console device (can also be a file or named pipe)
694 ## - There are two console devices. Accordingly, you can use
695 ## this directive a second time to set the second console device.
696 ## If you have not defined the second device at compile time,
697 ## and you don't want to use it, then:
698 ## setting it to /dev/null is less effective than just leaving
699 ## it alone (setting to /dev/null will waste time by opening
700 ## /dev/null and writing to it)
702 # SetConsole = /dev/console
704 ## Activate the SysV IPC message queue
706 # MessageQueueActive = False
709 ## If false, skip reverse lookup when connecting to a host known
710 ## by name rather than IP address (i.e. trust the DNS)
712 # SetReverseLookup = True
716 # Only highest-level (alert) reports will be mailed immediately,
717 # others will be queued. Here you can define, when the queue will
718 # be flushed (Note: the queue is automatically flushed after
719 # completing a file check).
723 ## Maximum number of mails to queue
727 ## Recipient (max. 8)
729 SetMailAddress=samhain-reports@debian.org
731 ## Mail relay (IP address)
734 if not nodeinfo['smarthost'].empty?
736 SetMailRelay = localhost
740 SetMailRelay = master.debian.org
745 ## Custom subject format
747 MailSubject = [Samhain at %H] %T: %S
749 ## --- end E-Mail ---
751 ## Path to the prelink executable
753 # SetPrelinkPath = /usr/sbin/prelink
755 ## TIGER192 checksum of the prelink executable
757 # SetPrelinkChecksum = (no default)
760 ## Path to the executable. If set, will be checksummed after startup
763 # SamhainPath = (no default)
766 ## The IP address of the log server
768 # SetLogServer = (default: compiled-in)
770 ## The IP address of the time server
772 # SetTimeServer = (default: compiled-in)
774 ## Trusted Users (comma delimited list of user names)
776 # TrustedUser = (no default; this adds to the compiled-in list)
778 ## Path to the file signature database
780 # SetDatabasePath = (default: compiled-in)
782 ## Path to the log file
784 # SetLogfilePath = (default: compiled-in)
786 ## Path to the PID file
788 # SetLockPath = (default: compiled-in)
791 ## The digest/checksum/hash algorithm
793 # DigestAlgo = TIGER192
796 ## Custom format for message header.
797 ## CAREFUL if you use XML logfile format.
806 # MessageHeader="%S %T "
809 ## Don't log path to config/database file on startup
813 ## The syslog facility, if you log to syslog
815 # SyslogFacility = LOG_AUTHPRIV
816 SyslogFacility=LOG_LOCAL2
818 ## The message authentication method
819 ## - If you change this, you *must* change it
820 ## on client *and* server
822 # MACType = HMAC-TIGER
825 ## everything below is ignored
828 #####################################################################
829 # This would be the proper syntax for parts that should only be
830 # included for certain hosts.
831 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
832 # result still has the proper syntax for the config file.
833 # You may have any number of @HOSTNAME/@end brackets.
834 # HOSTNAME should be the fully qualified 'official' name
835 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
836 # No IP number - except if samhain cannot determine the
837 # fully qualified hostname.
843 # These are two examples for conditional inclusion/exclusion
844 # of a machine based on the output from 'uname -srm'
853 #####################################################################