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
109 file=/etc/logrotate.d
113 ## for these files, changes in signature, timestamps, and size are ignored
120 #####################################################################
122 # This would be the proper syntax for parts that should only be
123 # included for certain hosts.
124 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
125 # result still has the proper syntax for the config file.
126 # You may have any number of @HOSTNAME/@end brackets.
127 # HOSTNAME should be the fully qualified 'official' name
128 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
129 # No IP number - except if samhain cannot determine the
130 # fully qualified hostname.
136 # These are two examples for conditional inclusion/exclusion
137 # of a machine based on the output from 'uname -srm'
147 #####################################################################
151 ## for these files, changes in signature, timestamps, and increase in size
155 file=/var/log/messages
157 file=/var/log/faillog
158 file=/var/log/auth.log
159 file=/var/log/daemon.log
160 file=/var/log/user.log
161 file=/var/log/kern.log
167 ## for these files, no modifications are reported
169 ## This file might be created or removed by the system sometimes.
171 file=/etc/resolv.conf.pcmcia.save
173 file=/etc/postfix/debian.db
174 file=/etc/postfix/debian
175 file=/etc/ssh/ssh_known_hosts
176 file=/etc/ssh/ssh-rsa-shadow
177 file=/var/lib/misc/ssh-rsa-shadow
178 file=/etc/.da-backup.trace
179 file=/etc/postfix/debianhosts
180 file=/etc/postfix/debianhosts.db
182 # We handle these files with puppet - please to not be bothering us
183 file=/etc/samhain/samhainrc
184 file=/etc/munin/munin-node.conf
185 file=/etc/exim4/blacklist
186 file=/etc/exim4/callout_users
187 file=/etc/exim4/exim4.conf
188 file=/etc/exim4/grey_users
189 file=/etc/exim4/helo-check
190 file=/etc/exim4/locals
191 file=/etc/exim4/localusers
192 file=/etc/exim4/rbllist
193 file=/etc/exim4/rcpthosts
194 file=/etc/exim4/rhsbllist
195 file=/etc/exim4/virtualdomains
196 file=/etc/exim4/whitelist
197 file=/etc/apt/sources.list.d/volatile.list
198 file=/etc/apt/sources.list.d/security.list
199 file=/etc/apt/sources.list.d/debian.org.list
200 file=/etc/apt/sources.list.d/debian.restricted.list
201 file=/etc/apt/sources.list.d/debian.list
202 file=/etc/apt/sources.list.d/backports.org.list
203 file=/etc/apt/apt.conf.d/local-recommends
204 file=/etc/puppet/puppet.conf
205 file=/etc/default/puppet
206 file=/etc/logrotate.d/exim4-paniclog
207 file=/etc/logrotate.d/exim4-base
212 ## for these files, all modifications (even access time) are reported
213 ## - you may create some interesting-looking file (like /etc/safe_passwd),
214 ## just to watch whether someone will access it ...
219 ## Use for prelinked files or directories holding them
225 ## for these files, only access time is ignored
231 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
232 # so we go 3 levels deep
239 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
240 # so we go 3 levels deep there too
244 # Various directories / files that may include / be SUID/SGID binaries
247 file=/usr/lib/pt_chown
248 # X11, in Debian X7 this is now a symlink
250 #dir=/usr/X11R6/lib/X11/xmcd/bin
252 #file=/usr/lib/apache/suexec
253 #file=/usr/lib/apache/suexec.disabled
260 ## User0 and User1 are sections for files/dirs with user-definable checking
266 ## Here you can assign severities to policy violations.
267 ## If this severity exceeds the treshold of a log facility (see below),
268 ## a policy violation will be logged to that facility.
270 ## Severity for verification failures.
272 # SeverityReadOnly=crit
273 # SeverityLogFiles=crit
274 # SeverityGrowingLogs=crit
275 # SeverityIgnoreNone=crit
276 # SeverityAttributes=crit
281 SeverityReadOnly=crit
282 SeverityLogFiles=crit
283 SeverityGrowingLogs=warn
284 SeverityIgnoreNone=crit
285 SeverityAttributes=crit
289 ## We have a file in IgnoreAll that might or might not be present.
290 ## Setting the severity to 'info' prevents messages about deleted/new file.
292 # SeverityIgnoreAll=crit
293 SeverityIgnoreAll=info
295 ## Files : file access problems
298 ## Dirs : directory access problems
301 ## Names : suspect (non-printable) characters in a pathname
312 ## Switch on/OFF log facilities and set their threshold severity
314 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
315 ## 'mark' is used for timestamps.
318 ## Use 'none' to SWITCH OFF a log facility
320 ## By default, everything equal to and above the threshold is logged.
321 ## The specifiers '*', '!', and '=' are interpreted as
322 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
323 ## at least on Linux). Examples:
325 ## MailSeverity=!warn
326 ## MailSeverity==crit
342 # SyslogSeverity=none
344 ## Remote server (yule)
346 # ExportSeverity=none
348 ## External script or program
350 # ExternalSeverity = none
352 ## Logging to a database
354 # DatabaseSeverity = none
367 #####################################################
371 #####################################################
375 ## --- Check the filesystem for SUID/SGID binaries
380 # SuidCheckActive = yes
382 ## Interval for check (seconds)
384 # SuidCheckInterval = 7200
386 ## Alternative: crontab-like schedule
388 # SuidCheckSchedule = NULL
390 ## Directory to exclude
392 # SuidCheckExclude = NULL
394 ## Limit on files per second (0 == no limit)
398 ## Alternative: yield after every file
400 # SuidCheckYield = no
402 ## Severity of a detection
404 # SeveritySuidCheck = crit
406 ## Quarantine SUID/SGID files if found
408 # SuidCheckQuarantineFiles = yes
410 ## Method for Quarantining files:
411 # 0 - Delete or truncate the file.
412 # 1 - Remove SUID/SGID permissions from file.
413 # 2 - Move SUID/SGID file to quarantine dir.
415 # SuidCheckQuarantineMethod = 0
417 ## For method 1 and 3, really delete instead of truncating
419 # SuidCheckQuarantineDelete = yes
423 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
428 KernelCheckActive = True
430 ## Check interval (seconds); btw., the check is VERY fast
432 # KernelCheckInterval = 300
436 # SeverityKernel = crit
441 ## --- Logging of login/logout events
446 LoginCheckActive = True
448 ## Severity for logins, multiple logins, logouts
451 # SeverityLoginMulti=warn
452 # SeverityLogout=info
454 ## Interval for login/logout checks
456 # LoginCheckInterval = 300
461 ## --- Logging to a relational database
466 # SetDBName = samhain
474 # SetDBUser = samhain
478 # SetDBPassword = (default: none)
482 # SetDBHost = localhost
484 ## Log the server timestamp for received messages
486 # SetDBServerTstamp = True
488 ## Use a persistent connection
490 # UsePersistent = True
494 ## Interface to call external scripts/programs for logging
497 ## The absolute path to the command
498 ## - Each invocation of this directive will end the definition of the
499 ## preceding command, and start the definition of
500 ## an additional, new command
502 # OpenCommand = (no default)
505 ## - log for log messages, srv for messages received by the server
509 ## The command (full command line) to execute
511 # SetCommandLine = (no default)
513 ## The environment (KEY=value; repeat for more)
515 # SetEnviron = TZ=(your timezone)
517 ## The TIGER192 checksum (optional)
519 # SetChecksum = (no default)
521 ## User who runs the command
523 # SetCredentials = (default: samhain process uid)
525 ## Words not allowed in message
527 # SetFilterNot = (none)
529 ## Words required (ALL of them)
531 # SetFilterAnd = (none)
533 ## Words required (at least one)
535 # SetFilterOr = (none)
537 ## Deadtime between consecutive calls
541 ## Add default environment (HOME, PATH, SHELL)
546 #####################################################
548 # Miscellaneous configuration options
550 #####################################################
554 ## whether to become a daemon process
555 ## (this is not honoured on database initialisation)
560 ## whether to test signature of files (init/check/none)
561 ## - if 'none', then we have to decide this on the command line -
563 # ChecksumTest = none
566 ## whether to drop linux capabilities that are not required
567 ## - will make a root process a 'mere mortal' in many respects
571 ## Set nice level (-19 to 19, see 'man nice'),
572 ## and I/O limit (kilobytes per second; 0 == off)
573 ## to reduce load on host.
578 ## The version string to embed in file signature databases
580 # VersionString = NULL
582 ## Interval between time stamp messages
587 ## Interval between file checks
589 # SetFileCheckTime = 600
590 SetFileCheckTime = 7200
592 ## Alternative: crontab-like schedule
594 # FileCheckScheduleOne = NULL
596 ## Alternative: crontab-like schedule(2)
598 # FileCheckScheduleTwo = NULL
600 ## Report only once on modified fles
601 ## Setting this to 'FALSE' will generate a report for any policy
602 ## violation (old and new ones) each time the daemon checks the file system.
604 # ReportOnlyOnce = True
606 ## Report in full detail
608 # ReportFullDetail = False
610 ## Report file timestamps in local time rather than GMT
614 ## The console device (can also be a file or named pipe)
615 ## - There are two console devices. Accordingly, you can use
616 ## this directive a second time to set the second console device.
617 ## If you have not defined the second device at compile time,
618 ## and you don't want to use it, then:
619 ## setting it to /dev/null is less effective than just leaving
620 ## it alone (setting to /dev/null will waste time by opening
621 ## /dev/null and writing to it)
623 # SetConsole = /dev/console
625 ## Activate the SysV IPC message queue
627 # MessageQueueActive = False
630 ## If false, skip reverse lookup when connecting to a host known
631 ## by name rather than IP address (i.e. trust the DNS)
633 # SetReverseLookup = True
637 # Only highest-level (alert) reports will be mailed immediately,
638 # others will be queued. Here you can define, when the queue will
639 # be flushed (Note: the queue is automatically flushed after
640 # completing a file check).
644 ## Maximum number of mails to queue
648 ## Recipient (max. 8)
650 SetMailAddress=samhain-reports@debian.org
652 ## Mail relay (IP address)
654 SetMailRelay = master.debian.org
656 ## Custom subject format
658 MailSubject = [Samhain at %H] %T: %S
660 ## --- end E-Mail ---
662 ## Path to the prelink executable
664 # SetPrelinkPath = /usr/sbin/prelink
666 ## TIGER192 checksum of the prelink executable
668 # SetPrelinkChecksum = (no default)
671 ## Path to the executable. If set, will be checksummed after startup
674 # SamhainPath = (no default)
677 ## The IP address of the log server
679 # SetLogServer = (default: compiled-in)
681 ## The IP address of the time server
683 # SetTimeServer = (default: compiled-in)
685 ## Trusted Users (comma delimited list of user names)
687 # TrustedUser = (no default; this adds to the compiled-in list)
689 ## Path to the file signature database
691 # SetDatabasePath = (default: compiled-in)
693 ## Path to the log file
695 # SetLogfilePath = (default: compiled-in)
697 ## Path to the PID file
699 # SetLockPath = (default: compiled-in)
702 ## The digest/checksum/hash algorithm
704 # DigestAlgo = TIGER192
707 ## Custom format for message header.
708 ## CAREFUL if you use XML logfile format.
717 # MessageHeader="%S %T "
720 ## Don't log path to config/database file on startup
724 ## The syslog facility, if you log to syslog
726 # SyslogFacility = LOG_AUTHPRIV
727 SyslogFacility=LOG_LOCAL2
729 ## The message authentication method
730 ## - If you change this, you *must* change it
731 ## on client *and* server
733 # MACType = HMAC-TIGER
736 ## everything below is ignored
739 #####################################################################
740 # This would be the proper syntax for parts that should only be
741 # included for certain hosts.
742 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
743 # result still has the proper syntax for the config file.
744 # You may have any number of @HOSTNAME/@end brackets.
745 # HOSTNAME should be the fully qualified 'official' name
746 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
747 # No IP number - except if samhain cannot determine the
748 # fully qualified hostname.
754 # These are two examples for conditional inclusion/exclusion
755 # of a machine based on the output from 'uname -srm'
764 #####################################################################