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"
378 <% if nodeinfo['buildd'] -%>
384 ## for these files, all modifications (even access time) are reported
385 ## - you may create some interesting-looking file (like /etc/safe_passwd),
386 ## just to watch whether someone will access it ...
391 ## Use for prelinked files or directories holding them
397 ## for these files, only access time is ignored
403 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
404 # so we go 3 levels deep
411 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
412 # so we go 3 levels deep there too
416 # Various directories / files that may include / be SUID/SGID binaries
419 file=/usr/lib/pt_chown
420 # X11, in Debian X7 this is now a symlink
422 #dir=/usr/X11R6/lib/X11/xmcd/bin
424 #file=/usr/lib/apache/suexec
425 #file=/usr/lib/apache/suexec.disabled
432 ## User0 and User1 are sections for files/dirs with user-definable checking
438 ## Here you can assign severities to policy violations.
439 ## If this severity exceeds the treshold of a log facility (see below),
440 ## a policy violation will be logged to that facility.
442 ## Severity for verification failures.
444 # SeverityReadOnly=crit
445 # SeverityLogFiles=crit
446 # SeverityGrowingLogs=crit
447 # SeverityIgnoreNone=crit
448 # SeverityAttributes=crit
453 SeverityReadOnly=crit
454 SeverityLogFiles=crit
455 SeverityGrowingLogs=warn
456 SeverityIgnoreNone=crit
457 SeverityAttributes=crit
461 ## We have a file in IgnoreAll that might or might not be present.
462 ## Setting the severity to 'info' prevents messages about deleted/new file.
464 # SeverityIgnoreAll=crit
465 SeverityIgnoreAll=info
467 ## Files : file access problems
470 ## Dirs : directory access problems
473 ## Names : suspect (non-printable) characters in a pathname
484 ## Switch on/OFF log facilities and set their threshold severity
486 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
487 ## 'mark' is used for timestamps.
490 ## Use 'none' to SWITCH OFF a log facility
492 ## By default, everything equal to and above the threshold is logged.
493 ## The specifiers '*', '!', and '=' are interpreted as
494 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
495 ## at least on Linux). Examples:
497 ## MailSeverity=!warn
498 ## MailSeverity==crit
514 # SyslogSeverity=none
516 ## Remote server (yule)
518 # ExportSeverity=none
520 ## External script or program
522 # ExternalSeverity = none
524 ## Logging to a database
526 # DatabaseSeverity = none
539 #####################################################
543 #####################################################
547 ## --- Check the filesystem for SUID/SGID binaries
552 # SuidCheckActive = yes
554 ## Interval for check (seconds)
556 # SuidCheckInterval = 7200
558 ## Alternative: crontab-like schedule
560 # SuidCheckSchedule = NULL
562 ## Directory to exclude
564 # SuidCheckExclude = NULL
566 ## Limit on files per second (0 == no limit)
570 ## Alternative: yield after every file
572 # SuidCheckYield = no
574 ## Severity of a detection
576 # SeveritySuidCheck = crit
578 ## Quarantine SUID/SGID files if found
580 # SuidCheckQuarantineFiles = yes
582 ## Method for Quarantining files:
583 # 0 - Delete or truncate the file.
584 # 1 - Remove SUID/SGID permissions from file.
585 # 2 - Move SUID/SGID file to quarantine dir.
587 # SuidCheckQuarantineMethod = 0
589 ## For method 1 and 3, really delete instead of truncating
591 # SuidCheckQuarantineDelete = yes
595 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
600 KernelCheckActive = True
602 ## Check interval (seconds); btw., the check is VERY fast
604 # KernelCheckInterval = 300
608 # SeverityKernel = crit
613 ## --- Logging of login/logout events
618 LoginCheckActive = True
620 ## Severity for logins, multiple logins, logouts
623 # SeverityLoginMulti=warn
624 # SeverityLogout=info
626 ## Interval for login/logout checks
628 # LoginCheckInterval = 300
633 ## --- Logging to a relational database
638 # SetDBName = samhain
646 # SetDBUser = samhain
650 # SetDBPassword = (default: none)
654 # SetDBHost = localhost
656 ## Log the server timestamp for received messages
658 # SetDBServerTstamp = True
660 ## Use a persistent connection
662 # UsePersistent = True
666 ## Interface to call external scripts/programs for logging
669 ## The absolute path to the command
670 ## - Each invocation of this directive will end the definition of the
671 ## preceding command, and start the definition of
672 ## an additional, new command
674 # OpenCommand = (no default)
677 ## - log for log messages, srv for messages received by the server
681 ## The command (full command line) to execute
683 # SetCommandLine = (no default)
685 ## The environment (KEY=value; repeat for more)
687 # SetEnviron = TZ=(your timezone)
689 ## The TIGER192 checksum (optional)
691 # SetChecksum = (no default)
693 ## User who runs the command
695 # SetCredentials = (default: samhain process uid)
697 ## Words not allowed in message
699 # SetFilterNot = (none)
701 ## Words required (ALL of them)
703 # SetFilterAnd = (none)
705 ## Words required (at least one)
707 # SetFilterOr = (none)
709 ## Deadtime between consecutive calls
713 ## Add default environment (HOME, PATH, SHELL)
718 #####################################################
720 # Miscellaneous configuration options
722 #####################################################
726 ## whether to become a daemon process
727 ## (this is not honoured on database initialisation)
732 ## whether to test signature of files (init/check/none)
733 ## - if 'none', then we have to decide this on the command line -
735 # ChecksumTest = none
738 ## whether to drop linux capabilities that are not required
739 ## - will make a root process a 'mere mortal' in many respects
743 ## Set nice level (-19 to 19, see 'man nice'),
744 ## and I/O limit (kilobytes per second; 0 == off)
745 ## to reduce load on host.
750 ## The version string to embed in file signature databases
752 # VersionString = NULL
754 ## Interval between time stamp messages
759 ## Interval between file checks
761 # SetFileCheckTime = 600
762 SetFileCheckTime = 7200
764 ## Alternative: crontab-like schedule
766 # FileCheckScheduleOne = NULL
768 ## Alternative: crontab-like schedule(2)
770 # FileCheckScheduleTwo = NULL
772 ## Report only once on modified fles
773 ## Setting this to 'FALSE' will generate a report for any policy
774 ## violation (old and new ones) each time the daemon checks the file system.
776 # ReportOnlyOnce = True
778 ## Report in full detail
780 # ReportFullDetail = False
782 ## Report file timestamps in local time rather than GMT
786 ## The console device (can also be a file or named pipe)
787 ## - There are two console devices. Accordingly, you can use
788 ## this directive a second time to set the second console device.
789 ## If you have not defined the second device at compile time,
790 ## and you don't want to use it, then:
791 ## setting it to /dev/null is less effective than just leaving
792 ## it alone (setting to /dev/null will waste time by opening
793 ## /dev/null and writing to it)
795 # SetConsole = /dev/console
797 ## Activate the SysV IPC message queue
799 # MessageQueueActive = False
802 ## If false, skip reverse lookup when connecting to a host known
803 ## by name rather than IP address (i.e. trust the DNS)
805 # SetReverseLookup = True
809 # Only highest-level (alert) reports will be mailed immediately,
810 # others will be queued. Here you can define, when the queue will
811 # be flushed (Note: the queue is automatically flushed after
812 # completing a file check).
816 ## Maximum number of mails to queue
820 ## Recipient (max. 8)
822 SetMailAddress=samhain-reports@debian.org
824 ## Mail relay (IP address)
827 if not nodeinfo['smarthost'].empty?
829 SetMailRelay = localhost
833 SetMailRelay = master.debian.org
838 ## Custom subject format
840 MailSubject = [Samhain at %H] %T: %S
842 ## --- end E-Mail ---
844 ## Path to the prelink executable
846 # SetPrelinkPath = /usr/sbin/prelink
848 ## TIGER192 checksum of the prelink executable
850 # SetPrelinkChecksum = (no default)
853 ## Path to the executable. If set, will be checksummed after startup
856 # SamhainPath = (no default)
859 ## The IP address of the log server
861 # SetLogServer = (default: compiled-in)
863 ## The IP address of the time server
865 # SetTimeServer = (default: compiled-in)
867 ## Trusted Users (comma delimited list of user names)
869 # TrustedUser = (no default; this adds to the compiled-in list)
871 ## Path to the file signature database
873 # SetDatabasePath = (default: compiled-in)
875 ## Path to the log file
877 # SetLogfilePath = (default: compiled-in)
879 ## Path to the PID file
881 # SetLockPath = (default: compiled-in)
884 ## The digest/checksum/hash algorithm
886 # DigestAlgo = TIGER192
889 ## Custom format for message header.
890 ## CAREFUL if you use XML logfile format.
899 # MessageHeader="%S %T "
902 ## Don't log path to config/database file on startup
906 ## The syslog facility, if you log to syslog
908 # SyslogFacility = LOG_AUTHPRIV
909 SyslogFacility=LOG_LOCAL2
911 ## The message authentication method
912 ## - If you change this, you *must* change it
913 ## on client *and* server
915 # MACType = HMAC-TIGER
918 ## everything below is ignored
921 #####################################################################
922 # This would be the proper syntax for parts that should only be
923 # included for certain hosts.
924 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
925 # result still has the proper syntax for the config file.
926 # You may have any number of @HOSTNAME/@end brackets.
927 # HOSTNAME should be the fully qualified 'official' name
928 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
929 # No IP number - except if samhain cannot determine the
930 # fully qualified hostname.
936 # These are two examples for conditional inclusion/exclusion
937 # of a machine based on the output from 'uname -srm'
946 #####################################################################