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 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
369 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
370 when /geo[123].debian.org/: extrafiles="dir=1/etc/bind/geodns"
371 when /(senfl|ravel|rietz|klecker).debian.org/: extrafiles="dir=1/etc/bind
372 file=/etc/bind/named.conf.debian-zones"
373 when /(zandonai|biber).debian.org/: extrafiles="dir=3/etc/lvm"
380 ## for these files, all modifications (even access time) are reported
381 ## - you may create some interesting-looking file (like /etc/safe_passwd),
382 ## just to watch whether someone will access it ...
387 ## Use for prelinked files or directories holding them
393 ## for these files, only access time is ignored
399 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
400 # so we go 3 levels deep
407 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
408 # so we go 3 levels deep there too
412 # Various directories / files that may include / be SUID/SGID binaries
415 file=/usr/lib/pt_chown
416 # X11, in Debian X7 this is now a symlink
418 #dir=/usr/X11R6/lib/X11/xmcd/bin
420 #file=/usr/lib/apache/suexec
421 #file=/usr/lib/apache/suexec.disabled
428 ## User0 and User1 are sections for files/dirs with user-definable checking
434 ## Here you can assign severities to policy violations.
435 ## If this severity exceeds the treshold of a log facility (see below),
436 ## a policy violation will be logged to that facility.
438 ## Severity for verification failures.
440 # SeverityReadOnly=crit
441 # SeverityLogFiles=crit
442 # SeverityGrowingLogs=crit
443 # SeverityIgnoreNone=crit
444 # SeverityAttributes=crit
449 SeverityReadOnly=crit
450 SeverityLogFiles=crit
451 SeverityGrowingLogs=warn
452 SeverityIgnoreNone=crit
453 SeverityAttributes=crit
457 ## We have a file in IgnoreAll that might or might not be present.
458 ## Setting the severity to 'info' prevents messages about deleted/new file.
460 # SeverityIgnoreAll=crit
461 SeverityIgnoreAll=info
463 ## Files : file access problems
466 ## Dirs : directory access problems
469 ## Names : suspect (non-printable) characters in a pathname
480 ## Switch on/OFF log facilities and set their threshold severity
482 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
483 ## 'mark' is used for timestamps.
486 ## Use 'none' to SWITCH OFF a log facility
488 ## By default, everything equal to and above the threshold is logged.
489 ## The specifiers '*', '!', and '=' are interpreted as
490 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
491 ## at least on Linux). Examples:
493 ## MailSeverity=!warn
494 ## MailSeverity==crit
510 # SyslogSeverity=none
512 ## Remote server (yule)
514 # ExportSeverity=none
516 ## External script or program
518 # ExternalSeverity = none
520 ## Logging to a database
522 # DatabaseSeverity = none
535 #####################################################
539 #####################################################
543 ## --- Check the filesystem for SUID/SGID binaries
548 # SuidCheckActive = yes
550 ## Interval for check (seconds)
552 # SuidCheckInterval = 7200
554 ## Alternative: crontab-like schedule
556 # SuidCheckSchedule = NULL
558 ## Directory to exclude
560 # SuidCheckExclude = NULL
562 ## Limit on files per second (0 == no limit)
566 ## Alternative: yield after every file
568 # SuidCheckYield = no
570 ## Severity of a detection
572 # SeveritySuidCheck = crit
574 ## Quarantine SUID/SGID files if found
576 # SuidCheckQuarantineFiles = yes
578 ## Method for Quarantining files:
579 # 0 - Delete or truncate the file.
580 # 1 - Remove SUID/SGID permissions from file.
581 # 2 - Move SUID/SGID file to quarantine dir.
583 # SuidCheckQuarantineMethod = 0
585 ## For method 1 and 3, really delete instead of truncating
587 # SuidCheckQuarantineDelete = yes
591 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
596 KernelCheckActive = True
598 ## Check interval (seconds); btw., the check is VERY fast
600 # KernelCheckInterval = 300
604 # SeverityKernel = crit
609 ## --- Logging of login/logout events
614 LoginCheckActive = True
616 ## Severity for logins, multiple logins, logouts
619 # SeverityLoginMulti=warn
620 # SeverityLogout=info
622 ## Interval for login/logout checks
624 # LoginCheckInterval = 300
629 ## --- Logging to a relational database
634 # SetDBName = samhain
642 # SetDBUser = samhain
646 # SetDBPassword = (default: none)
650 # SetDBHost = localhost
652 ## Log the server timestamp for received messages
654 # SetDBServerTstamp = True
656 ## Use a persistent connection
658 # UsePersistent = True
662 ## Interface to call external scripts/programs for logging
665 ## The absolute path to the command
666 ## - Each invocation of this directive will end the definition of the
667 ## preceding command, and start the definition of
668 ## an additional, new command
670 # OpenCommand = (no default)
673 ## - log for log messages, srv for messages received by the server
677 ## The command (full command line) to execute
679 # SetCommandLine = (no default)
681 ## The environment (KEY=value; repeat for more)
683 # SetEnviron = TZ=(your timezone)
685 ## The TIGER192 checksum (optional)
687 # SetChecksum = (no default)
689 ## User who runs the command
691 # SetCredentials = (default: samhain process uid)
693 ## Words not allowed in message
695 # SetFilterNot = (none)
697 ## Words required (ALL of them)
699 # SetFilterAnd = (none)
701 ## Words required (at least one)
703 # SetFilterOr = (none)
705 ## Deadtime between consecutive calls
709 ## Add default environment (HOME, PATH, SHELL)
714 #####################################################
716 # Miscellaneous configuration options
718 #####################################################
722 ## whether to become a daemon process
723 ## (this is not honoured on database initialisation)
728 ## whether to test signature of files (init/check/none)
729 ## - if 'none', then we have to decide this on the command line -
731 # ChecksumTest = none
734 ## whether to drop linux capabilities that are not required
735 ## - will make a root process a 'mere mortal' in many respects
739 ## Set nice level (-19 to 19, see 'man nice'),
740 ## and I/O limit (kilobytes per second; 0 == off)
741 ## to reduce load on host.
746 ## The version string to embed in file signature databases
748 # VersionString = NULL
750 ## Interval between time stamp messages
755 ## Interval between file checks
757 # SetFileCheckTime = 600
758 SetFileCheckTime = 7200
760 ## Alternative: crontab-like schedule
762 # FileCheckScheduleOne = NULL
764 ## Alternative: crontab-like schedule(2)
766 # FileCheckScheduleTwo = NULL
768 ## Report only once on modified fles
769 ## Setting this to 'FALSE' will generate a report for any policy
770 ## violation (old and new ones) each time the daemon checks the file system.
772 # ReportOnlyOnce = True
774 ## Report in full detail
776 # ReportFullDetail = False
778 ## Report file timestamps in local time rather than GMT
782 ## The console device (can also be a file or named pipe)
783 ## - There are two console devices. Accordingly, you can use
784 ## this directive a second time to set the second console device.
785 ## If you have not defined the second device at compile time,
786 ## and you don't want to use it, then:
787 ## setting it to /dev/null is less effective than just leaving
788 ## it alone (setting to /dev/null will waste time by opening
789 ## /dev/null and writing to it)
791 # SetConsole = /dev/console
793 ## Activate the SysV IPC message queue
795 # MessageQueueActive = False
798 ## If false, skip reverse lookup when connecting to a host known
799 ## by name rather than IP address (i.e. trust the DNS)
801 # SetReverseLookup = True
805 # Only highest-level (alert) reports will be mailed immediately,
806 # others will be queued. Here you can define, when the queue will
807 # be flushed (Note: the queue is automatically flushed after
808 # completing a file check).
812 ## Maximum number of mails to queue
816 ## Recipient (max. 8)
818 SetMailAddress=samhain-reports@debian.org
820 ## Mail relay (IP address)
823 if not nodeinfo['smarthost'].empty?
825 SetMailRelay = localhost
829 SetMailRelay = master.debian.org
834 ## Custom subject format
836 MailSubject = [Samhain at %H] %T: %S
838 ## --- end E-Mail ---
840 ## Path to the prelink executable
842 # SetPrelinkPath = /usr/sbin/prelink
844 ## TIGER192 checksum of the prelink executable
846 # SetPrelinkChecksum = (no default)
849 ## Path to the executable. If set, will be checksummed after startup
852 # SamhainPath = (no default)
855 ## The IP address of the log server
857 # SetLogServer = (default: compiled-in)
859 ## The IP address of the time server
861 # SetTimeServer = (default: compiled-in)
863 ## Trusted Users (comma delimited list of user names)
865 # TrustedUser = (no default; this adds to the compiled-in list)
867 ## Path to the file signature database
869 # SetDatabasePath = (default: compiled-in)
871 ## Path to the log file
873 # SetLogfilePath = (default: compiled-in)
875 ## Path to the PID file
877 # SetLockPath = (default: compiled-in)
880 ## The digest/checksum/hash algorithm
882 # DigestAlgo = TIGER192
885 ## Custom format for message header.
886 ## CAREFUL if you use XML logfile format.
895 # MessageHeader="%S %T "
898 ## Don't log path to config/database file on startup
902 ## The syslog facility, if you log to syslog
904 # SyslogFacility = LOG_AUTHPRIV
905 SyslogFacility=LOG_LOCAL2
907 ## The message authentication method
908 ## - If you change this, you *must* change it
909 ## on client *and* server
911 # MACType = HMAC-TIGER
914 ## everything below is ignored
917 #####################################################################
918 # This would be the proper syntax for parts that should only be
919 # included for certain hosts.
920 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
921 # result still has the proper syntax for the config file.
922 # You may have any number of @HOSTNAME/@end brackets.
923 # HOSTNAME should be the fully qualified 'official' name
924 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
925 # No IP number - except if samhain cannot determine the
926 # fully qualified hostname.
932 # These are two examples for conditional inclusion/exclusion
933 # of a machine based on the output from 'uname -srm'
942 #####################################################################