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/apt/preferences
203 file=/etc/apt/sources.list.d/volatile.list
204 file=/etc/apt/sources.list.d/security.list
205 file=/etc/apt/sources.list.d/debian.org.list
206 file=/etc/apt/sources.list.d/debian.restricted.list
207 file=/etc/apt/sources.list.d/debian.list
208 file=/etc/apt/sources.list.d/backports.org.list
209 file=/etc/apt/apt.conf.d/local-recommends
210 file=/etc/apt/apt.conf.d/local-pdiffs
211 file=/etc/puppet/puppet.conf
212 file=/etc/default/puppet
213 file=/etc/logrotate.d/exim4-paniclog
214 file=/etc/logrotate.d/exim4-base
216 file=/usr/sbin/dsa-update-apt-status
217 file=/usr/sbin/dsa-update-samhain-status
218 file=/etc/nagios/nrpe_dsa.cfg
219 file=/etc/cron.d/dsa-nagios-nrpe-config
220 file=/usr/lib/nagios/plugins/dsa-check-packages
221 file=/usr/lib/nagios/plugins/dsa-check-soas
222 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
223 file=/usr/lib/nagios/plugins/dsa-check-samhain
224 file=/usr/lib/nagios/plugins/dsa-check-statusfile
225 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
226 file=/usr/lib/nagios/plugins/dsa-check-config
227 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
228 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
229 file=/usr/lib/nagios/plugins/dsa-check-puppet
230 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
231 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
232 file=/usr/lib/nagios/plugins/dsa-check-dabackup
233 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
234 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
235 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
236 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
237 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
241 ## for these files, all modifications (even access time) are reported
242 ## - you may create some interesting-looking file (like /etc/safe_passwd),
243 ## just to watch whether someone will access it ...
248 ## Use for prelinked files or directories holding them
254 ## for these files, only access time is ignored
260 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
261 # so we go 3 levels deep
268 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
269 # so we go 3 levels deep there too
273 # Various directories / files that may include / be SUID/SGID binaries
276 file=/usr/lib/pt_chown
277 # X11, in Debian X7 this is now a symlink
279 #dir=/usr/X11R6/lib/X11/xmcd/bin
281 #file=/usr/lib/apache/suexec
282 #file=/usr/lib/apache/suexec.disabled
289 ## User0 and User1 are sections for files/dirs with user-definable checking
295 ## Here you can assign severities to policy violations.
296 ## If this severity exceeds the treshold of a log facility (see below),
297 ## a policy violation will be logged to that facility.
299 ## Severity for verification failures.
301 # SeverityReadOnly=crit
302 # SeverityLogFiles=crit
303 # SeverityGrowingLogs=crit
304 # SeverityIgnoreNone=crit
305 # SeverityAttributes=crit
310 SeverityReadOnly=crit
311 SeverityLogFiles=crit
312 SeverityGrowingLogs=warn
313 SeverityIgnoreNone=crit
314 SeverityAttributes=crit
318 ## We have a file in IgnoreAll that might or might not be present.
319 ## Setting the severity to 'info' prevents messages about deleted/new file.
321 # SeverityIgnoreAll=crit
322 SeverityIgnoreAll=info
324 ## Files : file access problems
327 ## Dirs : directory access problems
330 ## Names : suspect (non-printable) characters in a pathname
341 ## Switch on/OFF log facilities and set their threshold severity
343 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
344 ## 'mark' is used for timestamps.
347 ## Use 'none' to SWITCH OFF a log facility
349 ## By default, everything equal to and above the threshold is logged.
350 ## The specifiers '*', '!', and '=' are interpreted as
351 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
352 ## at least on Linux). Examples:
354 ## MailSeverity=!warn
355 ## MailSeverity==crit
371 # SyslogSeverity=none
373 ## Remote server (yule)
375 # ExportSeverity=none
377 ## External script or program
379 # ExternalSeverity = none
381 ## Logging to a database
383 # DatabaseSeverity = none
396 #####################################################
400 #####################################################
404 ## --- Check the filesystem for SUID/SGID binaries
409 # SuidCheckActive = yes
411 ## Interval for check (seconds)
413 # SuidCheckInterval = 7200
415 ## Alternative: crontab-like schedule
417 # SuidCheckSchedule = NULL
419 ## Directory to exclude
421 # SuidCheckExclude = NULL
423 ## Limit on files per second (0 == no limit)
427 ## Alternative: yield after every file
429 # SuidCheckYield = no
431 ## Severity of a detection
433 # SeveritySuidCheck = crit
435 ## Quarantine SUID/SGID files if found
437 # SuidCheckQuarantineFiles = yes
439 ## Method for Quarantining files:
440 # 0 - Delete or truncate the file.
441 # 1 - Remove SUID/SGID permissions from file.
442 # 2 - Move SUID/SGID file to quarantine dir.
444 # SuidCheckQuarantineMethod = 0
446 ## For method 1 and 3, really delete instead of truncating
448 # SuidCheckQuarantineDelete = yes
452 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
457 KernelCheckActive = True
459 ## Check interval (seconds); btw., the check is VERY fast
461 # KernelCheckInterval = 300
465 # SeverityKernel = crit
470 ## --- Logging of login/logout events
475 LoginCheckActive = True
477 ## Severity for logins, multiple logins, logouts
480 # SeverityLoginMulti=warn
481 # SeverityLogout=info
483 ## Interval for login/logout checks
485 # LoginCheckInterval = 300
490 ## --- Logging to a relational database
495 # SetDBName = samhain
503 # SetDBUser = samhain
507 # SetDBPassword = (default: none)
511 # SetDBHost = localhost
513 ## Log the server timestamp for received messages
515 # SetDBServerTstamp = True
517 ## Use a persistent connection
519 # UsePersistent = True
523 ## Interface to call external scripts/programs for logging
526 ## The absolute path to the command
527 ## - Each invocation of this directive will end the definition of the
528 ## preceding command, and start the definition of
529 ## an additional, new command
531 # OpenCommand = (no default)
534 ## - log for log messages, srv for messages received by the server
538 ## The command (full command line) to execute
540 # SetCommandLine = (no default)
542 ## The environment (KEY=value; repeat for more)
544 # SetEnviron = TZ=(your timezone)
546 ## The TIGER192 checksum (optional)
548 # SetChecksum = (no default)
550 ## User who runs the command
552 # SetCredentials = (default: samhain process uid)
554 ## Words not allowed in message
556 # SetFilterNot = (none)
558 ## Words required (ALL of them)
560 # SetFilterAnd = (none)
562 ## Words required (at least one)
564 # SetFilterOr = (none)
566 ## Deadtime between consecutive calls
570 ## Add default environment (HOME, PATH, SHELL)
575 #####################################################
577 # Miscellaneous configuration options
579 #####################################################
583 ## whether to become a daemon process
584 ## (this is not honoured on database initialisation)
589 ## whether to test signature of files (init/check/none)
590 ## - if 'none', then we have to decide this on the command line -
592 # ChecksumTest = none
595 ## whether to drop linux capabilities that are not required
596 ## - will make a root process a 'mere mortal' in many respects
600 ## Set nice level (-19 to 19, see 'man nice'),
601 ## and I/O limit (kilobytes per second; 0 == off)
602 ## to reduce load on host.
607 ## The version string to embed in file signature databases
609 # VersionString = NULL
611 ## Interval between time stamp messages
616 ## Interval between file checks
618 # SetFileCheckTime = 600
619 SetFileCheckTime = 7200
621 ## Alternative: crontab-like schedule
623 # FileCheckScheduleOne = NULL
625 ## Alternative: crontab-like schedule(2)
627 # FileCheckScheduleTwo = NULL
629 ## Report only once on modified fles
630 ## Setting this to 'FALSE' will generate a report for any policy
631 ## violation (old and new ones) each time the daemon checks the file system.
633 # ReportOnlyOnce = True
635 ## Report in full detail
637 # ReportFullDetail = False
639 ## Report file timestamps in local time rather than GMT
643 ## The console device (can also be a file or named pipe)
644 ## - There are two console devices. Accordingly, you can use
645 ## this directive a second time to set the second console device.
646 ## If you have not defined the second device at compile time,
647 ## and you don't want to use it, then:
648 ## setting it to /dev/null is less effective than just leaving
649 ## it alone (setting to /dev/null will waste time by opening
650 ## /dev/null and writing to it)
652 # SetConsole = /dev/console
654 ## Activate the SysV IPC message queue
656 # MessageQueueActive = False
659 ## If false, skip reverse lookup when connecting to a host known
660 ## by name rather than IP address (i.e. trust the DNS)
662 # SetReverseLookup = True
666 # Only highest-level (alert) reports will be mailed immediately,
667 # others will be queued. Here you can define, when the queue will
668 # be flushed (Note: the queue is automatically flushed after
669 # completing a file check).
673 ## Maximum number of mails to queue
677 ## Recipient (max. 8)
679 SetMailAddress=samhain-reports@debian.org
681 ## Mail relay (IP address)
683 SetMailRelay = master.debian.org
685 ## Custom subject format
687 MailSubject = [Samhain at %H] %T: %S
689 ## --- end E-Mail ---
691 ## Path to the prelink executable
693 # SetPrelinkPath = /usr/sbin/prelink
695 ## TIGER192 checksum of the prelink executable
697 # SetPrelinkChecksum = (no default)
700 ## Path to the executable. If set, will be checksummed after startup
703 # SamhainPath = (no default)
706 ## The IP address of the log server
708 # SetLogServer = (default: compiled-in)
710 ## The IP address of the time server
712 # SetTimeServer = (default: compiled-in)
714 ## Trusted Users (comma delimited list of user names)
716 # TrustedUser = (no default; this adds to the compiled-in list)
718 ## Path to the file signature database
720 # SetDatabasePath = (default: compiled-in)
722 ## Path to the log file
724 # SetLogfilePath = (default: compiled-in)
726 ## Path to the PID file
728 # SetLockPath = (default: compiled-in)
731 ## The digest/checksum/hash algorithm
733 # DigestAlgo = TIGER192
736 ## Custom format for message header.
737 ## CAREFUL if you use XML logfile format.
746 # MessageHeader="%S %T "
749 ## Don't log path to config/database file on startup
753 ## The syslog facility, if you log to syslog
755 # SyslogFacility = LOG_AUTHPRIV
756 SyslogFacility=LOG_LOCAL2
758 ## The message authentication method
759 ## - If you change this, you *must* change it
760 ## on client *and* server
762 # MACType = HMAC-TIGER
765 ## everything below is ignored
768 #####################################################################
769 # This would be the proper syntax for parts that should only be
770 # included for certain hosts.
771 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
772 # result still has the proper syntax for the config file.
773 # You may have any number of @HOSTNAME/@end brackets.
774 # HOSTNAME should be the fully qualified 'official' name
775 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
776 # No IP number - except if samhain cannot determine the
777 # fully qualified hostname.
783 # These are two examples for conditional inclusion/exclusion
784 # of a machine based on the output from 'uname -srm'
793 #####################################################################