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
114 file=/etc/nagios/nrpe.d
115 file=/etc/nagios3/puppetconf.d
117 file=/usr/lib/nagios/plugins
122 ## for these files, changes in signature, timestamps, and size are ignored
129 #####################################################################
131 # This would be the proper syntax for parts that should only be
132 # included for certain hosts.
133 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
134 # result still has the proper syntax for the config file.
135 # You may have any number of @HOSTNAME/@end brackets.
136 # HOSTNAME should be the fully qualified 'official' name
137 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
138 # No IP number - except if samhain cannot determine the
139 # fully qualified hostname.
145 # These are two examples for conditional inclusion/exclusion
146 # of a machine based on the output from 'uname -srm'
156 #####################################################################
160 ## for these files, changes in signature, timestamps, and increase in size
164 file=/var/log/messages
166 file=/var/log/faillog
167 file=/var/log/auth.log
168 file=/var/log/daemon.log
169 file=/var/log/user.log
170 file=/var/log/kern.log
176 ## for these files, no modifications are reported
178 ## This file might be created or removed by the system sometimes.
180 file=/etc/resolv.conf.pcmcia.save
182 file=/etc/postfix/debian.db
183 file=/etc/postfix/debian
184 file=/etc/ssh/ssh_known_hosts
185 file=/etc/ssh/ssh-rsa-shadow
186 file=/var/lib/misc/ssh-rsa-shadow
187 file=/etc/.da-backup.trace
188 file=/etc/postfix/debianhosts
189 file=/etc/postfix/debianhosts.db
191 # We handle these files with puppet - please to not be bothering us
192 file=/etc/samhain/samhainrc
193 file=/etc/munin/munin-node.conf
194 file=/etc/exim4/blacklist
195 file=/etc/exim4/callout_users
196 file=/etc/exim4/exim4.conf
197 file=/etc/exim4/grey_users
198 file=/etc/exim4/helo-check
199 file=/etc/exim4/locals
200 file=/etc/exim4/localusers
201 file=/etc/exim4/rbllist
202 file=/etc/exim4/rcpthosts
203 file=/etc/exim4/rhsbllist
204 file=/etc/exim4/virtualdomains
205 file=/etc/exim4/whitelist
206 file=/etc/exim4/local-auto.conf
207 file=/etc/apt/preferences
208 file=/etc/apt/sources.list.d/volatile.list
209 file=/etc/apt/sources.list.d/security.list
210 file=/etc/apt/sources.list.d/debian.org.list
211 file=/etc/apt/sources.list.d/debian.restricted.list
212 file=/etc/apt/sources.list.d/debian.list
213 file=/etc/apt/sources.list.d/backports.org.list
214 file=/etc/apt/apt.conf.d/local-recommends
215 file=/etc/apt/apt.conf.d/local-pdiffs
216 file=/etc/puppet/puppet.conf
217 file=/etc/default/puppet
218 file=/etc/logrotate.d/exim4-paniclog
219 file=/etc/logrotate.d/exim4-base
220 file=/usr/sbin/dsa-update-apt-status
221 file=/usr/sbin/dsa-update-samhain-status
222 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
223 file=/etc/nagios/nrpe.d/debianorg.cfg
224 file=/etc/nagios/obsolete-packages-ignore
225 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
226 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
227 file=/etc/nagios3/puppetconf.d/auto-services.cfg
228 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
229 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
230 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
231 file=/usr/lib/nagios/plugins/dsa-check-packages
232 file=/usr/lib/nagios/plugins/dsa-check-soas
233 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
234 file=/usr/lib/nagios/plugins/dsa-check-samhain
235 file=/usr/lib/nagios/plugins/dsa-check-statusfile
236 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
237 file=/usr/lib/nagios/plugins/dsa-check-config
238 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
239 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
240 file=/usr/lib/nagios/plugins/dsa-check-puppet
241 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
242 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
243 file=/usr/lib/nagios/plugins/dsa-check-dabackup
244 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
245 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
246 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
247 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
248 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
252 ## for these files, all modifications (even access time) are reported
253 ## - you may create some interesting-looking file (like /etc/safe_passwd),
254 ## just to watch whether someone will access it ...
259 ## Use for prelinked files or directories holding them
265 ## for these files, only access time is ignored
271 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
272 # so we go 3 levels deep
279 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
280 # so we go 3 levels deep there too
284 # Various directories / files that may include / be SUID/SGID binaries
287 file=/usr/lib/pt_chown
288 # X11, in Debian X7 this is now a symlink
290 #dir=/usr/X11R6/lib/X11/xmcd/bin
292 #file=/usr/lib/apache/suexec
293 #file=/usr/lib/apache/suexec.disabled
300 ## User0 and User1 are sections for files/dirs with user-definable checking
306 ## Here you can assign severities to policy violations.
307 ## If this severity exceeds the treshold of a log facility (see below),
308 ## a policy violation will be logged to that facility.
310 ## Severity for verification failures.
312 # SeverityReadOnly=crit
313 # SeverityLogFiles=crit
314 # SeverityGrowingLogs=crit
315 # SeverityIgnoreNone=crit
316 # SeverityAttributes=crit
321 SeverityReadOnly=crit
322 SeverityLogFiles=crit
323 SeverityGrowingLogs=warn
324 SeverityIgnoreNone=crit
325 SeverityAttributes=crit
329 ## We have a file in IgnoreAll that might or might not be present.
330 ## Setting the severity to 'info' prevents messages about deleted/new file.
332 # SeverityIgnoreAll=crit
333 SeverityIgnoreAll=info
335 ## Files : file access problems
338 ## Dirs : directory access problems
341 ## Names : suspect (non-printable) characters in a pathname
352 ## Switch on/OFF log facilities and set their threshold severity
354 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
355 ## 'mark' is used for timestamps.
358 ## Use 'none' to SWITCH OFF a log facility
360 ## By default, everything equal to and above the threshold is logged.
361 ## The specifiers '*', '!', and '=' are interpreted as
362 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
363 ## at least on Linux). Examples:
365 ## MailSeverity=!warn
366 ## MailSeverity==crit
382 # SyslogSeverity=none
384 ## Remote server (yule)
386 # ExportSeverity=none
388 ## External script or program
390 # ExternalSeverity = none
392 ## Logging to a database
394 # DatabaseSeverity = none
407 #####################################################
411 #####################################################
415 ## --- Check the filesystem for SUID/SGID binaries
420 # SuidCheckActive = yes
422 ## Interval for check (seconds)
424 # SuidCheckInterval = 7200
426 ## Alternative: crontab-like schedule
428 # SuidCheckSchedule = NULL
430 ## Directory to exclude
432 # SuidCheckExclude = NULL
434 ## Limit on files per second (0 == no limit)
438 ## Alternative: yield after every file
440 # SuidCheckYield = no
442 ## Severity of a detection
444 # SeveritySuidCheck = crit
446 ## Quarantine SUID/SGID files if found
448 # SuidCheckQuarantineFiles = yes
450 ## Method for Quarantining files:
451 # 0 - Delete or truncate the file.
452 # 1 - Remove SUID/SGID permissions from file.
453 # 2 - Move SUID/SGID file to quarantine dir.
455 # SuidCheckQuarantineMethod = 0
457 ## For method 1 and 3, really delete instead of truncating
459 # SuidCheckQuarantineDelete = yes
463 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
468 KernelCheckActive = True
470 ## Check interval (seconds); btw., the check is VERY fast
472 # KernelCheckInterval = 300
476 # SeverityKernel = crit
481 ## --- Logging of login/logout events
486 LoginCheckActive = True
488 ## Severity for logins, multiple logins, logouts
491 # SeverityLoginMulti=warn
492 # SeverityLogout=info
494 ## Interval for login/logout checks
496 # LoginCheckInterval = 300
501 ## --- Logging to a relational database
506 # SetDBName = samhain
514 # SetDBUser = samhain
518 # SetDBPassword = (default: none)
522 # SetDBHost = localhost
524 ## Log the server timestamp for received messages
526 # SetDBServerTstamp = True
528 ## Use a persistent connection
530 # UsePersistent = True
534 ## Interface to call external scripts/programs for logging
537 ## The absolute path to the command
538 ## - Each invocation of this directive will end the definition of the
539 ## preceding command, and start the definition of
540 ## an additional, new command
542 # OpenCommand = (no default)
545 ## - log for log messages, srv for messages received by the server
549 ## The command (full command line) to execute
551 # SetCommandLine = (no default)
553 ## The environment (KEY=value; repeat for more)
555 # SetEnviron = TZ=(your timezone)
557 ## The TIGER192 checksum (optional)
559 # SetChecksum = (no default)
561 ## User who runs the command
563 # SetCredentials = (default: samhain process uid)
565 ## Words not allowed in message
567 # SetFilterNot = (none)
569 ## Words required (ALL of them)
571 # SetFilterAnd = (none)
573 ## Words required (at least one)
575 # SetFilterOr = (none)
577 ## Deadtime between consecutive calls
581 ## Add default environment (HOME, PATH, SHELL)
586 #####################################################
588 # Miscellaneous configuration options
590 #####################################################
594 ## whether to become a daemon process
595 ## (this is not honoured on database initialisation)
600 ## whether to test signature of files (init/check/none)
601 ## - if 'none', then we have to decide this on the command line -
603 # ChecksumTest = none
606 ## whether to drop linux capabilities that are not required
607 ## - will make a root process a 'mere mortal' in many respects
611 ## Set nice level (-19 to 19, see 'man nice'),
612 ## and I/O limit (kilobytes per second; 0 == off)
613 ## to reduce load on host.
618 ## The version string to embed in file signature databases
620 # VersionString = NULL
622 ## Interval between time stamp messages
627 ## Interval between file checks
629 # SetFileCheckTime = 600
630 SetFileCheckTime = 7200
632 ## Alternative: crontab-like schedule
634 # FileCheckScheduleOne = NULL
636 ## Alternative: crontab-like schedule(2)
638 # FileCheckScheduleTwo = NULL
640 ## Report only once on modified fles
641 ## Setting this to 'FALSE' will generate a report for any policy
642 ## violation (old and new ones) each time the daemon checks the file system.
644 # ReportOnlyOnce = True
646 ## Report in full detail
648 # ReportFullDetail = False
650 ## Report file timestamps in local time rather than GMT
654 ## The console device (can also be a file or named pipe)
655 ## - There are two console devices. Accordingly, you can use
656 ## this directive a second time to set the second console device.
657 ## If you have not defined the second device at compile time,
658 ## and you don't want to use it, then:
659 ## setting it to /dev/null is less effective than just leaving
660 ## it alone (setting to /dev/null will waste time by opening
661 ## /dev/null and writing to it)
663 # SetConsole = /dev/console
665 ## Activate the SysV IPC message queue
667 # MessageQueueActive = False
670 ## If false, skip reverse lookup when connecting to a host known
671 ## by name rather than IP address (i.e. trust the DNS)
673 # SetReverseLookup = True
677 # Only highest-level (alert) reports will be mailed immediately,
678 # others will be queued. Here you can define, when the queue will
679 # be flushed (Note: the queue is automatically flushed after
680 # completing a file check).
684 ## Maximum number of mails to queue
688 ## Recipient (max. 8)
690 SetMailAddress=samhain-reports@debian.org
692 ## Mail relay (IP address)
694 SetMailRelay = master.debian.org
696 ## Custom subject format
698 MailSubject = [Samhain at %H] %T: %S
700 ## --- end E-Mail ---
702 ## Path to the prelink executable
704 # SetPrelinkPath = /usr/sbin/prelink
706 ## TIGER192 checksum of the prelink executable
708 # SetPrelinkChecksum = (no default)
711 ## Path to the executable. If set, will be checksummed after startup
714 # SamhainPath = (no default)
717 ## The IP address of the log server
719 # SetLogServer = (default: compiled-in)
721 ## The IP address of the time server
723 # SetTimeServer = (default: compiled-in)
725 ## Trusted Users (comma delimited list of user names)
727 # TrustedUser = (no default; this adds to the compiled-in list)
729 ## Path to the file signature database
731 # SetDatabasePath = (default: compiled-in)
733 ## Path to the log file
735 # SetLogfilePath = (default: compiled-in)
737 ## Path to the PID file
739 # SetLockPath = (default: compiled-in)
742 ## The digest/checksum/hash algorithm
744 # DigestAlgo = TIGER192
747 ## Custom format for message header.
748 ## CAREFUL if you use XML logfile format.
757 # MessageHeader="%S %T "
760 ## Don't log path to config/database file on startup
764 ## The syslog facility, if you log to syslog
766 # SyslogFacility = LOG_AUTHPRIV
767 SyslogFacility=LOG_LOCAL2
769 ## The message authentication method
770 ## - If you change this, you *must* change it
771 ## on client *and* server
773 # MACType = HMAC-TIGER
776 ## everything below is ignored
779 #####################################################################
780 # This would be the proper syntax for parts that should only be
781 # included for certain hosts.
782 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
783 # result still has the proper syntax for the config file.
784 # You may have any number of @HOSTNAME/@end brackets.
785 # HOSTNAME should be the fully qualified 'official' name
786 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
787 # No IP number - except if samhain cannot determine the
788 # fully qualified hostname.
794 # These are two examples for conditional inclusion/exclusion
795 # of a machine based on the output from 'uname -srm'
804 #####################################################################