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/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
118 file=/usr/lib/nagios/plugins
121 file=/etc/monit/monit.d
127 ## for these files, changes in signature, timestamps, and size are ignored
134 #####################################################################
136 # This would be the proper syntax for parts that should only be
137 # included for certain hosts.
138 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
139 # result still has the proper syntax for the config file.
140 # You may have any number of @HOSTNAME/@end brackets.
141 # HOSTNAME should be the fully qualified 'official' name
142 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
143 # No IP number - except if samhain cannot determine the
144 # fully qualified hostname.
150 # These are two examples for conditional inclusion/exclusion
151 # of a machine based on the output from 'uname -srm'
161 #####################################################################
165 ## for these files, changes in signature, timestamps, and increase in size
169 file=/var/log/messages
171 file=/var/log/faillog
172 file=/var/log/auth.log
173 file=/var/log/daemon.log
174 file=/var/log/user.log
175 file=/var/log/kern.log
181 ## for these files, no modifications are reported
183 ## This file might be created or removed by the system sometimes.
185 file=/etc/resolv.conf.pcmcia.save
187 file=/etc/postfix/debian.db
188 file=/etc/postfix/debian
189 file=/etc/ssh/ssh_known_hosts
190 file=/etc/ssh/ssh-rsa-shadow
191 file=/var/lib/misc/ssh-rsa-shadow
192 file=/etc/.da-backup.trace
193 file=/etc/postfix/debianhosts
194 file=/etc/postfix/debianhosts.db
196 # We handle these files with puppet - please to not be bothering us
199 file=/etc/samhain/samhainrc
200 file=/etc/munin/munin-node.conf
201 file=/etc/userdir-ldap.confc
202 file=/etc/exim4/blacklist
203 file=/etc/exim4/callout_users
204 file=/etc/exim4/exim4.conf
205 file=/etc/exim4/grey_users
206 file=/etc/exim4/helo-check
207 file=/etc/exim4/locals
208 file=/etc/exim4/localusers
209 file=/etc/exim4/manualroute
210 file=/etc/exim4/rbllist
211 file=/etc/exim4/rcpthosts
212 file=/etc/exim4/rhsbllist
213 file=/etc/exim4/virtualdomains
214 file=/etc/exim4/whitelist
215 file=/etc/exim4/local-auto.conf
216 file=/etc/exim4/local-settings.conf
217 file=/etc/exim4/ssl/ca.crt
218 file=/etc/exim4/ssl/ca.crl
219 file=/etc/exim4/ssl/thishost.crt
220 file=/etc/exim4/ssl/thishost.key
221 file=/etc/apt/preferences
222 file=/etc/apt/sources.list.d/volatile.list
223 file=/etc/apt/sources.list.d/security.list
224 file=/etc/apt/sources.list.d/buildd.list
225 file=/etc/apt/sources.list.d/debian.org.list
226 file=/etc/apt/sources.list.d/debian.restricted.list
227 file=/etc/apt/sources.list.d/debian.list
228 file=/etc/apt/sources.list.d/backports.org.list
229 file=/etc/apt/apt.conf.d/local-recommends
230 file=/etc/apt/apt.conf.d/local-pdiffs
231 file=/etc/puppet/puppet.conf
232 file=/etc/default/puppet
233 file=/etc/logrotate.d/exim4-paniclog
234 file=/etc/logrotate.d/exim4-base
235 file=/usr/sbin/dsa-update-apt-status
236 file=/usr/sbin/dsa-update-samhain-status
237 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
238 file=/etc/nagios/nrpe.d/debianorg.cfg
239 file=/etc/nagios/obsolete-packages-ignore
240 file=/usr/lib/nagios/plugins/dsa-check-packages
241 file=/usr/lib/nagios/plugins/dsa-check-soas
242 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
243 file=/usr/lib/nagios/plugins/dsa-check-samhain
244 file=/usr/lib/nagios/plugins/dsa-check-statusfile
245 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
246 file=/usr/lib/nagios/plugins/dsa-check-config
247 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
248 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
249 file=/usr/lib/nagios/plugins/dsa-check-puppet
250 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
251 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
252 file=/usr/lib/nagios/plugins/dsa-check-dabackup
253 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
254 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
255 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
256 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
257 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
261 file=/etc/blkid.tab.old
262 file=/etc/monit/monitrc
263 file=/etc/monit/monit.d/01puppet
264 file=/etc/monit/monit.d/00debian.org
265 file=/etc/resolv.conf.dhclient-new
269 ## for these files, all modifications (even access time) are reported
270 ## - you may create some interesting-looking file (like /etc/safe_passwd),
271 ## just to watch whether someone will access it ...
276 ## Use for prelinked files or directories holding them
282 ## for these files, only access time is ignored
288 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
289 # so we go 3 levels deep
296 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
297 # so we go 3 levels deep there too
301 # Various directories / files that may include / be SUID/SGID binaries
304 file=/usr/lib/pt_chown
305 # X11, in Debian X7 this is now a symlink
307 #dir=/usr/X11R6/lib/X11/xmcd/bin
309 #file=/usr/lib/apache/suexec
310 #file=/usr/lib/apache/suexec.disabled
317 ## User0 and User1 are sections for files/dirs with user-definable checking
323 ## Here you can assign severities to policy violations.
324 ## If this severity exceeds the treshold of a log facility (see below),
325 ## a policy violation will be logged to that facility.
327 ## Severity for verification failures.
329 # SeverityReadOnly=crit
330 # SeverityLogFiles=crit
331 # SeverityGrowingLogs=crit
332 # SeverityIgnoreNone=crit
333 # SeverityAttributes=crit
338 SeverityReadOnly=crit
339 SeverityLogFiles=crit
340 SeverityGrowingLogs=warn
341 SeverityIgnoreNone=crit
342 SeverityAttributes=crit
346 ## We have a file in IgnoreAll that might or might not be present.
347 ## Setting the severity to 'info' prevents messages about deleted/new file.
349 # SeverityIgnoreAll=crit
350 SeverityIgnoreAll=info
352 ## Files : file access problems
355 ## Dirs : directory access problems
358 ## Names : suspect (non-printable) characters in a pathname
369 ## Switch on/OFF log facilities and set their threshold severity
371 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
372 ## 'mark' is used for timestamps.
375 ## Use 'none' to SWITCH OFF a log facility
377 ## By default, everything equal to and above the threshold is logged.
378 ## The specifiers '*', '!', and '=' are interpreted as
379 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
380 ## at least on Linux). Examples:
382 ## MailSeverity=!warn
383 ## MailSeverity==crit
399 # SyslogSeverity=none
401 ## Remote server (yule)
403 # ExportSeverity=none
405 ## External script or program
407 # ExternalSeverity = none
409 ## Logging to a database
411 # DatabaseSeverity = none
424 #####################################################
428 #####################################################
432 ## --- Check the filesystem for SUID/SGID binaries
437 # SuidCheckActive = yes
439 ## Interval for check (seconds)
441 # SuidCheckInterval = 7200
443 ## Alternative: crontab-like schedule
445 # SuidCheckSchedule = NULL
447 ## Directory to exclude
449 # SuidCheckExclude = NULL
451 ## Limit on files per second (0 == no limit)
455 ## Alternative: yield after every file
457 # SuidCheckYield = no
459 ## Severity of a detection
461 # SeveritySuidCheck = crit
463 ## Quarantine SUID/SGID files if found
465 # SuidCheckQuarantineFiles = yes
467 ## Method for Quarantining files:
468 # 0 - Delete or truncate the file.
469 # 1 - Remove SUID/SGID permissions from file.
470 # 2 - Move SUID/SGID file to quarantine dir.
472 # SuidCheckQuarantineMethod = 0
474 ## For method 1 and 3, really delete instead of truncating
476 # SuidCheckQuarantineDelete = yes
480 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
485 KernelCheckActive = True
487 ## Check interval (seconds); btw., the check is VERY fast
489 # KernelCheckInterval = 300
493 # SeverityKernel = crit
498 ## --- Logging of login/logout events
503 LoginCheckActive = True
505 ## Severity for logins, multiple logins, logouts
508 # SeverityLoginMulti=warn
509 # SeverityLogout=info
511 ## Interval for login/logout checks
513 # LoginCheckInterval = 300
518 ## --- Logging to a relational database
523 # SetDBName = samhain
531 # SetDBUser = samhain
535 # SetDBPassword = (default: none)
539 # SetDBHost = localhost
541 ## Log the server timestamp for received messages
543 # SetDBServerTstamp = True
545 ## Use a persistent connection
547 # UsePersistent = True
551 ## Interface to call external scripts/programs for logging
554 ## The absolute path to the command
555 ## - Each invocation of this directive will end the definition of the
556 ## preceding command, and start the definition of
557 ## an additional, new command
559 # OpenCommand = (no default)
562 ## - log for log messages, srv for messages received by the server
566 ## The command (full command line) to execute
568 # SetCommandLine = (no default)
570 ## The environment (KEY=value; repeat for more)
572 # SetEnviron = TZ=(your timezone)
574 ## The TIGER192 checksum (optional)
576 # SetChecksum = (no default)
578 ## User who runs the command
580 # SetCredentials = (default: samhain process uid)
582 ## Words not allowed in message
584 # SetFilterNot = (none)
586 ## Words required (ALL of them)
588 # SetFilterAnd = (none)
590 ## Words required (at least one)
592 # SetFilterOr = (none)
594 ## Deadtime between consecutive calls
598 ## Add default environment (HOME, PATH, SHELL)
603 #####################################################
605 # Miscellaneous configuration options
607 #####################################################
611 ## whether to become a daemon process
612 ## (this is not honoured on database initialisation)
617 ## whether to test signature of files (init/check/none)
618 ## - if 'none', then we have to decide this on the command line -
620 # ChecksumTest = none
623 ## whether to drop linux capabilities that are not required
624 ## - will make a root process a 'mere mortal' in many respects
628 ## Set nice level (-19 to 19, see 'man nice'),
629 ## and I/O limit (kilobytes per second; 0 == off)
630 ## to reduce load on host.
635 ## The version string to embed in file signature databases
637 # VersionString = NULL
639 ## Interval between time stamp messages
644 ## Interval between file checks
646 # SetFileCheckTime = 600
647 SetFileCheckTime = 7200
649 ## Alternative: crontab-like schedule
651 # FileCheckScheduleOne = NULL
653 ## Alternative: crontab-like schedule(2)
655 # FileCheckScheduleTwo = NULL
657 ## Report only once on modified fles
658 ## Setting this to 'FALSE' will generate a report for any policy
659 ## violation (old and new ones) each time the daemon checks the file system.
661 # ReportOnlyOnce = True
663 ## Report in full detail
665 # ReportFullDetail = False
667 ## Report file timestamps in local time rather than GMT
671 ## The console device (can also be a file or named pipe)
672 ## - There are two console devices. Accordingly, you can use
673 ## this directive a second time to set the second console device.
674 ## If you have not defined the second device at compile time,
675 ## and you don't want to use it, then:
676 ## setting it to /dev/null is less effective than just leaving
677 ## it alone (setting to /dev/null will waste time by opening
678 ## /dev/null and writing to it)
680 # SetConsole = /dev/console
682 ## Activate the SysV IPC message queue
684 # MessageQueueActive = False
687 ## If false, skip reverse lookup when connecting to a host known
688 ## by name rather than IP address (i.e. trust the DNS)
690 # SetReverseLookup = True
694 # Only highest-level (alert) reports will be mailed immediately,
695 # others will be queued. Here you can define, when the queue will
696 # be flushed (Note: the queue is automatically flushed after
697 # completing a file check).
701 ## Maximum number of mails to queue
705 ## Recipient (max. 8)
707 SetMailAddress=samhain-reports@debian.org
709 ## Mail relay (IP address)
711 SetMailRelay = master.debian.org
713 ## Custom subject format
715 MailSubject = [Samhain at %H] %T: %S
717 ## --- end E-Mail ---
719 ## Path to the prelink executable
721 # SetPrelinkPath = /usr/sbin/prelink
723 ## TIGER192 checksum of the prelink executable
725 # SetPrelinkChecksum = (no default)
728 ## Path to the executable. If set, will be checksummed after startup
731 # SamhainPath = (no default)
734 ## The IP address of the log server
736 # SetLogServer = (default: compiled-in)
738 ## The IP address of the time server
740 # SetTimeServer = (default: compiled-in)
742 ## Trusted Users (comma delimited list of user names)
744 # TrustedUser = (no default; this adds to the compiled-in list)
746 ## Path to the file signature database
748 # SetDatabasePath = (default: compiled-in)
750 ## Path to the log file
752 # SetLogfilePath = (default: compiled-in)
754 ## Path to the PID file
756 # SetLockPath = (default: compiled-in)
759 ## The digest/checksum/hash algorithm
761 # DigestAlgo = TIGER192
764 ## Custom format for message header.
765 ## CAREFUL if you use XML logfile format.
774 # MessageHeader="%S %T "
777 ## Don't log path to config/database file on startup
781 ## The syslog facility, if you log to syslog
783 # SyslogFacility = LOG_AUTHPRIV
784 SyslogFacility=LOG_LOCAL2
786 ## The message authentication method
787 ## - If you change this, you *must* change it
788 ## on client *and* server
790 # MACType = HMAC-TIGER
793 ## everything below is ignored
796 #####################################################################
797 # This would be the proper syntax for parts that should only be
798 # included for certain hosts.
799 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
800 # result still has the proper syntax for the config file.
801 # You may have any number of @HOSTNAME/@end brackets.
802 # HOSTNAME should be the fully qualified 'official' name
803 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
804 # No IP number - except if samhain cannot determine the
805 # fully qualified hostname.
811 # These are two examples for conditional inclusion/exclusion
812 # of a machine based on the output from 'uname -srm'
821 #####################################################################