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
117 file=/etc/nagios3/puppetconf.d
119 file=/usr/lib/nagios/plugins
124 ## for these files, changes in signature, timestamps, and size are ignored
131 #####################################################################
133 # This would be the proper syntax for parts that should only be
134 # included for certain hosts.
135 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
136 # result still has the proper syntax for the config file.
137 # You may have any number of @HOSTNAME/@end brackets.
138 # HOSTNAME should be the fully qualified 'official' name
139 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
140 # No IP number - except if samhain cannot determine the
141 # fully qualified hostname.
147 # These are two examples for conditional inclusion/exclusion
148 # of a machine based on the output from 'uname -srm'
158 #####################################################################
162 ## for these files, changes in signature, timestamps, and increase in size
166 file=/var/log/messages
168 file=/var/log/faillog
169 file=/var/log/auth.log
170 file=/var/log/daemon.log
171 file=/var/log/user.log
172 file=/var/log/kern.log
178 ## for these files, no modifications are reported
180 ## This file might be created or removed by the system sometimes.
182 file=/etc/resolv.conf.pcmcia.save
184 file=/etc/postfix/debian.db
185 file=/etc/postfix/debian
186 file=/etc/ssh/ssh_known_hosts
187 file=/etc/ssh/ssh-rsa-shadow
188 file=/var/lib/misc/ssh-rsa-shadow
189 file=/etc/.da-backup.trace
190 file=/etc/postfix/debianhosts
191 file=/etc/postfix/debianhosts.db
193 # We handle these files with puppet - please to not be bothering us
194 file=/etc/samhain/samhainrc
195 file=/etc/munin/munin-node.conf
196 file=/etc/exim4/blacklist
197 file=/etc/exim4/callout_users
198 file=/etc/exim4/exim4.conf
199 file=/etc/exim4/grey_users
200 file=/etc/exim4/helo-check
201 file=/etc/exim4/locals
202 file=/etc/exim4/localusers
203 file=/etc/exim4/rbllist
204 file=/etc/exim4/rcpthosts
205 file=/etc/exim4/rhsbllist
206 file=/etc/exim4/virtualdomains
207 file=/etc/exim4/whitelist
208 file=/etc/exim4/local-auto.conf
209 file=/etc/exim4/ssl/ca.crt
210 file=/etc/exim4/ssl/ca.crl
211 file=/etc/exim4/ssl/thishost.crt
212 file=/etc/exim4/ssl/thishost.key
213 file=/etc/apt/preferences
214 file=/etc/apt/sources.list.d/volatile.list
215 file=/etc/apt/sources.list.d/security.list
216 file=/etc/apt/sources.list.d/debian.org.list
217 file=/etc/apt/sources.list.d/debian.restricted.list
218 file=/etc/apt/sources.list.d/debian.list
219 file=/etc/apt/sources.list.d/backports.org.list
220 file=/etc/apt/apt.conf.d/local-recommends
221 file=/etc/apt/apt.conf.d/local-pdiffs
222 file=/etc/puppet/puppet.conf
223 file=/etc/default/puppet
224 file=/etc/logrotate.d/exim4-paniclog
225 file=/etc/logrotate.d/exim4-base
226 file=/usr/sbin/dsa-update-apt-status
227 file=/usr/sbin/dsa-update-samhain-status
228 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
229 file=/etc/nagios/nrpe.d/debianorg.cfg
230 file=/etc/nagios/obsolete-packages-ignore
231 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
232 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
233 file=/etc/nagios3/puppetconf.d/auto-services.cfg
234 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
235 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
236 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
237 file=/usr/lib/nagios/plugins/dsa-check-packages
238 file=/usr/lib/nagios/plugins/dsa-check-soas
239 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
240 file=/usr/lib/nagios/plugins/dsa-check-samhain
241 file=/usr/lib/nagios/plugins/dsa-check-statusfile
242 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
243 file=/usr/lib/nagios/plugins/dsa-check-config
244 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
245 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
246 file=/usr/lib/nagios/plugins/dsa-check-puppet
247 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
248 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
249 file=/usr/lib/nagios/plugins/dsa-check-dabackup
250 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
251 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
252 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
253 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
254 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
258 ## for these files, all modifications (even access time) are reported
259 ## - you may create some interesting-looking file (like /etc/safe_passwd),
260 ## just to watch whether someone will access it ...
265 ## Use for prelinked files or directories holding them
271 ## for these files, only access time is ignored
277 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
278 # so we go 3 levels deep
285 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
286 # so we go 3 levels deep there too
290 # Various directories / files that may include / be SUID/SGID binaries
293 file=/usr/lib/pt_chown
294 # X11, in Debian X7 this is now a symlink
296 #dir=/usr/X11R6/lib/X11/xmcd/bin
298 #file=/usr/lib/apache/suexec
299 #file=/usr/lib/apache/suexec.disabled
306 ## User0 and User1 are sections for files/dirs with user-definable checking
312 ## Here you can assign severities to policy violations.
313 ## If this severity exceeds the treshold of a log facility (see below),
314 ## a policy violation will be logged to that facility.
316 ## Severity for verification failures.
318 # SeverityReadOnly=crit
319 # SeverityLogFiles=crit
320 # SeverityGrowingLogs=crit
321 # SeverityIgnoreNone=crit
322 # SeverityAttributes=crit
327 SeverityReadOnly=crit
328 SeverityLogFiles=crit
329 SeverityGrowingLogs=warn
330 SeverityIgnoreNone=crit
331 SeverityAttributes=crit
335 ## We have a file in IgnoreAll that might or might not be present.
336 ## Setting the severity to 'info' prevents messages about deleted/new file.
338 # SeverityIgnoreAll=crit
339 SeverityIgnoreAll=info
341 ## Files : file access problems
344 ## Dirs : directory access problems
347 ## Names : suspect (non-printable) characters in a pathname
358 ## Switch on/OFF log facilities and set their threshold severity
360 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
361 ## 'mark' is used for timestamps.
364 ## Use 'none' to SWITCH OFF a log facility
366 ## By default, everything equal to and above the threshold is logged.
367 ## The specifiers '*', '!', and '=' are interpreted as
368 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
369 ## at least on Linux). Examples:
371 ## MailSeverity=!warn
372 ## MailSeverity==crit
388 # SyslogSeverity=none
390 ## Remote server (yule)
392 # ExportSeverity=none
394 ## External script or program
396 # ExternalSeverity = none
398 ## Logging to a database
400 # DatabaseSeverity = none
413 #####################################################
417 #####################################################
421 ## --- Check the filesystem for SUID/SGID binaries
426 # SuidCheckActive = yes
428 ## Interval for check (seconds)
430 # SuidCheckInterval = 7200
432 ## Alternative: crontab-like schedule
434 # SuidCheckSchedule = NULL
436 ## Directory to exclude
438 # SuidCheckExclude = NULL
440 ## Limit on files per second (0 == no limit)
444 ## Alternative: yield after every file
446 # SuidCheckYield = no
448 ## Severity of a detection
450 # SeveritySuidCheck = crit
452 ## Quarantine SUID/SGID files if found
454 # SuidCheckQuarantineFiles = yes
456 ## Method for Quarantining files:
457 # 0 - Delete or truncate the file.
458 # 1 - Remove SUID/SGID permissions from file.
459 # 2 - Move SUID/SGID file to quarantine dir.
461 # SuidCheckQuarantineMethod = 0
463 ## For method 1 and 3, really delete instead of truncating
465 # SuidCheckQuarantineDelete = yes
469 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
474 KernelCheckActive = True
476 ## Check interval (seconds); btw., the check is VERY fast
478 # KernelCheckInterval = 300
482 # SeverityKernel = crit
487 ## --- Logging of login/logout events
492 LoginCheckActive = True
494 ## Severity for logins, multiple logins, logouts
497 # SeverityLoginMulti=warn
498 # SeverityLogout=info
500 ## Interval for login/logout checks
502 # LoginCheckInterval = 300
507 ## --- Logging to a relational database
512 # SetDBName = samhain
520 # SetDBUser = samhain
524 # SetDBPassword = (default: none)
528 # SetDBHost = localhost
530 ## Log the server timestamp for received messages
532 # SetDBServerTstamp = True
534 ## Use a persistent connection
536 # UsePersistent = True
540 ## Interface to call external scripts/programs for logging
543 ## The absolute path to the command
544 ## - Each invocation of this directive will end the definition of the
545 ## preceding command, and start the definition of
546 ## an additional, new command
548 # OpenCommand = (no default)
551 ## - log for log messages, srv for messages received by the server
555 ## The command (full command line) to execute
557 # SetCommandLine = (no default)
559 ## The environment (KEY=value; repeat for more)
561 # SetEnviron = TZ=(your timezone)
563 ## The TIGER192 checksum (optional)
565 # SetChecksum = (no default)
567 ## User who runs the command
569 # SetCredentials = (default: samhain process uid)
571 ## Words not allowed in message
573 # SetFilterNot = (none)
575 ## Words required (ALL of them)
577 # SetFilterAnd = (none)
579 ## Words required (at least one)
581 # SetFilterOr = (none)
583 ## Deadtime between consecutive calls
587 ## Add default environment (HOME, PATH, SHELL)
592 #####################################################
594 # Miscellaneous configuration options
596 #####################################################
600 ## whether to become a daemon process
601 ## (this is not honoured on database initialisation)
606 ## whether to test signature of files (init/check/none)
607 ## - if 'none', then we have to decide this on the command line -
609 # ChecksumTest = none
612 ## whether to drop linux capabilities that are not required
613 ## - will make a root process a 'mere mortal' in many respects
617 ## Set nice level (-19 to 19, see 'man nice'),
618 ## and I/O limit (kilobytes per second; 0 == off)
619 ## to reduce load on host.
624 ## The version string to embed in file signature databases
626 # VersionString = NULL
628 ## Interval between time stamp messages
633 ## Interval between file checks
635 # SetFileCheckTime = 600
636 SetFileCheckTime = 7200
638 ## Alternative: crontab-like schedule
640 # FileCheckScheduleOne = NULL
642 ## Alternative: crontab-like schedule(2)
644 # FileCheckScheduleTwo = NULL
646 ## Report only once on modified fles
647 ## Setting this to 'FALSE' will generate a report for any policy
648 ## violation (old and new ones) each time the daemon checks the file system.
650 # ReportOnlyOnce = True
652 ## Report in full detail
654 # ReportFullDetail = False
656 ## Report file timestamps in local time rather than GMT
660 ## The console device (can also be a file or named pipe)
661 ## - There are two console devices. Accordingly, you can use
662 ## this directive a second time to set the second console device.
663 ## If you have not defined the second device at compile time,
664 ## and you don't want to use it, then:
665 ## setting it to /dev/null is less effective than just leaving
666 ## it alone (setting to /dev/null will waste time by opening
667 ## /dev/null and writing to it)
669 # SetConsole = /dev/console
671 ## Activate the SysV IPC message queue
673 # MessageQueueActive = False
676 ## If false, skip reverse lookup when connecting to a host known
677 ## by name rather than IP address (i.e. trust the DNS)
679 # SetReverseLookup = True
683 # Only highest-level (alert) reports will be mailed immediately,
684 # others will be queued. Here you can define, when the queue will
685 # be flushed (Note: the queue is automatically flushed after
686 # completing a file check).
690 ## Maximum number of mails to queue
694 ## Recipient (max. 8)
696 SetMailAddress=samhain-reports@debian.org
698 ## Mail relay (IP address)
700 SetMailRelay = master.debian.org
702 ## Custom subject format
704 MailSubject = [Samhain at %H] %T: %S
706 ## --- end E-Mail ---
708 ## Path to the prelink executable
710 # SetPrelinkPath = /usr/sbin/prelink
712 ## TIGER192 checksum of the prelink executable
714 # SetPrelinkChecksum = (no default)
717 ## Path to the executable. If set, will be checksummed after startup
720 # SamhainPath = (no default)
723 ## The IP address of the log server
725 # SetLogServer = (default: compiled-in)
727 ## The IP address of the time server
729 # SetTimeServer = (default: compiled-in)
731 ## Trusted Users (comma delimited list of user names)
733 # TrustedUser = (no default; this adds to the compiled-in list)
735 ## Path to the file signature database
737 # SetDatabasePath = (default: compiled-in)
739 ## Path to the log file
741 # SetLogfilePath = (default: compiled-in)
743 ## Path to the PID file
745 # SetLockPath = (default: compiled-in)
748 ## The digest/checksum/hash algorithm
750 # DigestAlgo = TIGER192
753 ## Custom format for message header.
754 ## CAREFUL if you use XML logfile format.
763 # MessageHeader="%S %T "
766 ## Don't log path to config/database file on startup
770 ## The syslog facility, if you log to syslog
772 # SyslogFacility = LOG_AUTHPRIV
773 SyslogFacility=LOG_LOCAL2
775 ## The message authentication method
776 ## - If you change this, you *must* change it
777 ## on client *and* server
779 # MACType = HMAC-TIGER
782 ## everything below is ignored
785 #####################################################################
786 # This would be the proper syntax for parts that should only be
787 # included for certain hosts.
788 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
789 # result still has the proper syntax for the config file.
790 # You may have any number of @HOSTNAME/@end brackets.
791 # HOSTNAME should be the fully qualified 'official' name
792 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
793 # No IP number - except if samhain cannot determine the
794 # fully qualified hostname.
800 # These are two examples for conditional inclusion/exclusion
801 # of a machine based on the output from 'uname -srm'
810 #####################################################################