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
106 file=/etc/apt/apt.conf.d
107 file=/etc/apt/sources.list.d
110 file=/etc/logrotate.d
113 file=/usr/lib/nagios/plugins
118 ## for these files, changes in signature, timestamps, and size are ignored
125 #####################################################################
127 # This would be the proper syntax for parts that should only be
128 # included for certain hosts.
129 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
130 # result still has the proper syntax for the config file.
131 # You may have any number of @HOSTNAME/@end brackets.
132 # HOSTNAME should be the fully qualified 'official' name
133 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
134 # No IP number - except if samhain cannot determine the
135 # fully qualified hostname.
141 # These are two examples for conditional inclusion/exclusion
142 # of a machine based on the output from 'uname -srm'
152 #####################################################################
156 ## for these files, changes in signature, timestamps, and increase in size
160 file=/var/log/messages
162 file=/var/log/faillog
163 file=/var/log/auth.log
164 file=/var/log/daemon.log
165 file=/var/log/user.log
166 file=/var/log/kern.log
172 ## for these files, no modifications are reported
174 ## This file might be created or removed by the system sometimes.
176 file=/etc/resolv.conf.pcmcia.save
178 file=/etc/postfix/debian.db
179 file=/etc/postfix/debian
180 file=/etc/ssh/ssh_known_hosts
181 file=/etc/ssh/ssh-rsa-shadow
182 file=/var/lib/misc/ssh-rsa-shadow
183 file=/etc/.da-backup.trace
184 file=/etc/postfix/debianhosts
185 file=/etc/postfix/debianhosts.db
187 # We handle these files with puppet - please to not be bothering us
188 file=/etc/samhain/samhainrc
189 file=/etc/munin/munin-node.conf
190 file=/etc/exim4/blacklist
191 file=/etc/exim4/callout_users
192 file=/etc/exim4/exim4.conf
193 file=/etc/exim4/grey_users
194 file=/etc/exim4/helo-check
195 file=/etc/exim4/locals
196 file=/etc/exim4/localusers
197 file=/etc/exim4/rbllist
198 file=/etc/exim4/rcpthosts
199 file=/etc/exim4/rhsbllist
200 file=/etc/exim4/virtualdomains
201 file=/etc/exim4/whitelist
202 file=/etc/exim4/local-auto.conf
203 file=/etc/apt/preferences
204 file=/etc/apt/sources.list.d/volatile.list
205 file=/etc/apt/sources.list.d/security.list
206 file=/etc/apt/sources.list.d/debian.org.list
207 file=/etc/apt/sources.list.d/debian.restricted.list
208 file=/etc/apt/sources.list.d/debian.list
209 file=/etc/apt/sources.list.d/backports.org.list
210 file=/etc/apt/apt.conf.d/local-recommends
211 file=/etc/apt/apt.conf.d/local-pdiffs
212 file=/etc/puppet/puppet.conf
213 file=/etc/default/puppet
214 file=/etc/logrotate.d/exim4-paniclog
215 file=/etc/logrotate.d/exim4-base
217 file=/usr/sbin/dsa-update-apt-status
218 file=/usr/sbin/dsa-update-samhain-status
219 file=/etc/nagios/nrpe_dsa.cfg
220 file=/etc/cron.d/dsa-nagios-nrpe-config
221 file=/usr/lib/nagios/plugins/dsa-check-packages
222 file=/usr/lib/nagios/plugins/dsa-check-soas
223 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
224 file=/usr/lib/nagios/plugins/dsa-check-samhain
225 file=/usr/lib/nagios/plugins/dsa-check-statusfile
226 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
227 file=/usr/lib/nagios/plugins/dsa-check-config
228 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
229 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
230 file=/usr/lib/nagios/plugins/dsa-check-puppet
231 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
232 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
233 file=/usr/lib/nagios/plugins/dsa-check-dabackup
234 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
235 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
236 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
237 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
238 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
242 ## for these files, all modifications (even access time) are reported
243 ## - you may create some interesting-looking file (like /etc/safe_passwd),
244 ## just to watch whether someone will access it ...
249 ## Use for prelinked files or directories holding them
255 ## for these files, only access time is ignored
261 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
262 # so we go 3 levels deep
269 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
270 # so we go 3 levels deep there too
274 # Various directories / files that may include / be SUID/SGID binaries
277 file=/usr/lib/pt_chown
278 # X11, in Debian X7 this is now a symlink
280 #dir=/usr/X11R6/lib/X11/xmcd/bin
282 #file=/usr/lib/apache/suexec
283 #file=/usr/lib/apache/suexec.disabled
290 ## User0 and User1 are sections for files/dirs with user-definable checking
296 ## Here you can assign severities to policy violations.
297 ## If this severity exceeds the treshold of a log facility (see below),
298 ## a policy violation will be logged to that facility.
300 ## Severity for verification failures.
302 # SeverityReadOnly=crit
303 # SeverityLogFiles=crit
304 # SeverityGrowingLogs=crit
305 # SeverityIgnoreNone=crit
306 # SeverityAttributes=crit
311 SeverityReadOnly=crit
312 SeverityLogFiles=crit
313 SeverityGrowingLogs=warn
314 SeverityIgnoreNone=crit
315 SeverityAttributes=crit
319 ## We have a file in IgnoreAll that might or might not be present.
320 ## Setting the severity to 'info' prevents messages about deleted/new file.
322 # SeverityIgnoreAll=crit
323 SeverityIgnoreAll=info
325 ## Files : file access problems
328 ## Dirs : directory access problems
331 ## Names : suspect (non-printable) characters in a pathname
342 ## Switch on/OFF log facilities and set their threshold severity
344 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
345 ## 'mark' is used for timestamps.
348 ## Use 'none' to SWITCH OFF a log facility
350 ## By default, everything equal to and above the threshold is logged.
351 ## The specifiers '*', '!', and '=' are interpreted as
352 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
353 ## at least on Linux). Examples:
355 ## MailSeverity=!warn
356 ## MailSeverity==crit
372 # SyslogSeverity=none
374 ## Remote server (yule)
376 # ExportSeverity=none
378 ## External script or program
380 # ExternalSeverity = none
382 ## Logging to a database
384 # DatabaseSeverity = none
397 #####################################################
401 #####################################################
405 ## --- Check the filesystem for SUID/SGID binaries
410 # SuidCheckActive = yes
412 ## Interval for check (seconds)
414 # SuidCheckInterval = 7200
416 ## Alternative: crontab-like schedule
418 # SuidCheckSchedule = NULL
420 ## Directory to exclude
422 # SuidCheckExclude = NULL
424 ## Limit on files per second (0 == no limit)
428 ## Alternative: yield after every file
430 # SuidCheckYield = no
432 ## Severity of a detection
434 # SeveritySuidCheck = crit
436 ## Quarantine SUID/SGID files if found
438 # SuidCheckQuarantineFiles = yes
440 ## Method for Quarantining files:
441 # 0 - Delete or truncate the file.
442 # 1 - Remove SUID/SGID permissions from file.
443 # 2 - Move SUID/SGID file to quarantine dir.
445 # SuidCheckQuarantineMethod = 0
447 ## For method 1 and 3, really delete instead of truncating
449 # SuidCheckQuarantineDelete = yes
453 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
458 KernelCheckActive = True
460 ## Check interval (seconds); btw., the check is VERY fast
462 # KernelCheckInterval = 300
466 # SeverityKernel = crit
471 ## --- Logging of login/logout events
476 LoginCheckActive = True
478 ## Severity for logins, multiple logins, logouts
481 # SeverityLoginMulti=warn
482 # SeverityLogout=info
484 ## Interval for login/logout checks
486 # LoginCheckInterval = 300
491 ## --- Logging to a relational database
496 # SetDBName = samhain
504 # SetDBUser = samhain
508 # SetDBPassword = (default: none)
512 # SetDBHost = localhost
514 ## Log the server timestamp for received messages
516 # SetDBServerTstamp = True
518 ## Use a persistent connection
520 # UsePersistent = True
524 ## Interface to call external scripts/programs for logging
527 ## The absolute path to the command
528 ## - Each invocation of this directive will end the definition of the
529 ## preceding command, and start the definition of
530 ## an additional, new command
532 # OpenCommand = (no default)
535 ## - log for log messages, srv for messages received by the server
539 ## The command (full command line) to execute
541 # SetCommandLine = (no default)
543 ## The environment (KEY=value; repeat for more)
545 # SetEnviron = TZ=(your timezone)
547 ## The TIGER192 checksum (optional)
549 # SetChecksum = (no default)
551 ## User who runs the command
553 # SetCredentials = (default: samhain process uid)
555 ## Words not allowed in message
557 # SetFilterNot = (none)
559 ## Words required (ALL of them)
561 # SetFilterAnd = (none)
563 ## Words required (at least one)
565 # SetFilterOr = (none)
567 ## Deadtime between consecutive calls
571 ## Add default environment (HOME, PATH, SHELL)
576 #####################################################
578 # Miscellaneous configuration options
580 #####################################################
584 ## whether to become a daemon process
585 ## (this is not honoured on database initialisation)
590 ## whether to test signature of files (init/check/none)
591 ## - if 'none', then we have to decide this on the command line -
593 # ChecksumTest = none
596 ## whether to drop linux capabilities that are not required
597 ## - will make a root process a 'mere mortal' in many respects
601 ## Set nice level (-19 to 19, see 'man nice'),
602 ## and I/O limit (kilobytes per second; 0 == off)
603 ## to reduce load on host.
608 ## The version string to embed in file signature databases
610 # VersionString = NULL
612 ## Interval between time stamp messages
617 ## Interval between file checks
619 # SetFileCheckTime = 600
620 SetFileCheckTime = 7200
622 ## Alternative: crontab-like schedule
624 # FileCheckScheduleOne = NULL
626 ## Alternative: crontab-like schedule(2)
628 # FileCheckScheduleTwo = NULL
630 ## Report only once on modified fles
631 ## Setting this to 'FALSE' will generate a report for any policy
632 ## violation (old and new ones) each time the daemon checks the file system.
634 # ReportOnlyOnce = True
636 ## Report in full detail
638 # ReportFullDetail = False
640 ## Report file timestamps in local time rather than GMT
644 ## The console device (can also be a file or named pipe)
645 ## - There are two console devices. Accordingly, you can use
646 ## this directive a second time to set the second console device.
647 ## If you have not defined the second device at compile time,
648 ## and you don't want to use it, then:
649 ## setting it to /dev/null is less effective than just leaving
650 ## it alone (setting to /dev/null will waste time by opening
651 ## /dev/null and writing to it)
653 # SetConsole = /dev/console
655 ## Activate the SysV IPC message queue
657 # MessageQueueActive = False
660 ## If false, skip reverse lookup when connecting to a host known
661 ## by name rather than IP address (i.e. trust the DNS)
663 # SetReverseLookup = True
667 # Only highest-level (alert) reports will be mailed immediately,
668 # others will be queued. Here you can define, when the queue will
669 # be flushed (Note: the queue is automatically flushed after
670 # completing a file check).
674 ## Maximum number of mails to queue
678 ## Recipient (max. 8)
680 SetMailAddress=samhain-reports@debian.org
682 ## Mail relay (IP address)
684 SetMailRelay = master.debian.org
686 ## Custom subject format
688 MailSubject = [Samhain at %H] %T: %S
690 ## --- end E-Mail ---
692 ## Path to the prelink executable
694 # SetPrelinkPath = /usr/sbin/prelink
696 ## TIGER192 checksum of the prelink executable
698 # SetPrelinkChecksum = (no default)
701 ## Path to the executable. If set, will be checksummed after startup
704 # SamhainPath = (no default)
707 ## The IP address of the log server
709 # SetLogServer = (default: compiled-in)
711 ## The IP address of the time server
713 # SetTimeServer = (default: compiled-in)
715 ## Trusted Users (comma delimited list of user names)
717 # TrustedUser = (no default; this adds to the compiled-in list)
719 ## Path to the file signature database
721 # SetDatabasePath = (default: compiled-in)
723 ## Path to the log file
725 # SetLogfilePath = (default: compiled-in)
727 ## Path to the PID file
729 # SetLockPath = (default: compiled-in)
732 ## The digest/checksum/hash algorithm
734 # DigestAlgo = TIGER192
737 ## Custom format for message header.
738 ## CAREFUL if you use XML logfile format.
747 # MessageHeader="%S %T "
750 ## Don't log path to config/database file on startup
754 ## The syslog facility, if you log to syslog
756 # SyslogFacility = LOG_AUTHPRIV
757 SyslogFacility=LOG_LOCAL2
759 ## The message authentication method
760 ## - If you change this, you *must* change it
761 ## on client *and* server
763 # MACType = HMAC-TIGER
766 ## everything below is ignored
769 #####################################################################
770 # This would be the proper syntax for parts that should only be
771 # included for certain hosts.
772 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
773 # result still has the proper syntax for the config file.
774 # You may have any number of @HOSTNAME/@end brackets.
775 # HOSTNAME should be the fully qualified 'official' name
776 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
777 # No IP number - except if samhain cannot determine the
778 # fully qualified hostname.
784 # These are two examples for conditional inclusion/exclusion
785 # of a machine based on the output from 'uname -srm'
794 #####################################################################