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