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
86 file=/etc/network/run/ifstate
87 file=/var/state/samhain/samhain_file
88 file=/etc/bind/db.debian.net
93 # There are files in /etc that might change, thus changing the directory
94 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
101 # These are the directories for the files we handle with puppet
105 file=/etc/apt/apt.conf.d
106 file=/etc/apt/sources.list.d
109 file=/etc/logrotate.d
112 file=/usr/lib/nagios/plugins
117 ## for these files, changes in signature, timestamps, and size are ignored
124 #####################################################################
126 # This would be the proper syntax for parts that should only be
127 # included for certain hosts.
128 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
129 # result still has the proper syntax for the config file.
130 # You may have any number of @HOSTNAME/@end brackets.
131 # HOSTNAME should be the fully qualified 'official' name
132 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
133 # No IP number - except if samhain cannot determine the
134 # fully qualified hostname.
140 # These are two examples for conditional inclusion/exclusion
141 # of a machine based on the output from 'uname -srm'
151 #####################################################################
155 ## for these files, changes in signature, timestamps, and increase in size
159 file=/var/log/messages
161 file=/var/log/faillog
162 file=/var/log/auth.log
163 file=/var/log/daemon.log
164 file=/var/log/user.log
165 file=/var/log/kern.log
171 ## for these files, no modifications are reported
173 ## This file might be created or removed by the system sometimes.
175 file=/etc/resolv.conf.pcmcia.save
177 file=/etc/postfix/debian.db
178 file=/etc/postfix/debian
179 file=/etc/ssh/ssh_known_hosts
180 file=/etc/ssh/ssh-rsa-shadow
181 file=/var/lib/misc/ssh-rsa-shadow
182 file=/etc/.da-backup.trace
183 file=/etc/postfix/debianhosts
184 file=/etc/postfix/debianhosts.db
186 # We handle these files with puppet - please to not be bothering us
187 file=/etc/samhain/samhainrc
188 file=/etc/munin/munin-node.conf
189 file=/etc/exim4/blacklist
190 file=/etc/exim4/callout_users
191 file=/etc/exim4/exim4.conf
192 file=/etc/exim4/grey_users
193 file=/etc/exim4/helo-check
194 file=/etc/exim4/locals
195 file=/etc/exim4/localusers
196 file=/etc/exim4/rbllist
197 file=/etc/exim4/rcpthosts
198 file=/etc/exim4/rhsbllist
199 file=/etc/exim4/virtualdomains
200 file=/etc/exim4/whitelist
201 file=/etc/apt/sources.list.d/volatile.list
202 file=/etc/apt/sources.list.d/security.list
203 file=/etc/apt/sources.list.d/debian.org.list
204 file=/etc/apt/sources.list.d/debian.restricted.list
205 file=/etc/apt/sources.list.d/debian.list
206 file=/etc/apt/sources.list.d/backports.org.list
207 file=/etc/apt/apt.conf.d/local-recommends
208 file=/etc/puppet/puppet.conf
209 file=/etc/default/puppet
210 file=/etc/logrotate.d/exim4-paniclog
211 file=/etc/logrotate.d/exim4-base
212 file=/usr/sbin/dsa-update-apt-status
213 file=/usr/lib/nagios/plugins/dsa-check-packages
214 file=/usr/lib/nagios/plugins/dsa-check-soas
215 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
216 file=/usr/lib/nagios/plugins/dsa-check-samhain
217 file=/usr/lib/nagios/plugins/dsa-check-statusfile
218 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
219 file=/usr/lib/nagios/plugins/dsa-check-config
220 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
221 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
222 file=/usr/lib/nagios/plugins/dsa-check-puppet
223 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
224 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
225 file=/usr/lib/nagios/plugins/dsa-check-dabackup
226 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
227 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
228 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
229 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
233 ## for these files, all modifications (even access time) are reported
234 ## - you may create some interesting-looking file (like /etc/safe_passwd),
235 ## just to watch whether someone will access it ...
240 ## Use for prelinked files or directories holding them
246 ## for these files, only access time is ignored
252 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
253 # so we go 3 levels deep
260 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
261 # so we go 3 levels deep there too
265 # Various directories / files that may include / be SUID/SGID binaries
268 file=/usr/lib/pt_chown
269 # X11, in Debian X7 this is now a symlink
271 #dir=/usr/X11R6/lib/X11/xmcd/bin
273 #file=/usr/lib/apache/suexec
274 #file=/usr/lib/apache/suexec.disabled
281 ## User0 and User1 are sections for files/dirs with user-definable checking
287 ## Here you can assign severities to policy violations.
288 ## If this severity exceeds the treshold of a log facility (see below),
289 ## a policy violation will be logged to that facility.
291 ## Severity for verification failures.
293 # SeverityReadOnly=crit
294 # SeverityLogFiles=crit
295 # SeverityGrowingLogs=crit
296 # SeverityIgnoreNone=crit
297 # SeverityAttributes=crit
302 SeverityReadOnly=crit
303 SeverityLogFiles=crit
304 SeverityGrowingLogs=warn
305 SeverityIgnoreNone=crit
306 SeverityAttributes=crit
310 ## We have a file in IgnoreAll that might or might not be present.
311 ## Setting the severity to 'info' prevents messages about deleted/new file.
313 # SeverityIgnoreAll=crit
314 SeverityIgnoreAll=info
316 ## Files : file access problems
319 ## Dirs : directory access problems
322 ## Names : suspect (non-printable) characters in a pathname
333 ## Switch on/OFF log facilities and set their threshold severity
335 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
336 ## 'mark' is used for timestamps.
339 ## Use 'none' to SWITCH OFF a log facility
341 ## By default, everything equal to and above the threshold is logged.
342 ## The specifiers '*', '!', and '=' are interpreted as
343 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
344 ## at least on Linux). Examples:
346 ## MailSeverity=!warn
347 ## MailSeverity==crit
363 # SyslogSeverity=none
365 ## Remote server (yule)
367 # ExportSeverity=none
369 ## External script or program
371 # ExternalSeverity = none
373 ## Logging to a database
375 # DatabaseSeverity = none
388 #####################################################
392 #####################################################
396 ## --- Check the filesystem for SUID/SGID binaries
401 # SuidCheckActive = yes
403 ## Interval for check (seconds)
405 # SuidCheckInterval = 7200
407 ## Alternative: crontab-like schedule
409 # SuidCheckSchedule = NULL
411 ## Directory to exclude
413 # SuidCheckExclude = NULL
415 ## Limit on files per second (0 == no limit)
419 ## Alternative: yield after every file
421 # SuidCheckYield = no
423 ## Severity of a detection
425 # SeveritySuidCheck = crit
427 ## Quarantine SUID/SGID files if found
429 # SuidCheckQuarantineFiles = yes
431 ## Method for Quarantining files:
432 # 0 - Delete or truncate the file.
433 # 1 - Remove SUID/SGID permissions from file.
434 # 2 - Move SUID/SGID file to quarantine dir.
436 # SuidCheckQuarantineMethod = 0
438 ## For method 1 and 3, really delete instead of truncating
440 # SuidCheckQuarantineDelete = yes
444 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
449 KernelCheckActive = True
451 ## Check interval (seconds); btw., the check is VERY fast
453 # KernelCheckInterval = 300
457 # SeverityKernel = crit
462 ## --- Logging of login/logout events
467 LoginCheckActive = True
469 ## Severity for logins, multiple logins, logouts
472 # SeverityLoginMulti=warn
473 # SeverityLogout=info
475 ## Interval for login/logout checks
477 # LoginCheckInterval = 300
482 ## --- Logging to a relational database
487 # SetDBName = samhain
495 # SetDBUser = samhain
499 # SetDBPassword = (default: none)
503 # SetDBHost = localhost
505 ## Log the server timestamp for received messages
507 # SetDBServerTstamp = True
509 ## Use a persistent connection
511 # UsePersistent = True
515 ## Interface to call external scripts/programs for logging
518 ## The absolute path to the command
519 ## - Each invocation of this directive will end the definition of the
520 ## preceding command, and start the definition of
521 ## an additional, new command
523 # OpenCommand = (no default)
526 ## - log for log messages, srv for messages received by the server
530 ## The command (full command line) to execute
532 # SetCommandLine = (no default)
534 ## The environment (KEY=value; repeat for more)
536 # SetEnviron = TZ=(your timezone)
538 ## The TIGER192 checksum (optional)
540 # SetChecksum = (no default)
542 ## User who runs the command
544 # SetCredentials = (default: samhain process uid)
546 ## Words not allowed in message
548 # SetFilterNot = (none)
550 ## Words required (ALL of them)
552 # SetFilterAnd = (none)
554 ## Words required (at least one)
556 # SetFilterOr = (none)
558 ## Deadtime between consecutive calls
562 ## Add default environment (HOME, PATH, SHELL)
567 #####################################################
569 # Miscellaneous configuration options
571 #####################################################
575 ## whether to become a daemon process
576 ## (this is not honoured on database initialisation)
581 ## whether to test signature of files (init/check/none)
582 ## - if 'none', then we have to decide this on the command line -
584 # ChecksumTest = none
587 ## whether to drop linux capabilities that are not required
588 ## - will make a root process a 'mere mortal' in many respects
592 ## Set nice level (-19 to 19, see 'man nice'),
593 ## and I/O limit (kilobytes per second; 0 == off)
594 ## to reduce load on host.
599 ## The version string to embed in file signature databases
601 # VersionString = NULL
603 ## Interval between time stamp messages
608 ## Interval between file checks
610 # SetFileCheckTime = 600
611 SetFileCheckTime = 7200
613 ## Alternative: crontab-like schedule
615 # FileCheckScheduleOne = NULL
617 ## Alternative: crontab-like schedule(2)
619 # FileCheckScheduleTwo = NULL
621 ## Report only once on modified fles
622 ## Setting this to 'FALSE' will generate a report for any policy
623 ## violation (old and new ones) each time the daemon checks the file system.
625 # ReportOnlyOnce = True
627 ## Report in full detail
629 # ReportFullDetail = False
631 ## Report file timestamps in local time rather than GMT
635 ## The console device (can also be a file or named pipe)
636 ## - There are two console devices. Accordingly, you can use
637 ## this directive a second time to set the second console device.
638 ## If you have not defined the second device at compile time,
639 ## and you don't want to use it, then:
640 ## setting it to /dev/null is less effective than just leaving
641 ## it alone (setting to /dev/null will waste time by opening
642 ## /dev/null and writing to it)
644 # SetConsole = /dev/console
646 ## Activate the SysV IPC message queue
648 # MessageQueueActive = False
651 ## If false, skip reverse lookup when connecting to a host known
652 ## by name rather than IP address (i.e. trust the DNS)
654 # SetReverseLookup = True
658 # Only highest-level (alert) reports will be mailed immediately,
659 # others will be queued. Here you can define, when the queue will
660 # be flushed (Note: the queue is automatically flushed after
661 # completing a file check).
665 ## Maximum number of mails to queue
669 ## Recipient (max. 8)
671 SetMailAddress=samhain-reports@debian.org
673 ## Mail relay (IP address)
675 SetMailRelay = master.debian.org
677 ## Custom subject format
679 MailSubject = [Samhain at %H] %T: %S
681 ## --- end E-Mail ---
683 ## Path to the prelink executable
685 # SetPrelinkPath = /usr/sbin/prelink
687 ## TIGER192 checksum of the prelink executable
689 # SetPrelinkChecksum = (no default)
692 ## Path to the executable. If set, will be checksummed after startup
695 # SamhainPath = (no default)
698 ## The IP address of the log server
700 # SetLogServer = (default: compiled-in)
702 ## The IP address of the time server
704 # SetTimeServer = (default: compiled-in)
706 ## Trusted Users (comma delimited list of user names)
708 # TrustedUser = (no default; this adds to the compiled-in list)
710 ## Path to the file signature database
712 # SetDatabasePath = (default: compiled-in)
714 ## Path to the log file
716 # SetLogfilePath = (default: compiled-in)
718 ## Path to the PID file
720 # SetLockPath = (default: compiled-in)
723 ## The digest/checksum/hash algorithm
725 # DigestAlgo = TIGER192
728 ## Custom format for message header.
729 ## CAREFUL if you use XML logfile format.
738 # MessageHeader="%S %T "
741 ## Don't log path to config/database file on startup
745 ## The syslog facility, if you log to syslog
747 # SyslogFacility = LOG_AUTHPRIV
748 SyslogFacility=LOG_LOCAL2
750 ## The message authentication method
751 ## - If you change this, you *must* change it
752 ## on client *and* server
754 # MACType = HMAC-TIGER
757 ## everything below is ignored
760 #####################################################################
761 # This would be the proper syntax for parts that should only be
762 # included for certain hosts.
763 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
764 # result still has the proper syntax for the config file.
765 # You may have any number of @HOSTNAME/@end brackets.
766 # HOSTNAME should be the fully qualified 'official' name
767 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
768 # No IP number - except if samhain cannot determine the
769 # fully qualified hostname.
775 # These are two examples for conditional inclusion/exclusion
776 # of a machine based on the output from 'uname -srm'
785 #####################################################################