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
114 file=/etc/logrotate.d
116 file=/etc/nagios/nrpe.d
119 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
121 when "handel.debian.org": extradir="dir=8/etc/puppet"
122 else extradir="file=/etc/puppet"
127 file=/usr/lib/nagios/plugins
130 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 # We handle these files with puppet - please to not be bothering us
208 file=/etc/samhain/samhainrc
209 file=/etc/munin/munin-node.conf
210 file=/etc/userdir-ldap.confc
211 file=/etc/exim4/blacklist
212 file=/etc/exim4/callout_users
213 file=/etc/exim4/exim4.conf
214 file=/etc/exim4/grey_users
215 file=/etc/exim4/helo-check
216 file=/etc/exim4/locals
217 file=/etc/exim4/localusers
218 file=/etc/exim4/manualroute
219 file=/etc/exim4/rbllist
220 file=/etc/exim4/rcpthosts
221 file=/etc/exim4/rhsbllist
222 file=/etc/exim4/virtualdomains
223 file=/etc/exim4/whitelist
224 file=/etc/exim4/local-auto.conf
225 file=/etc/exim4/local-settings.conf
226 file=/etc/exim4/ssl/ca.crt
227 file=/etc/exim4/ssl/ca.crl
228 file=/etc/exim4/ssl/thishost.crt
229 file=/etc/exim4/ssl/thishost.key
230 file=/etc/apt/preferences
231 file=/etc/apt/sources.list.d/volatile.list
232 file=/etc/apt/sources.list.d/security.list
233 file=/etc/apt/sources.list.d/buildd.list
234 file=/etc/apt/sources.list.d/debian.org.list
235 file=/etc/apt/sources.list.d/debian.restricted.list
236 file=/etc/apt/sources.list.d/debian.list
237 file=/etc/apt/sources.list.d/backports.org.list
238 file=/etc/apt/apt.conf.d/local-recommends
239 file=/etc/apt/apt.conf.d/local-pdiffs
240 file=/etc/puppet/puppet.conf
241 file=/etc/default/puppet
242 file=/etc/logrotate.d/exim4-paniclog
243 file=/etc/logrotate.d/exim4-base
244 file=/usr/sbin/dsa-update-apt-status
245 file=/usr/sbin/dsa-update-samhain-status
246 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
247 file=/etc/nagios/nrpe.d/debianorg.cfg
248 file=/etc/nagios/obsolete-packages-ignore
249 file=/usr/lib/nagios/plugins/dsa-check-packages
250 file=/usr/lib/nagios/plugins/dsa-check-soas
251 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
252 file=/usr/lib/nagios/plugins/dsa-check-samhain
253 file=/usr/lib/nagios/plugins/dsa-check-statusfile
254 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
255 file=/usr/lib/nagios/plugins/dsa-check-config
256 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
257 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
258 file=/usr/lib/nagios/plugins/dsa-check-puppet
259 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
260 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
261 file=/usr/lib/nagios/plugins/dsa-check-dabackup
262 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
263 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
264 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
265 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
266 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
270 file=/etc/blkid.tab.old
271 file=/etc/monit/monitrc
272 file=/etc/monit/monit.d/01puppet
273 file=/etc/monit/monit.d/00debian.org
274 file=/etc/resolv.conf.dhclient-new
277 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
278 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
279 file=/etc/nagios3/puppetconf.d/auto-services.cfg
280 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
281 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
282 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
289 ## for these files, all modifications (even access time) are reported
290 ## - you may create some interesting-looking file (like /etc/safe_passwd),
291 ## just to watch whether someone will access it ...
296 ## Use for prelinked files or directories holding them
302 ## for these files, only access time is ignored
308 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
309 # so we go 3 levels deep
316 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
317 # so we go 3 levels deep there too
321 # Various directories / files that may include / be SUID/SGID binaries
324 file=/usr/lib/pt_chown
325 # X11, in Debian X7 this is now a symlink
327 #dir=/usr/X11R6/lib/X11/xmcd/bin
329 #file=/usr/lib/apache/suexec
330 #file=/usr/lib/apache/suexec.disabled
337 ## User0 and User1 are sections for files/dirs with user-definable checking
343 ## Here you can assign severities to policy violations.
344 ## If this severity exceeds the treshold of a log facility (see below),
345 ## a policy violation will be logged to that facility.
347 ## Severity for verification failures.
349 # SeverityReadOnly=crit
350 # SeverityLogFiles=crit
351 # SeverityGrowingLogs=crit
352 # SeverityIgnoreNone=crit
353 # SeverityAttributes=crit
358 SeverityReadOnly=crit
359 SeverityLogFiles=crit
360 SeverityGrowingLogs=warn
361 SeverityIgnoreNone=crit
362 SeverityAttributes=crit
366 ## We have a file in IgnoreAll that might or might not be present.
367 ## Setting the severity to 'info' prevents messages about deleted/new file.
369 # SeverityIgnoreAll=crit
370 SeverityIgnoreAll=info
372 ## Files : file access problems
375 ## Dirs : directory access problems
378 ## Names : suspect (non-printable) characters in a pathname
389 ## Switch on/OFF log facilities and set their threshold severity
391 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
392 ## 'mark' is used for timestamps.
395 ## Use 'none' to SWITCH OFF a log facility
397 ## By default, everything equal to and above the threshold is logged.
398 ## The specifiers '*', '!', and '=' are interpreted as
399 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
400 ## at least on Linux). Examples:
402 ## MailSeverity=!warn
403 ## MailSeverity==crit
419 # SyslogSeverity=none
421 ## Remote server (yule)
423 # ExportSeverity=none
425 ## External script or program
427 # ExternalSeverity = none
429 ## Logging to a database
431 # DatabaseSeverity = none
444 #####################################################
448 #####################################################
452 ## --- Check the filesystem for SUID/SGID binaries
457 # SuidCheckActive = yes
459 ## Interval for check (seconds)
461 # SuidCheckInterval = 7200
463 ## Alternative: crontab-like schedule
465 # SuidCheckSchedule = NULL
467 ## Directory to exclude
469 # SuidCheckExclude = NULL
471 ## Limit on files per second (0 == no limit)
475 ## Alternative: yield after every file
477 # SuidCheckYield = no
479 ## Severity of a detection
481 # SeveritySuidCheck = crit
483 ## Quarantine SUID/SGID files if found
485 # SuidCheckQuarantineFiles = yes
487 ## Method for Quarantining files:
488 # 0 - Delete or truncate the file.
489 # 1 - Remove SUID/SGID permissions from file.
490 # 2 - Move SUID/SGID file to quarantine dir.
492 # SuidCheckQuarantineMethod = 0
494 ## For method 1 and 3, really delete instead of truncating
496 # SuidCheckQuarantineDelete = yes
500 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
505 KernelCheckActive = True
507 ## Check interval (seconds); btw., the check is VERY fast
509 # KernelCheckInterval = 300
513 # SeverityKernel = crit
518 ## --- Logging of login/logout events
523 LoginCheckActive = True
525 ## Severity for logins, multiple logins, logouts
528 # SeverityLoginMulti=warn
529 # SeverityLogout=info
531 ## Interval for login/logout checks
533 # LoginCheckInterval = 300
538 ## --- Logging to a relational database
543 # SetDBName = samhain
551 # SetDBUser = samhain
555 # SetDBPassword = (default: none)
559 # SetDBHost = localhost
561 ## Log the server timestamp for received messages
563 # SetDBServerTstamp = True
565 ## Use a persistent connection
567 # UsePersistent = True
571 ## Interface to call external scripts/programs for logging
574 ## The absolute path to the command
575 ## - Each invocation of this directive will end the definition of the
576 ## preceding command, and start the definition of
577 ## an additional, new command
579 # OpenCommand = (no default)
582 ## - log for log messages, srv for messages received by the server
586 ## The command (full command line) to execute
588 # SetCommandLine = (no default)
590 ## The environment (KEY=value; repeat for more)
592 # SetEnviron = TZ=(your timezone)
594 ## The TIGER192 checksum (optional)
596 # SetChecksum = (no default)
598 ## User who runs the command
600 # SetCredentials = (default: samhain process uid)
602 ## Words not allowed in message
604 # SetFilterNot = (none)
606 ## Words required (ALL of them)
608 # SetFilterAnd = (none)
610 ## Words required (at least one)
612 # SetFilterOr = (none)
614 ## Deadtime between consecutive calls
618 ## Add default environment (HOME, PATH, SHELL)
623 #####################################################
625 # Miscellaneous configuration options
627 #####################################################
631 ## whether to become a daemon process
632 ## (this is not honoured on database initialisation)
637 ## whether to test signature of files (init/check/none)
638 ## - if 'none', then we have to decide this on the command line -
640 # ChecksumTest = none
643 ## whether to drop linux capabilities that are not required
644 ## - will make a root process a 'mere mortal' in many respects
648 ## Set nice level (-19 to 19, see 'man nice'),
649 ## and I/O limit (kilobytes per second; 0 == off)
650 ## to reduce load on host.
655 ## The version string to embed in file signature databases
657 # VersionString = NULL
659 ## Interval between time stamp messages
664 ## Interval between file checks
666 # SetFileCheckTime = 600
667 SetFileCheckTime = 7200
669 ## Alternative: crontab-like schedule
671 # FileCheckScheduleOne = NULL
673 ## Alternative: crontab-like schedule(2)
675 # FileCheckScheduleTwo = NULL
677 ## Report only once on modified fles
678 ## Setting this to 'FALSE' will generate a report for any policy
679 ## violation (old and new ones) each time the daemon checks the file system.
681 # ReportOnlyOnce = True
683 ## Report in full detail
685 # ReportFullDetail = False
687 ## Report file timestamps in local time rather than GMT
691 ## The console device (can also be a file or named pipe)
692 ## - There are two console devices. Accordingly, you can use
693 ## this directive a second time to set the second console device.
694 ## If you have not defined the second device at compile time,
695 ## and you don't want to use it, then:
696 ## setting it to /dev/null is less effective than just leaving
697 ## it alone (setting to /dev/null will waste time by opening
698 ## /dev/null and writing to it)
700 # SetConsole = /dev/console
702 ## Activate the SysV IPC message queue
704 # MessageQueueActive = False
707 ## If false, skip reverse lookup when connecting to a host known
708 ## by name rather than IP address (i.e. trust the DNS)
710 # SetReverseLookup = True
714 # Only highest-level (alert) reports will be mailed immediately,
715 # others will be queued. Here you can define, when the queue will
716 # be flushed (Note: the queue is automatically flushed after
717 # completing a file check).
721 ## Maximum number of mails to queue
725 ## Recipient (max. 8)
727 SetMailAddress=samhain-reports@debian.org
729 ## Mail relay (IP address)
732 if not nodeinfo['smarthost'].empty?
734 SetMailRelay = localhost
738 SetMailRelay = master.debian.org
743 ## Custom subject format
745 MailSubject = [Samhain at %H] %T: %S
747 ## --- end E-Mail ---
749 ## Path to the prelink executable
751 # SetPrelinkPath = /usr/sbin/prelink
753 ## TIGER192 checksum of the prelink executable
755 # SetPrelinkChecksum = (no default)
758 ## Path to the executable. If set, will be checksummed after startup
761 # SamhainPath = (no default)
764 ## The IP address of the log server
766 # SetLogServer = (default: compiled-in)
768 ## The IP address of the time server
770 # SetTimeServer = (default: compiled-in)
772 ## Trusted Users (comma delimited list of user names)
774 # TrustedUser = (no default; this adds to the compiled-in list)
776 ## Path to the file signature database
778 # SetDatabasePath = (default: compiled-in)
780 ## Path to the log file
782 # SetLogfilePath = (default: compiled-in)
784 ## Path to the PID file
786 # SetLockPath = (default: compiled-in)
789 ## The digest/checksum/hash algorithm
791 # DigestAlgo = TIGER192
794 ## Custom format for message header.
795 ## CAREFUL if you use XML logfile format.
804 # MessageHeader="%S %T "
807 ## Don't log path to config/database file on startup
811 ## The syslog facility, if you log to syslog
813 # SyslogFacility = LOG_AUTHPRIV
814 SyslogFacility=LOG_LOCAL2
816 ## The message authentication method
817 ## - If you change this, you *must* change it
818 ## on client *and* server
820 # MACType = HMAC-TIGER
823 ## everything below is ignored
826 #####################################################################
827 # This would be the proper syntax for parts that should only be
828 # included for certain hosts.
829 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
830 # result still has the proper syntax for the config file.
831 # You may have any number of @HOSTNAME/@end brackets.
832 # HOSTNAME should be the fully qualified 'official' name
833 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
834 # No IP number - except if samhain cannot determine the
835 # fully qualified hostname.
841 # These are two examples for conditional inclusion/exclusion
842 # of a machine based on the output from 'uname -srm'
851 #####################################################################