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
78 <% case hoster when "ubcece", "darmstadt", "ftcollins" then ""
84 file=/etc/passwd.backup
85 file=/etc/shadow.backup
86 file=/etc/postfix/prng_exch
90 file=/etc/lvm/cache/.cache
91 file=/etc/network/run/ifstate
92 file=/var/state/samhain/samhain_file
93 file=/etc/bind/zones/db.debian.net
95 <% if hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
97 file=/etc/bind/named.conf.acl
98 file=/etc/bind/named.conf.options
99 file=/etc/bind/named.conf.local
100 file=/etc/bind/geodns/named.conf.geo
101 file=/etc/bind/geodns/recvconf.files
106 # There are files in /etc that might change, thus changing the directory
107 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
111 file=/etc/network/run
113 file=/etc/spamassassin/sa-update-keys
115 # These are the directories for the files we handle with puppet
116 file=/etc/apache2/conf.d
117 files=/etc/apache2/mods-enabled
120 file=/etc/munin/plugins
121 file=/etc/munin/plugin-conf.d
125 file=/etc/apt/apt.conf.d
126 file=/etc/apt/sources.list.d
128 file=/etc/logrotate.d
130 file=/etc/nagios/nrpe.d
131 file=/etc/nagios/obsolete-packages-ignore.d
132 file=/etc/bind/geodns
135 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
137 else extradir="file=/etc/puppet"
142 file=/usr/lib/nagios/plugins
145 file=/etc/monit/monit.d
153 ## for these files, changes in signature, timestamps, and size are ignored
160 #####################################################################
162 # This would be the proper syntax for parts that should only be
163 # included for certain hosts.
164 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
165 # result still has the proper syntax for the config file.
166 # You may have any number of @HOSTNAME/@end brackets.
167 # HOSTNAME should be the fully qualified 'official' name
168 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
169 # No IP number - except if samhain cannot determine the
170 # fully qualified hostname.
176 # These are two examples for conditional inclusion/exclusion
177 # of a machine based on the output from 'uname -srm'
187 #####################################################################
191 ## for these files, changes in signature, timestamps, and increase in size
195 file=/var/log/messages
197 file=/var/log/faillog
198 file=/var/log/auth.log
199 file=/var/log/daemon.log
200 file=/var/log/user.log
201 file=/var/log/kern.log
207 ## for these files, no modifications are reported
209 ## This file might be created or removed by the system sometimes.
211 <% case hoster when "ubcece", "darmstadt", "ftcollins" then "" -%>
212 file=/etc/resolv.conf
215 file=/etc/resolv.conf.pcmcia.save
217 file=/etc/postfix/debian.db
218 file=/etc/postfix/debian
219 file=/etc/ssh/ssh_known_hosts
220 file=/etc/ssh/ssh-rsa-shadow
221 file=/var/lib/misc/ssh-rsa-shadow
222 file=/etc/.da-backup.trace
223 file=/etc/postfix/debianhosts
224 file=/etc/postfix/debianhosts.db
226 file=/etc/blkid.tab.old
227 file=/etc/resolv.conf.dhclient-new
229 # We handle these files with puppet - please to not be bothering us
233 file=/etc/samhain/samhainrc
234 file=/etc/munin/munin-node.conf
235 file=/etc/munin/plugin-conf.d/munin-node
236 file=/etc/userdir-ldap.confc
237 file=/etc/exim4/blacklist
238 file=/etc/exim4/host_blacklist
239 file=/etc/exim4/callout_users
240 file=/etc/exim4/exim4.conf
241 file=/etc/exim4/grey_users
242 file=/etc/exim4/helo-check
243 file=/etc/exim4/locals
244 file=/etc/exim4/localusers
245 file=/etc/exim4/manualroute
246 file=/etc/exim4/rbllist
247 file=/etc/exim4/rhsbllist
248 file=/etc/exim4/virtualdomains
249 file=/etc/exim4/whitelist
250 file=/etc/exim4/local-settings.conf
251 file=/etc/exim4/ssl/ca.crt
252 file=/etc/exim4/ssl/ca.crl
253 file=/etc/exim4/ssl/thishost.crt
254 file=/etc/exim4/ssl/thishost.key
255 file=/etc/ssh/ssh_config
256 file=/etc/ssh/sshd_config
259 if not nodeinfo['heavy_exim'].empty?
261 file=/etc/exim4/surbl_whitelist.txt
262 file=/etc/exim4/exim_surbl.pl
263 file=/etc/exim4/ccTLD.txt
264 file=/etc/clamav-unofficial-sigs.conf
265 file=/etc/clamav-unofficial-sigs.dsa.conf
270 file=/etc/munin/plugins/bind
271 file=/etc/munin/plugins/bind_views
272 file=/etc/munin/plugins/cpu
273 file=/etc/munin/plugins/df
274 file=/etc/munin/plugins/df_abs
275 file=/etc/munin/plugins/df_inode
276 file=/etc/munin/plugins/entropy
277 file=/etc/munin/plugins/forks
278 file=/etc/munin/plugins/interrupts
279 file=/etc/munin/plugins/iostat
280 file=/etc/munin/plugins/irqstats
281 file=/etc/munin/plugins/load
282 file=/etc/munin/plugins/memory
283 file=/etc/munin/plugins/ntp_offset
284 file=/etc/munin/plugins/ntp_states
285 file=/etc/munin/plugins/open_files
286 file=/etc/munin/plugins/open_inodes
287 file=/etc/munin/plugins/processes
288 file=/etc/munin/plugins/ps_apache2
289 file=/etc/munin/plugins/ps_exim4
290 file=/etc/munin/plugins/ps_vsftpd
291 file=/etc/munin/plugins/spamassassin
292 file=/etc/munin/plugins/swap
293 file=/etc/munin/plugins/uptime
294 file=/etc/munin/plugins/vmstat
295 file=/etc/munin/plugins/vfstpd
296 file=/etc/munin/plugins/apache_accesses
297 file=/etc/munin/plugins/apache_processes
298 file=/etc/munin/plugins/apache_volume
299 file=/etc/munin/plugins/apache_servers
300 file=/etc/munin/plugins/exim_mailqueue
301 file=/etc/munin/plugins/exim_mailstats
302 file=/etc/munin/plugins/postfix_mailqueue
303 file=/etc/munin/plugins/postfix_mailvolume
304 file=/etc/apache2/conf.d/ressource-limits
305 file=/etc/apache2/mods-enabled/info.conf
306 file=/etc/apache2/mods-enabled/info.load
307 file=/etc/apache2/mods-enabled/server.conf
308 file=/etc/apache2/mods-enabled/server.load
309 file=/etc/apache2/conf.d/server-status
310 file=/etc/apache2/conf.d/local-serverinfo
311 file=/etc/apt/preferences
312 file=/etc/apt/sources.list.d/volatile.list
313 file=/etc/apt/sources.list.d/security.list
314 file=/etc/apt/sources.list.d/buildd.list
315 file=/etc/apt/sources.list.d/debian.org.list
316 file=/etc/apt/sources.list.d/debian.restricted.list
317 file=/etc/apt/sources.list.d/debian.list
318 file=/etc/apt/sources.list.d/backports.org.list
319 file=/etc/apt/apt.conf.d/local-recommends
320 file=/etc/apt/apt.conf.d/local-pdiffs
321 file=/etc/puppet/puppet.conf
322 file=/etc/default/puppet
323 file=/etc/default/postgrey
324 file=/etc/logrotate.d/exim4-paniclog
325 file=/etc/logrotate.d/exim4-base
326 file=/etc/logrotate.d/syslog-ng
327 file=/etc/syslog-ng/syslog-ng.conf
328 file=/usr/sbin/dsa-update-apt-status
329 file=/usr/sbin/dsa-update-samhain-status
330 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
331 file=/etc/nagios/nrpe.d/debianorg.cfg
332 file=/etc/nagios/obsolete-packages-ignore
333 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
334 file=/usr/lib/nagios/plugins/dsa-check-packages
335 file=/usr/lib/nagios/plugins/dsa-check-soas
336 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
337 file=/usr/lib/nagios/plugins/dsa-check-samhain
338 file=/usr/lib/nagios/plugins/dsa-check-statusfile
339 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
340 file=/usr/lib/nagios/plugins/dsa-check-config
341 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
342 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
343 file=/usr/lib/nagios/plugins/dsa-check-puppet
344 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
345 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
346 file=/usr/lib/nagios/plugins/dsa-check-dabackup
347 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
348 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
349 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
350 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
351 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
353 file=/etc/sysctl.d/mmap_min_addr.conf
355 file=/etc/monit/monitrc
356 file=/etc/monit/monit.d/01puppet
357 file=/etc/monit/monit.d/00debian.org
358 file=/etc/cron.d/dsa-puppet-stuff
359 file=/etc/cron.d/dsa-buildd
362 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
363 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
364 file=/etc/nagios3/puppetconf.d/auto-services.cfg
365 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
366 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
367 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
368 file=/etc/munin/munin.conf"
369 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
370 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
371 when /geo[123].debian.org/: extrafiles="dir=1/etc/bind/geodns"
372 when /(senfl|ravel|rietz|klecker).debian.org/: extrafiles="dir=1/etc/bind
373 file=/etc/bind/named.conf.debian-zones"
374 when /(zandonai|biber|alkman).debian.org/: extrafiles="dir=3/etc/lvm"
381 ## for these files, all modifications (even access time) are reported
382 ## - you may create some interesting-looking file (like /etc/safe_passwd),
383 ## just to watch whether someone will access it ...
388 ## Use for prelinked files or directories holding them
394 ## for these files, only access time is ignored
400 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
401 # so we go 3 levels deep
408 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
409 # so we go 3 levels deep there too
413 # Various directories / files that may include / be SUID/SGID binaries
416 file=/usr/lib/pt_chown
417 # X11, in Debian X7 this is now a symlink
419 #dir=/usr/X11R6/lib/X11/xmcd/bin
421 #file=/usr/lib/apache/suexec
422 #file=/usr/lib/apache/suexec.disabled
429 ## User0 and User1 are sections for files/dirs with user-definable checking
435 ## Here you can assign severities to policy violations.
436 ## If this severity exceeds the treshold of a log facility (see below),
437 ## a policy violation will be logged to that facility.
439 ## Severity for verification failures.
441 # SeverityReadOnly=crit
442 # SeverityLogFiles=crit
443 # SeverityGrowingLogs=crit
444 # SeverityIgnoreNone=crit
445 # SeverityAttributes=crit
450 SeverityReadOnly=crit
451 SeverityLogFiles=crit
452 SeverityGrowingLogs=warn
453 SeverityIgnoreNone=crit
454 SeverityAttributes=crit
458 ## We have a file in IgnoreAll that might or might not be present.
459 ## Setting the severity to 'info' prevents messages about deleted/new file.
461 # SeverityIgnoreAll=crit
462 SeverityIgnoreAll=info
464 ## Files : file access problems
467 ## Dirs : directory access problems
470 ## Names : suspect (non-printable) characters in a pathname
481 ## Switch on/OFF log facilities and set their threshold severity
483 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
484 ## 'mark' is used for timestamps.
487 ## Use 'none' to SWITCH OFF a log facility
489 ## By default, everything equal to and above the threshold is logged.
490 ## The specifiers '*', '!', and '=' are interpreted as
491 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
492 ## at least on Linux). Examples:
494 ## MailSeverity=!warn
495 ## MailSeverity==crit
511 # SyslogSeverity=none
513 ## Remote server (yule)
515 # ExportSeverity=none
517 ## External script or program
519 # ExternalSeverity = none
521 ## Logging to a database
523 # DatabaseSeverity = none
536 #####################################################
540 #####################################################
544 ## --- Check the filesystem for SUID/SGID binaries
549 # SuidCheckActive = yes
551 ## Interval for check (seconds)
553 # SuidCheckInterval = 7200
555 ## Alternative: crontab-like schedule
557 # SuidCheckSchedule = NULL
559 ## Directory to exclude
561 # SuidCheckExclude = NULL
563 ## Limit on files per second (0 == no limit)
567 ## Alternative: yield after every file
569 # SuidCheckYield = no
571 ## Severity of a detection
573 # SeveritySuidCheck = crit
575 ## Quarantine SUID/SGID files if found
577 # SuidCheckQuarantineFiles = yes
579 ## Method for Quarantining files:
580 # 0 - Delete or truncate the file.
581 # 1 - Remove SUID/SGID permissions from file.
582 # 2 - Move SUID/SGID file to quarantine dir.
584 # SuidCheckQuarantineMethod = 0
586 ## For method 1 and 3, really delete instead of truncating
588 # SuidCheckQuarantineDelete = yes
592 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
597 KernelCheckActive = True
599 ## Check interval (seconds); btw., the check is VERY fast
601 # KernelCheckInterval = 300
605 # SeverityKernel = crit
610 ## --- Logging of login/logout events
615 LoginCheckActive = True
617 ## Severity for logins, multiple logins, logouts
620 # SeverityLoginMulti=warn
621 # SeverityLogout=info
623 ## Interval for login/logout checks
625 # LoginCheckInterval = 300
630 ## --- Logging to a relational database
635 # SetDBName = samhain
643 # SetDBUser = samhain
647 # SetDBPassword = (default: none)
651 # SetDBHost = localhost
653 ## Log the server timestamp for received messages
655 # SetDBServerTstamp = True
657 ## Use a persistent connection
659 # UsePersistent = True
663 ## Interface to call external scripts/programs for logging
666 ## The absolute path to the command
667 ## - Each invocation of this directive will end the definition of the
668 ## preceding command, and start the definition of
669 ## an additional, new command
671 # OpenCommand = (no default)
674 ## - log for log messages, srv for messages received by the server
678 ## The command (full command line) to execute
680 # SetCommandLine = (no default)
682 ## The environment (KEY=value; repeat for more)
684 # SetEnviron = TZ=(your timezone)
686 ## The TIGER192 checksum (optional)
688 # SetChecksum = (no default)
690 ## User who runs the command
692 # SetCredentials = (default: samhain process uid)
694 ## Words not allowed in message
696 # SetFilterNot = (none)
698 ## Words required (ALL of them)
700 # SetFilterAnd = (none)
702 ## Words required (at least one)
704 # SetFilterOr = (none)
706 ## Deadtime between consecutive calls
710 ## Add default environment (HOME, PATH, SHELL)
715 #####################################################
717 # Miscellaneous configuration options
719 #####################################################
723 ## whether to become a daemon process
724 ## (this is not honoured on database initialisation)
729 ## whether to test signature of files (init/check/none)
730 ## - if 'none', then we have to decide this on the command line -
732 # ChecksumTest = none
735 ## whether to drop linux capabilities that are not required
736 ## - will make a root process a 'mere mortal' in many respects
740 ## Set nice level (-19 to 19, see 'man nice'),
741 ## and I/O limit (kilobytes per second; 0 == off)
742 ## to reduce load on host.
747 ## The version string to embed in file signature databases
749 # VersionString = NULL
751 ## Interval between time stamp messages
756 ## Interval between file checks
758 # SetFileCheckTime = 600
759 SetFileCheckTime = 7200
761 ## Alternative: crontab-like schedule
763 # FileCheckScheduleOne = NULL
765 ## Alternative: crontab-like schedule(2)
767 # FileCheckScheduleTwo = NULL
769 ## Report only once on modified fles
770 ## Setting this to 'FALSE' will generate a report for any policy
771 ## violation (old and new ones) each time the daemon checks the file system.
773 # ReportOnlyOnce = True
775 ## Report in full detail
777 # ReportFullDetail = False
779 ## Report file timestamps in local time rather than GMT
783 ## The console device (can also be a file or named pipe)
784 ## - There are two console devices. Accordingly, you can use
785 ## this directive a second time to set the second console device.
786 ## If you have not defined the second device at compile time,
787 ## and you don't want to use it, then:
788 ## setting it to /dev/null is less effective than just leaving
789 ## it alone (setting to /dev/null will waste time by opening
790 ## /dev/null and writing to it)
792 # SetConsole = /dev/console
794 ## Activate the SysV IPC message queue
796 # MessageQueueActive = False
799 ## If false, skip reverse lookup when connecting to a host known
800 ## by name rather than IP address (i.e. trust the DNS)
802 # SetReverseLookup = True
806 # Only highest-level (alert) reports will be mailed immediately,
807 # others will be queued. Here you can define, when the queue will
808 # be flushed (Note: the queue is automatically flushed after
809 # completing a file check).
813 ## Maximum number of mails to queue
817 ## Recipient (max. 8)
819 SetMailAddress=samhain-reports@debian.org
821 ## Mail relay (IP address)
824 if not nodeinfo['smarthost'].empty?
826 SetMailRelay = localhost
830 SetMailRelay = master.debian.org
835 ## Custom subject format
837 MailSubject = [Samhain at %H] %T: %S
839 ## --- end E-Mail ---
841 ## Path to the prelink executable
843 # SetPrelinkPath = /usr/sbin/prelink
845 ## TIGER192 checksum of the prelink executable
847 # SetPrelinkChecksum = (no default)
850 ## Path to the executable. If set, will be checksummed after startup
853 # SamhainPath = (no default)
856 ## The IP address of the log server
858 # SetLogServer = (default: compiled-in)
860 ## The IP address of the time server
862 # SetTimeServer = (default: compiled-in)
864 ## Trusted Users (comma delimited list of user names)
866 # TrustedUser = (no default; this adds to the compiled-in list)
868 ## Path to the file signature database
870 # SetDatabasePath = (default: compiled-in)
872 ## Path to the log file
874 # SetLogfilePath = (default: compiled-in)
876 ## Path to the PID file
878 # SetLockPath = (default: compiled-in)
881 ## The digest/checksum/hash algorithm
883 # DigestAlgo = TIGER192
886 ## Custom format for message header.
887 ## CAREFUL if you use XML logfile format.
896 # MessageHeader="%S %T "
899 ## Don't log path to config/database file on startup
903 ## The syslog facility, if you log to syslog
905 # SyslogFacility = LOG_AUTHPRIV
906 SyslogFacility=LOG_LOCAL2
908 ## The message authentication method
909 ## - If you change this, you *must* change it
910 ## on client *and* server
912 # MACType = HMAC-TIGER
915 ## everything below is ignored
918 #####################################################################
919 # This would be the proper syntax for parts that should only be
920 # included for certain hosts.
921 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
922 # result still has the proper syntax for the config file.
923 # You may have any number of @HOSTNAME/@end brackets.
924 # HOSTNAME should be the fully qualified 'official' name
925 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
926 # No IP number - except if samhain cannot determine the
927 # fully qualified hostname.
933 # These are two examples for conditional inclusion/exclusion
934 # of a machine based on the output from 'uname -srm'
943 #####################################################################