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
115 file=/usr/lib/nagios/plugins
120 ## for these files, changes in signature, timestamps, and size are ignored
127 #####################################################################
129 # This would be the proper syntax for parts that should only be
130 # included for certain hosts.
131 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
132 # result still has the proper syntax for the config file.
133 # You may have any number of @HOSTNAME/@end brackets.
134 # HOSTNAME should be the fully qualified 'official' name
135 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
136 # No IP number - except if samhain cannot determine the
137 # fully qualified hostname.
143 # These are two examples for conditional inclusion/exclusion
144 # of a machine based on the output from 'uname -srm'
154 #####################################################################
158 ## for these files, changes in signature, timestamps, and increase in size
162 file=/var/log/messages
164 file=/var/log/faillog
165 file=/var/log/auth.log
166 file=/var/log/daemon.log
167 file=/var/log/user.log
168 file=/var/log/kern.log
174 ## for these files, no modifications are reported
176 ## This file might be created or removed by the system sometimes.
178 file=/etc/resolv.conf.pcmcia.save
180 file=/etc/postfix/debian.db
181 file=/etc/postfix/debian
182 file=/etc/ssh/ssh_known_hosts
183 file=/etc/ssh/ssh-rsa-shadow
184 file=/var/lib/misc/ssh-rsa-shadow
185 file=/etc/.da-backup.trace
186 file=/etc/postfix/debianhosts
187 file=/etc/postfix/debianhosts.db
189 # We handle these files with puppet - please to not be bothering us
190 file=/etc/samhain/samhainrc
191 file=/etc/munin/munin-node.conf
192 file=/etc/exim4/blacklist
193 file=/etc/exim4/callout_users
194 file=/etc/exim4/exim4.conf
195 file=/etc/exim4/grey_users
196 file=/etc/exim4/helo-check
197 file=/etc/exim4/locals
198 file=/etc/exim4/localusers
199 file=/etc/exim4/rbllist
200 file=/etc/exim4/rcpthosts
201 file=/etc/exim4/rhsbllist
202 file=/etc/exim4/virtualdomains
203 file=/etc/exim4/whitelist
204 file=/etc/exim4/local-auto.conf
205 file=/etc/apt/preferences
206 file=/etc/apt/sources.list.d/volatile.list
207 file=/etc/apt/sources.list.d/security.list
208 file=/etc/apt/sources.list.d/debian.org.list
209 file=/etc/apt/sources.list.d/debian.restricted.list
210 file=/etc/apt/sources.list.d/debian.list
211 file=/etc/apt/sources.list.d/backports.org.list
212 file=/etc/apt/apt.conf.d/local-recommends
213 file=/etc/apt/apt.conf.d/local-pdiffs
214 file=/etc/puppet/puppet.conf
215 file=/etc/default/puppet
216 file=/etc/logrotate.d/exim4-paniclog
217 file=/etc/logrotate.d/exim4-base
218 file=/usr/sbin/dsa-update-apt-status
219 file=/usr/sbin/dsa-update-samhain-status
220 file=/etc/nagios/nrpe_dsa.cfg
221 file=/etc/cron.d/dsa-nagios-nrpe-config
222 file=/usr/lib/nagios/plugins/dsa-check-packages
223 file=/usr/lib/nagios/plugins/dsa-check-soas
224 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
225 file=/usr/lib/nagios/plugins/dsa-check-samhain
226 file=/usr/lib/nagios/plugins/dsa-check-statusfile
227 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
228 file=/usr/lib/nagios/plugins/dsa-check-config
229 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
230 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
231 file=/usr/lib/nagios/plugins/dsa-check-puppet
232 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
233 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
234 file=/usr/lib/nagios/plugins/dsa-check-dabackup
235 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
236 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
237 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
238 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
239 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
243 ## for these files, all modifications (even access time) are reported
244 ## - you may create some interesting-looking file (like /etc/safe_passwd),
245 ## just to watch whether someone will access it ...
250 ## Use for prelinked files or directories holding them
256 ## for these files, only access time is ignored
262 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
263 # so we go 3 levels deep
270 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
271 # so we go 3 levels deep there too
275 # Various directories / files that may include / be SUID/SGID binaries
278 file=/usr/lib/pt_chown
279 # X11, in Debian X7 this is now a symlink
281 #dir=/usr/X11R6/lib/X11/xmcd/bin
283 #file=/usr/lib/apache/suexec
284 #file=/usr/lib/apache/suexec.disabled
291 ## User0 and User1 are sections for files/dirs with user-definable checking
297 ## Here you can assign severities to policy violations.
298 ## If this severity exceeds the treshold of a log facility (see below),
299 ## a policy violation will be logged to that facility.
301 ## Severity for verification failures.
303 # SeverityReadOnly=crit
304 # SeverityLogFiles=crit
305 # SeverityGrowingLogs=crit
306 # SeverityIgnoreNone=crit
307 # SeverityAttributes=crit
312 SeverityReadOnly=crit
313 SeverityLogFiles=crit
314 SeverityGrowingLogs=warn
315 SeverityIgnoreNone=crit
316 SeverityAttributes=crit
320 ## We have a file in IgnoreAll that might or might not be present.
321 ## Setting the severity to 'info' prevents messages about deleted/new file.
323 # SeverityIgnoreAll=crit
324 SeverityIgnoreAll=info
326 ## Files : file access problems
329 ## Dirs : directory access problems
332 ## Names : suspect (non-printable) characters in a pathname
343 ## Switch on/OFF log facilities and set their threshold severity
345 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
346 ## 'mark' is used for timestamps.
349 ## Use 'none' to SWITCH OFF a log facility
351 ## By default, everything equal to and above the threshold is logged.
352 ## The specifiers '*', '!', and '=' are interpreted as
353 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
354 ## at least on Linux). Examples:
356 ## MailSeverity=!warn
357 ## MailSeverity==crit
373 # SyslogSeverity=none
375 ## Remote server (yule)
377 # ExportSeverity=none
379 ## External script or program
381 # ExternalSeverity = none
383 ## Logging to a database
385 # DatabaseSeverity = none
398 #####################################################
402 #####################################################
406 ## --- Check the filesystem for SUID/SGID binaries
411 # SuidCheckActive = yes
413 ## Interval for check (seconds)
415 # SuidCheckInterval = 7200
417 ## Alternative: crontab-like schedule
419 # SuidCheckSchedule = NULL
421 ## Directory to exclude
423 # SuidCheckExclude = NULL
425 ## Limit on files per second (0 == no limit)
429 ## Alternative: yield after every file
431 # SuidCheckYield = no
433 ## Severity of a detection
435 # SeveritySuidCheck = crit
437 ## Quarantine SUID/SGID files if found
439 # SuidCheckQuarantineFiles = yes
441 ## Method for Quarantining files:
442 # 0 - Delete or truncate the file.
443 # 1 - Remove SUID/SGID permissions from file.
444 # 2 - Move SUID/SGID file to quarantine dir.
446 # SuidCheckQuarantineMethod = 0
448 ## For method 1 and 3, really delete instead of truncating
450 # SuidCheckQuarantineDelete = yes
454 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
459 KernelCheckActive = True
461 ## Check interval (seconds); btw., the check is VERY fast
463 # KernelCheckInterval = 300
467 # SeverityKernel = crit
472 ## --- Logging of login/logout events
477 LoginCheckActive = True
479 ## Severity for logins, multiple logins, logouts
482 # SeverityLoginMulti=warn
483 # SeverityLogout=info
485 ## Interval for login/logout checks
487 # LoginCheckInterval = 300
492 ## --- Logging to a relational database
497 # SetDBName = samhain
505 # SetDBUser = samhain
509 # SetDBPassword = (default: none)
513 # SetDBHost = localhost
515 ## Log the server timestamp for received messages
517 # SetDBServerTstamp = True
519 ## Use a persistent connection
521 # UsePersistent = True
525 ## Interface to call external scripts/programs for logging
528 ## The absolute path to the command
529 ## - Each invocation of this directive will end the definition of the
530 ## preceding command, and start the definition of
531 ## an additional, new command
533 # OpenCommand = (no default)
536 ## - log for log messages, srv for messages received by the server
540 ## The command (full command line) to execute
542 # SetCommandLine = (no default)
544 ## The environment (KEY=value; repeat for more)
546 # SetEnviron = TZ=(your timezone)
548 ## The TIGER192 checksum (optional)
550 # SetChecksum = (no default)
552 ## User who runs the command
554 # SetCredentials = (default: samhain process uid)
556 ## Words not allowed in message
558 # SetFilterNot = (none)
560 ## Words required (ALL of them)
562 # SetFilterAnd = (none)
564 ## Words required (at least one)
566 # SetFilterOr = (none)
568 ## Deadtime between consecutive calls
572 ## Add default environment (HOME, PATH, SHELL)
577 #####################################################
579 # Miscellaneous configuration options
581 #####################################################
585 ## whether to become a daemon process
586 ## (this is not honoured on database initialisation)
591 ## whether to test signature of files (init/check/none)
592 ## - if 'none', then we have to decide this on the command line -
594 # ChecksumTest = none
597 ## whether to drop linux capabilities that are not required
598 ## - will make a root process a 'mere mortal' in many respects
602 ## Set nice level (-19 to 19, see 'man nice'),
603 ## and I/O limit (kilobytes per second; 0 == off)
604 ## to reduce load on host.
609 ## The version string to embed in file signature databases
611 # VersionString = NULL
613 ## Interval between time stamp messages
618 ## Interval between file checks
620 # SetFileCheckTime = 600
621 SetFileCheckTime = 7200
623 ## Alternative: crontab-like schedule
625 # FileCheckScheduleOne = NULL
627 ## Alternative: crontab-like schedule(2)
629 # FileCheckScheduleTwo = NULL
631 ## Report only once on modified fles
632 ## Setting this to 'FALSE' will generate a report for any policy
633 ## violation (old and new ones) each time the daemon checks the file system.
635 # ReportOnlyOnce = True
637 ## Report in full detail
639 # ReportFullDetail = False
641 ## Report file timestamps in local time rather than GMT
645 ## The console device (can also be a file or named pipe)
646 ## - There are two console devices. Accordingly, you can use
647 ## this directive a second time to set the second console device.
648 ## If you have not defined the second device at compile time,
649 ## and you don't want to use it, then:
650 ## setting it to /dev/null is less effective than just leaving
651 ## it alone (setting to /dev/null will waste time by opening
652 ## /dev/null and writing to it)
654 # SetConsole = /dev/console
656 ## Activate the SysV IPC message queue
658 # MessageQueueActive = False
661 ## If false, skip reverse lookup when connecting to a host known
662 ## by name rather than IP address (i.e. trust the DNS)
664 # SetReverseLookup = True
668 # Only highest-level (alert) reports will be mailed immediately,
669 # others will be queued. Here you can define, when the queue will
670 # be flushed (Note: the queue is automatically flushed after
671 # completing a file check).
675 ## Maximum number of mails to queue
679 ## Recipient (max. 8)
681 SetMailAddress=samhain-reports@debian.org
683 ## Mail relay (IP address)
685 SetMailRelay = master.debian.org
687 ## Custom subject format
689 MailSubject = [Samhain at %H] %T: %S
691 ## --- end E-Mail ---
693 ## Path to the prelink executable
695 # SetPrelinkPath = /usr/sbin/prelink
697 ## TIGER192 checksum of the prelink executable
699 # SetPrelinkChecksum = (no default)
702 ## Path to the executable. If set, will be checksummed after startup
705 # SamhainPath = (no default)
708 ## The IP address of the log server
710 # SetLogServer = (default: compiled-in)
712 ## The IP address of the time server
714 # SetTimeServer = (default: compiled-in)
716 ## Trusted Users (comma delimited list of user names)
718 # TrustedUser = (no default; this adds to the compiled-in list)
720 ## Path to the file signature database
722 # SetDatabasePath = (default: compiled-in)
724 ## Path to the log file
726 # SetLogfilePath = (default: compiled-in)
728 ## Path to the PID file
730 # SetLockPath = (default: compiled-in)
733 ## The digest/checksum/hash algorithm
735 # DigestAlgo = TIGER192
738 ## Custom format for message header.
739 ## CAREFUL if you use XML logfile format.
748 # MessageHeader="%S %T "
751 ## Don't log path to config/database file on startup
755 ## The syslog facility, if you log to syslog
757 # SyslogFacility = LOG_AUTHPRIV
758 SyslogFacility=LOG_LOCAL2
760 ## The message authentication method
761 ## - If you change this, you *must* change it
762 ## on client *and* server
764 # MACType = HMAC-TIGER
767 ## everything below is ignored
770 #####################################################################
771 # This would be the proper syntax for parts that should only be
772 # included for certain hosts.
773 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
774 # result still has the proper syntax for the config file.
775 # You may have any number of @HOSTNAME/@end brackets.
776 # HOSTNAME should be the fully qualified 'official' name
777 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
778 # No IP number - except if samhain cannot determine the
779 # fully qualified hostname.
785 # These are two examples for conditional inclusion/exclusion
786 # of a machine based on the output from 'uname -srm'
795 #####################################################################