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
105 file=/etc/apt/apt.conf.d
106 file=/etc/apt/sources.list.d
110 ## for these files, changes in signature, timestamps, and size are ignored
117 #####################################################################
119 # This would be the proper syntax for parts that should only be
120 # included for certain hosts.
121 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
122 # result still has the proper syntax for the config file.
123 # You may have any number of @HOSTNAME/@end brackets.
124 # HOSTNAME should be the fully qualified 'official' name
125 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
126 # No IP number - except if samhain cannot determine the
127 # fully qualified hostname.
133 # These are two examples for conditional inclusion/exclusion
134 # of a machine based on the output from 'uname -srm'
144 #####################################################################
148 ## for these files, changes in signature, timestamps, and increase in size
152 file=/var/log/messages
154 file=/var/log/faillog
155 file=/var/log/auth.log
156 file=/var/log/daemon.log
157 file=/var/log/user.log
158 file=/var/log/kern.log
164 ## for these files, no modifications are reported
166 ## This file might be created or removed by the system sometimes.
168 file=/etc/resolv.conf.pcmcia.save
170 file=/etc/postfix/debian.db
171 file=/etc/postfix/debian
172 file=/etc/ssh/ssh_known_hosts
173 file=/etc/ssh/ssh-rsa-shadow
174 file=/var/lib/misc/ssh-rsa-shadow
175 file=/etc/.da-backup.trace
176 file=/etc/postfix/debianhosts
177 file=/etc/postfix/debianhosts.db
179 # We handle these files with puppet - please to not be bothering us
180 file=/etc/samhain/samhainrc
181 file=/etc/munin/munin-node.conf
182 file=/etc/exim4/blacklist
183 file=/etc/exim4/callout_users
184 file=/etc/exim4/exim4.conf
185 file=/etc/exim4/grey_users
186 file=/etc/exim4/helo-check
187 file=/etc/exim4/locals
188 file=/etc/exim4/localusers
189 file=/etc/exim4/rbllist
190 file=/etc/exim4/rcpthosts
191 file=/etc/exim4/rhsbllist
192 file=/etc/exim4/virtualdomains
193 file=/etc/exim4/whitelist
194 file=/etc/apt/sources.list.d/volatile.list
195 file=/etc/apt/sources.list.d/security.list
196 file=/etc/apt/sources.list.d/debian.org.list
197 file=/etc/apt/sources.list.d/debian.list
198 file=/etc/apt/sources.list.d/backports.org.list
199 file=/etc/apt/apt.conf.d/local-recommends
204 ## for these files, all modifications (even access time) are reported
205 ## - you may create some interesting-looking file (like /etc/safe_passwd),
206 ## just to watch whether someone will access it ...
211 ## Use for prelinked files or directories holding them
217 ## for these files, only access time is ignored
223 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
224 # so we go 3 levels deep
231 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
232 # so we go 3 levels deep there too
236 # Various directories / files that may include / be SUID/SGID binaries
239 file=/usr/lib/pt_chown
240 # X11, in Debian X7 this is now a symlink
242 #dir=/usr/X11R6/lib/X11/xmcd/bin
244 #file=/usr/lib/apache/suexec
245 #file=/usr/lib/apache/suexec.disabled
252 ## User0 and User1 are sections for files/dirs with user-definable checking
258 ## Here you can assign severities to policy violations.
259 ## If this severity exceeds the treshold of a log facility (see below),
260 ## a policy violation will be logged to that facility.
262 ## Severity for verification failures.
264 # SeverityReadOnly=crit
265 # SeverityLogFiles=crit
266 # SeverityGrowingLogs=crit
267 # SeverityIgnoreNone=crit
268 # SeverityAttributes=crit
273 SeverityReadOnly=crit
274 SeverityLogFiles=crit
275 SeverityGrowingLogs=warn
276 SeverityIgnoreNone=crit
277 SeverityAttributes=crit
281 ## We have a file in IgnoreAll that might or might not be present.
282 ## Setting the severity to 'info' prevents messages about deleted/new file.
284 # SeverityIgnoreAll=crit
285 SeverityIgnoreAll=info
287 ## Files : file access problems
290 ## Dirs : directory access problems
293 ## Names : suspect (non-printable) characters in a pathname
304 ## Switch on/OFF log facilities and set their threshold severity
306 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
307 ## 'mark' is used for timestamps.
310 ## Use 'none' to SWITCH OFF a log facility
312 ## By default, everything equal to and above the threshold is logged.
313 ## The specifiers '*', '!', and '=' are interpreted as
314 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
315 ## at least on Linux). Examples:
317 ## MailSeverity=!warn
318 ## MailSeverity==crit
334 # SyslogSeverity=none
336 ## Remote server (yule)
338 # ExportSeverity=none
340 ## External script or program
342 # ExternalSeverity = none
344 ## Logging to a database
346 # DatabaseSeverity = none
359 #####################################################
363 #####################################################
367 ## --- Check the filesystem for SUID/SGID binaries
372 # SuidCheckActive = yes
374 ## Interval for check (seconds)
376 # SuidCheckInterval = 7200
378 ## Alternative: crontab-like schedule
380 # SuidCheckSchedule = NULL
382 ## Directory to exclude
384 # SuidCheckExclude = NULL
386 ## Limit on files per second (0 == no limit)
390 ## Alternative: yield after every file
392 # SuidCheckYield = no
394 ## Severity of a detection
396 # SeveritySuidCheck = crit
398 ## Quarantine SUID/SGID files if found
400 # SuidCheckQuarantineFiles = yes
402 ## Method for Quarantining files:
403 # 0 - Delete or truncate the file.
404 # 1 - Remove SUID/SGID permissions from file.
405 # 2 - Move SUID/SGID file to quarantine dir.
407 # SuidCheckQuarantineMethod = 0
409 ## For method 1 and 3, really delete instead of truncating
411 # SuidCheckQuarantineDelete = yes
415 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
420 KernelCheckActive = True
422 ## Check interval (seconds); btw., the check is VERY fast
424 # KernelCheckInterval = 300
428 # SeverityKernel = crit
433 ## --- Logging of login/logout events
438 LoginCheckActive = True
440 ## Severity for logins, multiple logins, logouts
443 # SeverityLoginMulti=warn
444 # SeverityLogout=info
446 ## Interval for login/logout checks
448 # LoginCheckInterval = 300
453 ## --- Logging to a relational database
458 # SetDBName = samhain
466 # SetDBUser = samhain
470 # SetDBPassword = (default: none)
474 # SetDBHost = localhost
476 ## Log the server timestamp for received messages
478 # SetDBServerTstamp = True
480 ## Use a persistent connection
482 # UsePersistent = True
486 ## Interface to call external scripts/programs for logging
489 ## The absolute path to the command
490 ## - Each invocation of this directive will end the definition of the
491 ## preceding command, and start the definition of
492 ## an additional, new command
494 # OpenCommand = (no default)
497 ## - log for log messages, srv for messages received by the server
501 ## The command (full command line) to execute
503 # SetCommandLine = (no default)
505 ## The environment (KEY=value; repeat for more)
507 # SetEnviron = TZ=(your timezone)
509 ## The TIGER192 checksum (optional)
511 # SetChecksum = (no default)
513 ## User who runs the command
515 # SetCredentials = (default: samhain process uid)
517 ## Words not allowed in message
519 # SetFilterNot = (none)
521 ## Words required (ALL of them)
523 # SetFilterAnd = (none)
525 ## Words required (at least one)
527 # SetFilterOr = (none)
529 ## Deadtime between consecutive calls
533 ## Add default environment (HOME, PATH, SHELL)
538 #####################################################
540 # Miscellaneous configuration options
542 #####################################################
546 ## whether to become a daemon process
547 ## (this is not honoured on database initialisation)
552 ## whether to test signature of files (init/check/none)
553 ## - if 'none', then we have to decide this on the command line -
555 # ChecksumTest = none
558 ## whether to drop linux capabilities that are not required
559 ## - will make a root process a 'mere mortal' in many respects
563 ## Set nice level (-19 to 19, see 'man nice'),
564 ## and I/O limit (kilobytes per second; 0 == off)
565 ## to reduce load on host.
570 ## The version string to embed in file signature databases
572 # VersionString = NULL
574 ## Interval between time stamp messages
579 ## Interval between file checks
581 # SetFileCheckTime = 600
582 SetFileCheckTime = 7200
584 ## Alternative: crontab-like schedule
586 # FileCheckScheduleOne = NULL
588 ## Alternative: crontab-like schedule(2)
590 # FileCheckScheduleTwo = NULL
592 ## Report only once on modified fles
593 ## Setting this to 'FALSE' will generate a report for any policy
594 ## violation (old and new ones) each time the daemon checks the file system.
596 # ReportOnlyOnce = True
598 ## Report in full detail
600 # ReportFullDetail = False
602 ## Report file timestamps in local time rather than GMT
606 ## The console device (can also be a file or named pipe)
607 ## - There are two console devices. Accordingly, you can use
608 ## this directive a second time to set the second console device.
609 ## If you have not defined the second device at compile time,
610 ## and you don't want to use it, then:
611 ## setting it to /dev/null is less effective than just leaving
612 ## it alone (setting to /dev/null will waste time by opening
613 ## /dev/null and writing to it)
615 # SetConsole = /dev/console
617 ## Activate the SysV IPC message queue
619 # MessageQueueActive = False
622 ## If false, skip reverse lookup when connecting to a host known
623 ## by name rather than IP address (i.e. trust the DNS)
625 # SetReverseLookup = True
629 # Only highest-level (alert) reports will be mailed immediately,
630 # others will be queued. Here you can define, when the queue will
631 # be flushed (Note: the queue is automatically flushed after
632 # completing a file check).
636 ## Maximum number of mails to queue
640 ## Recipient (max. 8)
642 SetMailAddress=samhain-reports@debian.org
644 ## Mail relay (IP address)
646 SetMailRelay = master.debian.org
648 ## Custom subject format
650 MailSubject = [Samhain at %H] %T: %S
652 ## --- end E-Mail ---
654 ## Path to the prelink executable
656 # SetPrelinkPath = /usr/sbin/prelink
658 ## TIGER192 checksum of the prelink executable
660 # SetPrelinkChecksum = (no default)
663 ## Path to the executable. If set, will be checksummed after startup
666 # SamhainPath = (no default)
669 ## The IP address of the log server
671 # SetLogServer = (default: compiled-in)
673 ## The IP address of the time server
675 # SetTimeServer = (default: compiled-in)
677 ## Trusted Users (comma delimited list of user names)
679 # TrustedUser = (no default; this adds to the compiled-in list)
681 ## Path to the file signature database
683 # SetDatabasePath = (default: compiled-in)
685 ## Path to the log file
687 # SetLogfilePath = (default: compiled-in)
689 ## Path to the PID file
691 # SetLockPath = (default: compiled-in)
694 ## The digest/checksum/hash algorithm
696 # DigestAlgo = TIGER192
699 ## Custom format for message header.
700 ## CAREFUL if you use XML logfile format.
709 # MessageHeader="%S %T "
712 ## Don't log path to config/database file on startup
716 ## The syslog facility, if you log to syslog
718 # SyslogFacility = LOG_AUTHPRIV
719 SyslogFacility=LOG_LOCAL2
721 ## The message authentication method
722 ## - If you change this, you *must* change it
723 ## on client *and* server
725 # MACType = HMAC-TIGER
728 ## everything below is ignored
731 #####################################################################
732 # This would be the proper syntax for parts that should only be
733 # included for certain hosts.
734 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
735 # result still has the proper syntax for the config file.
736 # You may have any number of @HOSTNAME/@end brackets.
737 # HOSTNAME should be the fully qualified 'official' name
738 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
739 # No IP number - except if samhain cannot determine the
740 # fully qualified hostname.
746 # These are two examples for conditional inclusion/exclusion
747 # of a machine based on the output from 'uname -srm'
756 #####################################################################