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
95 # There are files in /etc that might change, thus changing the directory
96 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
100 file=/etc/network/run
103 # These are the directories for the files we handle with puppet
108 file=/etc/apt/apt.conf.d
109 file=/etc/apt/sources.list.d
112 file=/etc/logrotate.d
114 file=/etc/nagios/nrpe.d
116 file=/usr/lib/nagios/plugins
121 ## for these files, changes in signature, timestamps, and size are ignored
128 #####################################################################
130 # This would be the proper syntax for parts that should only be
131 # included for certain hosts.
132 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
133 # result still has the proper syntax for the config file.
134 # You may have any number of @HOSTNAME/@end brackets.
135 # HOSTNAME should be the fully qualified 'official' name
136 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
137 # No IP number - except if samhain cannot determine the
138 # fully qualified hostname.
144 # These are two examples for conditional inclusion/exclusion
145 # of a machine based on the output from 'uname -srm'
155 #####################################################################
159 ## for these files, changes in signature, timestamps, and increase in size
163 file=/var/log/messages
165 file=/var/log/faillog
166 file=/var/log/auth.log
167 file=/var/log/daemon.log
168 file=/var/log/user.log
169 file=/var/log/kern.log
175 ## for these files, no modifications are reported
177 ## This file might be created or removed by the system sometimes.
179 file=/etc/resolv.conf.pcmcia.save
181 file=/etc/postfix/debian.db
182 file=/etc/postfix/debian
183 file=/etc/ssh/ssh_known_hosts
184 file=/etc/ssh/ssh-rsa-shadow
185 file=/var/lib/misc/ssh-rsa-shadow
186 file=/etc/.da-backup.trace
187 file=/etc/postfix/debianhosts
188 file=/etc/postfix/debianhosts.db
190 # We handle these files with puppet - please to not be bothering us
191 file=/etc/samhain/samhainrc
192 file=/etc/munin/munin-node.conf
193 file=/etc/exim4/blacklist
194 file=/etc/exim4/callout_users
195 file=/etc/exim4/exim4.conf
196 file=/etc/exim4/grey_users
197 file=/etc/exim4/helo-check
198 file=/etc/exim4/locals
199 file=/etc/exim4/localusers
200 file=/etc/exim4/rbllist
201 file=/etc/exim4/rcpthosts
202 file=/etc/exim4/rhsbllist
203 file=/etc/exim4/virtualdomains
204 file=/etc/exim4/whitelist
205 file=/etc/exim4/local-auto.conf
206 file=/etc/apt/preferences
207 file=/etc/apt/sources.list.d/volatile.list
208 file=/etc/apt/sources.list.d/security.list
209 file=/etc/apt/sources.list.d/debian.org.list
210 file=/etc/apt/sources.list.d/debian.restricted.list
211 file=/etc/apt/sources.list.d/debian.list
212 file=/etc/apt/sources.list.d/backports.org.list
213 file=/etc/apt/apt.conf.d/local-recommends
214 file=/etc/apt/apt.conf.d/local-pdiffs
215 file=/etc/puppet/puppet.conf
216 file=/etc/default/puppet
217 file=/etc/logrotate.d/exim4-paniclog
218 file=/etc/logrotate.d/exim4-base
220 file=/usr/sbin/dsa-update-apt-status
221 file=/usr/sbin/dsa-update-samhain-status
222 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
223 file=/etc/nagios/nrpe.d/debianorg.cfg
224 file=/etc/nagios/obsolete-packages-ignore
225 file=/usr/lib/nagios/plugins/dsa-check-packages
226 file=/usr/lib/nagios/plugins/dsa-check-soas
227 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
228 file=/usr/lib/nagios/plugins/dsa-check-samhain
229 file=/usr/lib/nagios/plugins/dsa-check-statusfile
230 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
231 file=/usr/lib/nagios/plugins/dsa-check-config
232 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
233 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
234 file=/usr/lib/nagios/plugins/dsa-check-puppet
235 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
236 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
237 file=/usr/lib/nagios/plugins/dsa-check-dabackup
238 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
239 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
240 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
241 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
242 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
246 ## for these files, all modifications (even access time) are reported
247 ## - you may create some interesting-looking file (like /etc/safe_passwd),
248 ## just to watch whether someone will access it ...
253 ## Use for prelinked files or directories holding them
259 ## for these files, only access time is ignored
265 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
266 # so we go 3 levels deep
273 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
274 # so we go 3 levels deep there too
278 # Various directories / files that may include / be SUID/SGID binaries
281 file=/usr/lib/pt_chown
282 # X11, in Debian X7 this is now a symlink
284 #dir=/usr/X11R6/lib/X11/xmcd/bin
286 #file=/usr/lib/apache/suexec
287 #file=/usr/lib/apache/suexec.disabled
294 ## User0 and User1 are sections for files/dirs with user-definable checking
300 ## Here you can assign severities to policy violations.
301 ## If this severity exceeds the treshold of a log facility (see below),
302 ## a policy violation will be logged to that facility.
304 ## Severity for verification failures.
306 # SeverityReadOnly=crit
307 # SeverityLogFiles=crit
308 # SeverityGrowingLogs=crit
309 # SeverityIgnoreNone=crit
310 # SeverityAttributes=crit
315 SeverityReadOnly=crit
316 SeverityLogFiles=crit
317 SeverityGrowingLogs=warn
318 SeverityIgnoreNone=crit
319 SeverityAttributes=crit
323 ## We have a file in IgnoreAll that might or might not be present.
324 ## Setting the severity to 'info' prevents messages about deleted/new file.
326 # SeverityIgnoreAll=crit
327 SeverityIgnoreAll=info
329 ## Files : file access problems
332 ## Dirs : directory access problems
335 ## Names : suspect (non-printable) characters in a pathname
346 ## Switch on/OFF log facilities and set their threshold severity
348 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
349 ## 'mark' is used for timestamps.
352 ## Use 'none' to SWITCH OFF a log facility
354 ## By default, everything equal to and above the threshold is logged.
355 ## The specifiers '*', '!', and '=' are interpreted as
356 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
357 ## at least on Linux). Examples:
359 ## MailSeverity=!warn
360 ## MailSeverity==crit
376 # SyslogSeverity=none
378 ## Remote server (yule)
380 # ExportSeverity=none
382 ## External script or program
384 # ExternalSeverity = none
386 ## Logging to a database
388 # DatabaseSeverity = none
401 #####################################################
405 #####################################################
409 ## --- Check the filesystem for SUID/SGID binaries
414 # SuidCheckActive = yes
416 ## Interval for check (seconds)
418 # SuidCheckInterval = 7200
420 ## Alternative: crontab-like schedule
422 # SuidCheckSchedule = NULL
424 ## Directory to exclude
426 # SuidCheckExclude = NULL
428 ## Limit on files per second (0 == no limit)
432 ## Alternative: yield after every file
434 # SuidCheckYield = no
436 ## Severity of a detection
438 # SeveritySuidCheck = crit
440 ## Quarantine SUID/SGID files if found
442 # SuidCheckQuarantineFiles = yes
444 ## Method for Quarantining files:
445 # 0 - Delete or truncate the file.
446 # 1 - Remove SUID/SGID permissions from file.
447 # 2 - Move SUID/SGID file to quarantine dir.
449 # SuidCheckQuarantineMethod = 0
451 ## For method 1 and 3, really delete instead of truncating
453 # SuidCheckQuarantineDelete = yes
457 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
462 KernelCheckActive = True
464 ## Check interval (seconds); btw., the check is VERY fast
466 # KernelCheckInterval = 300
470 # SeverityKernel = crit
475 ## --- Logging of login/logout events
480 LoginCheckActive = True
482 ## Severity for logins, multiple logins, logouts
485 # SeverityLoginMulti=warn
486 # SeverityLogout=info
488 ## Interval for login/logout checks
490 # LoginCheckInterval = 300
495 ## --- Logging to a relational database
500 # SetDBName = samhain
508 # SetDBUser = samhain
512 # SetDBPassword = (default: none)
516 # SetDBHost = localhost
518 ## Log the server timestamp for received messages
520 # SetDBServerTstamp = True
522 ## Use a persistent connection
524 # UsePersistent = True
528 ## Interface to call external scripts/programs for logging
531 ## The absolute path to the command
532 ## - Each invocation of this directive will end the definition of the
533 ## preceding command, and start the definition of
534 ## an additional, new command
536 # OpenCommand = (no default)
539 ## - log for log messages, srv for messages received by the server
543 ## The command (full command line) to execute
545 # SetCommandLine = (no default)
547 ## The environment (KEY=value; repeat for more)
549 # SetEnviron = TZ=(your timezone)
551 ## The TIGER192 checksum (optional)
553 # SetChecksum = (no default)
555 ## User who runs the command
557 # SetCredentials = (default: samhain process uid)
559 ## Words not allowed in message
561 # SetFilterNot = (none)
563 ## Words required (ALL of them)
565 # SetFilterAnd = (none)
567 ## Words required (at least one)
569 # SetFilterOr = (none)
571 ## Deadtime between consecutive calls
575 ## Add default environment (HOME, PATH, SHELL)
580 #####################################################
582 # Miscellaneous configuration options
584 #####################################################
588 ## whether to become a daemon process
589 ## (this is not honoured on database initialisation)
594 ## whether to test signature of files (init/check/none)
595 ## - if 'none', then we have to decide this on the command line -
597 # ChecksumTest = none
600 ## whether to drop linux capabilities that are not required
601 ## - will make a root process a 'mere mortal' in many respects
605 ## Set nice level (-19 to 19, see 'man nice'),
606 ## and I/O limit (kilobytes per second; 0 == off)
607 ## to reduce load on host.
612 ## The version string to embed in file signature databases
614 # VersionString = NULL
616 ## Interval between time stamp messages
621 ## Interval between file checks
623 # SetFileCheckTime = 600
624 SetFileCheckTime = 7200
626 ## Alternative: crontab-like schedule
628 # FileCheckScheduleOne = NULL
630 ## Alternative: crontab-like schedule(2)
632 # FileCheckScheduleTwo = NULL
634 ## Report only once on modified fles
635 ## Setting this to 'FALSE' will generate a report for any policy
636 ## violation (old and new ones) each time the daemon checks the file system.
638 # ReportOnlyOnce = True
640 ## Report in full detail
642 # ReportFullDetail = False
644 ## Report file timestamps in local time rather than GMT
648 ## The console device (can also be a file or named pipe)
649 ## - There are two console devices. Accordingly, you can use
650 ## this directive a second time to set the second console device.
651 ## If you have not defined the second device at compile time,
652 ## and you don't want to use it, then:
653 ## setting it to /dev/null is less effective than just leaving
654 ## it alone (setting to /dev/null will waste time by opening
655 ## /dev/null and writing to it)
657 # SetConsole = /dev/console
659 ## Activate the SysV IPC message queue
661 # MessageQueueActive = False
664 ## If false, skip reverse lookup when connecting to a host known
665 ## by name rather than IP address (i.e. trust the DNS)
667 # SetReverseLookup = True
671 # Only highest-level (alert) reports will be mailed immediately,
672 # others will be queued. Here you can define, when the queue will
673 # be flushed (Note: the queue is automatically flushed after
674 # completing a file check).
678 ## Maximum number of mails to queue
682 ## Recipient (max. 8)
684 SetMailAddress=samhain-reports@debian.org
686 ## Mail relay (IP address)
688 SetMailRelay = master.debian.org
690 ## Custom subject format
692 MailSubject = [Samhain at %H] %T: %S
694 ## --- end E-Mail ---
696 ## Path to the prelink executable
698 # SetPrelinkPath = /usr/sbin/prelink
700 ## TIGER192 checksum of the prelink executable
702 # SetPrelinkChecksum = (no default)
705 ## Path to the executable. If set, will be checksummed after startup
708 # SamhainPath = (no default)
711 ## The IP address of the log server
713 # SetLogServer = (default: compiled-in)
715 ## The IP address of the time server
717 # SetTimeServer = (default: compiled-in)
719 ## Trusted Users (comma delimited list of user names)
721 # TrustedUser = (no default; this adds to the compiled-in list)
723 ## Path to the file signature database
725 # SetDatabasePath = (default: compiled-in)
727 ## Path to the log file
729 # SetLogfilePath = (default: compiled-in)
731 ## Path to the PID file
733 # SetLockPath = (default: compiled-in)
736 ## The digest/checksum/hash algorithm
738 # DigestAlgo = TIGER192
741 ## Custom format for message header.
742 ## CAREFUL if you use XML logfile format.
751 # MessageHeader="%S %T "
754 ## Don't log path to config/database file on startup
758 ## The syslog facility, if you log to syslog
760 # SyslogFacility = LOG_AUTHPRIV
761 SyslogFacility=LOG_LOCAL2
763 ## The message authentication method
764 ## - If you change this, you *must* change it
765 ## on client *and* server
767 # MACType = HMAC-TIGER
770 ## everything below is ignored
773 #####################################################################
774 # This would be the proper syntax for parts that should only be
775 # included for certain hosts.
776 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
777 # result still has the proper syntax for the config file.
778 # You may have any number of @HOSTNAME/@end brackets.
779 # HOSTNAME should be the fully qualified 'official' name
780 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
781 # No IP number - except if samhain cannot determine the
782 # fully qualified hostname.
788 # These are two examples for conditional inclusion/exclusion
789 # of a machine based on the output from 'uname -srm'
798 #####################################################################