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)
70 <% if nodeinfo['buildd'] -%>
71 IgnoreMissing=/etc/lvm/archive/.*.vg
76 ## for these files, only changes in permissions and ownership are checked
79 file=/etc/ssh_random_seed
81 <% case hoster when "ubcece", "darmstadt", "ftcollins", "grnet" then -%>
87 file=/etc/passwd.backup
88 file=/etc/shadow.backup
89 file=/etc/postfix/prng_exch
93 file=/etc/lvm/cache/.cache
94 file=/etc/network/run/ifstate
95 file=/var/state/samhain/samhain_file
96 file=/etc/bind/zones/db.debian.net
98 <% if classes.include?("named::geodns") -%>
100 file=/etc/bind/named.conf.acl
101 file=/etc/bind/named.conf.local
102 file=/etc/bind/geodns/named.conf.geo
103 file=/etc/bind/geodns/recvconf.files
105 <% if classes.include?("named") -%>
106 file=/etc/bind/named.conf.options
110 # There are files in /etc that might change, thus changing the directory
111 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
115 file=/etc/network/run
117 file=/etc/spamassassin/sa-update-keys
119 # These are the directories for the files we handle with puppet
120 file=/etc/apache2/conf.d
121 files=/etc/apache2/mods-enabled
124 file=/etc/munin/plugins
125 file=/etc/munin/plugin-conf.d
129 file=/etc/apt/apt.conf.d
130 file=/etc/apt/sources.list.d
132 file=/etc/logrotate.d
134 file=/etc/nagios/nrpe.d
135 file=/etc/nagios/obsolete-packages-ignore.d
136 file=/etc/bind/geodns
137 <% if nodeinfo['nagiosmaster'] -%>
138 file=/etc/nagios3/puppetconf.d
142 file=/usr/lib/nagios/plugins
145 file=/etc/monit/monit.d
150 file=/etc/ferm/conf.d
156 ## for these files, changes in signature, timestamps, and size are ignored
163 #####################################################################
165 # This would be the proper syntax for parts that should only be
166 # included for certain hosts.
167 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
168 # result still has the proper syntax for the config file.
169 # You may have any number of @HOSTNAME/@end brackets.
170 # HOSTNAME should be the fully qualified 'official' name
171 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
172 # No IP number - except if samhain cannot determine the
173 # fully qualified hostname.
179 # These are two examples for conditional inclusion/exclusion
180 # of a machine based on the output from 'uname -srm'
190 #####################################################################
194 ## for these files, changes in signature, timestamps, and increase in size
198 file=/var/log/messages
200 file=/var/log/faillog
201 file=/var/log/auth.log
202 file=/var/log/daemon.log
203 file=/var/log/user.log
204 file=/var/log/kern.log
210 ## for these files, no modifications are reported
212 ## This file might be created or removed by the system sometimes.
214 <% case hoster when "ubcece", "darmstadt", "ftcollins", "grnet" then -%>
215 file=/etc/resolv.conf
217 file=/etc/resolv.conf.pcmcia.save
219 file=/etc/postfix/debian.db
220 file=/etc/postfix/debian
221 file=/etc/ssh/ssh_known_hosts
222 file=/etc/ssh/ssh-rsa-shadow
223 file=/var/lib/misc/ssh-rsa-shadow
224 file=/etc/.da-backup.trace
225 file=/etc/postfix/debianhosts
226 file=/etc/postfix/debianhosts.db
228 file=/etc/blkid.tab.old
229 file=/etc/resolv.conf.dhclient-new
231 # We handle these files with puppet - please to not be bothering us
235 file=/etc/samhain/samhainrc
236 file=/etc/munin/munin-node.conf
237 file=/etc/munin/plugin-conf.d/munin-node
238 file=/etc/userdir-ldap.confc
239 file=/etc/exim4/blacklist
240 file=/etc/exim4/host_blacklist
241 file=/etc/exim4/callout_users
242 file=/etc/exim4/exim4.conf
243 file=/etc/exim4/grey_users
244 file=/etc/exim4/helo-check
245 file=/etc/exim4/locals
246 file=/etc/exim4/localusers
247 file=/etc/exim4/manualroute
248 file=/etc/exim4/rbllist
249 file=/etc/exim4/rhsbllist
250 file=/etc/exim4/submission-domains
251 file=/etc/exim4/virtualdomains
252 file=/etc/exim4/whitelist
253 file=/etc/exim4/local-settings.conf
254 file=/etc/exim4/ssl/ca.crt
255 file=/etc/exim4/ssl/ca.crl
256 file=/etc/exim4/ssl/thishost.crt
257 file=/etc/exim4/ssl/thishost.key
258 file=/etc/ssh/ssh_config
259 file=/etc/ssh/sshd_config
262 if not nodeinfo['heavy_exim'].empty?
264 file=/etc/exim4/surbl_whitelist.txt
265 file=/etc/exim4/exim_surbl.pl
266 file=/etc/exim4/ccTLD.txt
267 file=/etc/clamav-unofficial-sigs.conf
268 file=/etc/clamav-unofficial-sigs.dsa.conf
273 file=/etc/munin/plugins/bind
274 file=/etc/munin/plugins/bind_views
275 file=/etc/munin/plugins/cpu
276 file=/etc/munin/plugins/df
277 file=/etc/munin/plugins/df_abs
278 file=/etc/munin/plugins/df_inode
279 file=/etc/munin/plugins/entropy
280 file=/etc/munin/plugins/forks
281 file=/etc/munin/plugins/interrupts
282 file=/etc/munin/plugins/iostat
283 file=/etc/munin/plugins/irqstats
284 file=/etc/munin/plugins/load
285 file=/etc/munin/plugins/memory
286 file=/etc/munin/plugins/ntp_offset
287 file=/etc/munin/plugins/ntp_states
288 file=/etc/munin/plugins/open_files
289 file=/etc/munin/plugins/open_inodes
290 file=/etc/munin/plugins/processes
291 file=/etc/munin/plugins/ps_apache2
292 file=/etc/munin/plugins/ps_exim4
293 file=/etc/munin/plugins/ps_vsftpd
294 file=/etc/munin/plugins/spamassassin
295 file=/etc/munin/plugins/swap
296 file=/etc/munin/plugins/uptime
297 file=/etc/munin/plugins/vmstat
298 file=/etc/munin/plugins/vfstpd
299 file=/etc/munin/plugins/apache_accesses
300 file=/etc/munin/plugins/apache_processes
301 file=/etc/munin/plugins/apache_volume
302 file=/etc/munin/plugins/apache_servers
303 file=/etc/munin/plugins/exim_mailqueue
304 file=/etc/munin/plugins/exim_mailstats
305 file=/etc/munin/plugins/postfix_mailqueue
306 file=/etc/munin/plugins/postfix_mailvolume
307 file=/etc/apache2/conf.d/ressource-limits
308 file=/etc/apache2/mods-enabled/info.conf
309 file=/etc/apache2/mods-enabled/info.load
310 file=/etc/apache2/mods-enabled/server.conf
311 file=/etc/apache2/mods-enabled/server.load
312 file=/etc/apache2/conf.d/server-status
313 file=/etc/apache2/conf.d/local-serverinfo
314 file=/etc/apt/preferences
315 file=/etc/apt/sources.list.d/volatile.list
316 file=/etc/apt/sources.list.d/security.list
317 file=/etc/apt/sources.list.d/buildd.list
318 file=/etc/apt/sources.list.d/debian.org.list
319 file=/etc/apt/sources.list.d/debian.restricted.list
320 file=/etc/apt/sources.list.d/debian.list
321 file=/etc/apt/sources.list.d/backports.org.list
322 file=/etc/apt/apt.conf.d/local-recommends
323 file=/etc/apt/apt.conf.d/local-pdiffs
324 file=/etc/puppet/puppet.conf
325 file=/etc/default/puppet
326 file=/etc/default/postgrey
327 file=/etc/logrotate.d/exim4-paniclog
328 file=/etc/logrotate.d/exim4-base
329 file=/etc/logrotate.d/syslog-ng
330 file=/etc/syslog-ng/syslog-ng.conf
331 file=/usr/sbin/dsa-update-apt-status
332 file=/usr/sbin/dsa-update-samhain-status
333 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
334 file=/etc/nagios/nrpe.d/debianorg.cfg
335 file=/etc/nagios/obsolete-packages-ignore
336 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
337 file=/usr/lib/nagios/plugins/dsa-check-packages
338 file=/usr/lib/nagios/plugins/dsa-check-soas
339 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
340 file=/usr/lib/nagios/plugins/dsa-check-samhain
341 file=/usr/lib/nagios/plugins/dsa-check-statusfile
342 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
343 file=/usr/lib/nagios/plugins/dsa-check-config
344 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
345 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
346 file=/usr/lib/nagios/plugins/dsa-check-puppet
347 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
348 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
349 file=/usr/lib/nagios/plugins/dsa-check-dabackup
350 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
351 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
352 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
353 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
354 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
356 file=/etc/sysctl.d/mmap_min_addr.conf
358 file=/etc/monit/monitrc
359 file=/etc/monit/monit.d/01puppet
360 file=/etc/monit/monit.d/00debian.org
361 file=/etc/cron.d/dsa-puppet-stuff
362 file=/etc/cron.d/dsa-buildd
363 <% if nodeinfo['nagiosmaster'] -%>
364 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
365 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
366 file=/etc/nagios3/puppetconf.d/auto-services.cfg
367 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
368 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
369 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
371 <% if nodeinfo['muninmaster'] -%>
372 file=/etc/munin/munin.conf
374 <% if nodeinfo['puppetmaster'] -%>
377 <% if classes.include?('named::geodns') -%>
378 dir=1/etc/bind/geodns
380 <% if classes.include?('named::secondary') -%>
382 file=/etc/bind/named.conf.debian-zones
384 <% if fqdn == "dijkstra.debian.org" -%>
388 <% if nodeinfo['buildd'] -%>
392 file=/etc/ferm/conf.d/me.conf
393 file=/etc/ferm/conf.d/defs.conf
394 file=/etc/ferm/ferm.conf
399 ## for these files, all modifications (even access time) are reported
400 ## - you may create some interesting-looking file (like /etc/safe_passwd),
401 ## just to watch whether someone will access it ...
406 ## Use for prelinked files or directories holding them
412 ## for these files, only access time is ignored
418 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
419 # so we go 3 levels deep
426 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
427 # so we go 3 levels deep there too
431 # Various directories / files that may include / be SUID/SGID binaries
434 file=/usr/lib/pt_chown
435 # X11, in Debian X7 this is now a symlink
437 #dir=/usr/X11R6/lib/X11/xmcd/bin
439 #file=/usr/lib/apache/suexec
440 #file=/usr/lib/apache/suexec.disabled
447 ## User0 and User1 are sections for files/dirs with user-definable checking
453 ## Here you can assign severities to policy violations.
454 ## If this severity exceeds the treshold of a log facility (see below),
455 ## a policy violation will be logged to that facility.
457 ## Severity for verification failures.
459 # SeverityReadOnly=crit
460 # SeverityLogFiles=crit
461 # SeverityGrowingLogs=crit
462 # SeverityIgnoreNone=crit
463 # SeverityAttributes=crit
468 SeverityReadOnly=crit
469 SeverityLogFiles=crit
470 SeverityGrowingLogs=warn
471 SeverityIgnoreNone=crit
472 SeverityAttributes=crit
476 ## We have a file in IgnoreAll that might or might not be present.
477 ## Setting the severity to 'info' prevents messages about deleted/new file.
479 # SeverityIgnoreAll=crit
480 SeverityIgnoreAll=info
482 ## Files : file access problems
485 ## Dirs : directory access problems
488 ## Names : suspect (non-printable) characters in a pathname
499 ## Switch on/OFF log facilities and set their threshold severity
501 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
502 ## 'mark' is used for timestamps.
505 ## Use 'none' to SWITCH OFF a log facility
507 ## By default, everything equal to and above the threshold is logged.
508 ## The specifiers '*', '!', and '=' are interpreted as
509 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
510 ## at least on Linux). Examples:
512 ## MailSeverity=!warn
513 ## MailSeverity==crit
529 # SyslogSeverity=none
531 ## Remote server (yule)
533 # ExportSeverity=none
535 ## External script or program
537 # ExternalSeverity = none
539 ## Logging to a database
541 # DatabaseSeverity = none
554 #####################################################
558 #####################################################
562 ## --- Check the filesystem for SUID/SGID binaries
567 # SuidCheckActive = yes
569 ## Interval for check (seconds)
571 # SuidCheckInterval = 7200
573 ## Alternative: crontab-like schedule
575 # SuidCheckSchedule = NULL
577 ## Directory to exclude
579 # SuidCheckExclude = NULL
581 ## Limit on files per second (0 == no limit)
585 ## Alternative: yield after every file
587 # SuidCheckYield = no
589 ## Severity of a detection
591 # SeveritySuidCheck = crit
593 ## Quarantine SUID/SGID files if found
595 # SuidCheckQuarantineFiles = yes
597 ## Method for Quarantining files:
598 # 0 - Delete or truncate the file.
599 # 1 - Remove SUID/SGID permissions from file.
600 # 2 - Move SUID/SGID file to quarantine dir.
602 # SuidCheckQuarantineMethod = 0
604 ## For method 1 and 3, really delete instead of truncating
606 # SuidCheckQuarantineDelete = yes
610 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
615 #KernelCheckActive = True
617 ## Check interval (seconds); btw., the check is VERY fast
619 # KernelCheckInterval = 300
623 # SeverityKernel = crit
628 ## --- Logging of login/logout events
633 # LoginCheckActive = True
635 ## Severity for logins, multiple logins, logouts
638 # SeverityLoginMulti=warn
639 # SeverityLogout=info
641 ## Interval for login/logout checks
643 # LoginCheckInterval = 300
648 ## --- Logging to a relational database
653 # SetDBName = samhain
661 # SetDBUser = samhain
665 # SetDBPassword = (default: none)
669 # SetDBHost = localhost
671 ## Log the server timestamp for received messages
673 # SetDBServerTstamp = True
675 ## Use a persistent connection
677 # UsePersistent = True
681 ## Interface to call external scripts/programs for logging
684 ## The absolute path to the command
685 ## - Each invocation of this directive will end the definition of the
686 ## preceding command, and start the definition of
687 ## an additional, new command
689 # OpenCommand = (no default)
692 ## - log for log messages, srv for messages received by the server
696 ## The command (full command line) to execute
698 # SetCommandLine = (no default)
700 ## The environment (KEY=value; repeat for more)
702 # SetEnviron = TZ=(your timezone)
704 ## The TIGER192 checksum (optional)
706 # SetChecksum = (no default)
708 ## User who runs the command
710 # SetCredentials = (default: samhain process uid)
712 ## Words not allowed in message
714 # SetFilterNot = (none)
716 ## Words required (ALL of them)
718 # SetFilterAnd = (none)
720 ## Words required (at least one)
722 # SetFilterOr = (none)
724 ## Deadtime between consecutive calls
728 ## Add default environment (HOME, PATH, SHELL)
733 #####################################################
735 # Miscellaneous configuration options
737 #####################################################
741 ## whether to become a daemon process
742 ## (this is not honoured on database initialisation)
747 ## whether to test signature of files (init/check/none)
748 ## - if 'none', then we have to decide this on the command line -
750 # ChecksumTest = none
753 ## whether to drop linux capabilities that are not required
754 ## - will make a root process a 'mere mortal' in many respects
758 ## Set nice level (-19 to 19, see 'man nice'),
759 ## and I/O limit (kilobytes per second; 0 == off)
760 ## to reduce load on host.
765 ## The version string to embed in file signature databases
767 # VersionString = NULL
769 ## Interval between time stamp messages
774 ## Interval between file checks
776 # SetFileCheckTime = 600
777 SetFileCheckTime = 7200
779 ## Alternative: crontab-like schedule
781 # FileCheckScheduleOne = NULL
783 ## Alternative: crontab-like schedule(2)
785 # FileCheckScheduleTwo = NULL
787 ## Report only once on modified fles
788 ## Setting this to 'FALSE' will generate a report for any policy
789 ## violation (old and new ones) each time the daemon checks the file system.
791 # ReportOnlyOnce = True
793 ## Report in full detail
795 # ReportFullDetail = False
797 ## Report file timestamps in local time rather than GMT
801 ## The console device (can also be a file or named pipe)
802 ## - There are two console devices. Accordingly, you can use
803 ## this directive a second time to set the second console device.
804 ## If you have not defined the second device at compile time,
805 ## and you don't want to use it, then:
806 ## setting it to /dev/null is less effective than just leaving
807 ## it alone (setting to /dev/null will waste time by opening
808 ## /dev/null and writing to it)
810 # SetConsole = /dev/console
812 ## Activate the SysV IPC message queue
814 # MessageQueueActive = False
817 ## If false, skip reverse lookup when connecting to a host known
818 ## by name rather than IP address (i.e. trust the DNS)
820 # SetReverseLookup = True
824 # Only highest-level (alert) reports will be mailed immediately,
825 # others will be queued. Here you can define, when the queue will
826 # be flushed (Note: the queue is automatically flushed after
827 # completing a file check).
831 ## Maximum number of mails to queue
835 ## Recipient (max. 8)
837 SetMailAddress=samhain-reports@debian.org
839 ## Mail relay (IP address)
840 <% if nodeinfo['smarthost'].empty? -%>
841 SetMailRelay = master.debian.org
843 SetMailRelay = localhost
846 ## Custom subject format
848 MailSubject = [Samhain at %H] %T: %S
850 ## --- end E-Mail ---
852 ## Path to the prelink executable
854 # SetPrelinkPath = /usr/sbin/prelink
856 ## TIGER192 checksum of the prelink executable
858 # SetPrelinkChecksum = (no default)
861 ## Path to the executable. If set, will be checksummed after startup
864 # SamhainPath = (no default)
867 ## The IP address of the log server
869 # SetLogServer = (default: compiled-in)
871 ## The IP address of the time server
873 # SetTimeServer = (default: compiled-in)
875 ## Trusted Users (comma delimited list of user names)
877 # TrustedUser = (no default; this adds to the compiled-in list)
879 ## Path to the file signature database
881 # SetDatabasePath = (default: compiled-in)
883 ## Path to the log file
885 # SetLogfilePath = (default: compiled-in)
887 ## Path to the PID file
889 # SetLockPath = (default: compiled-in)
892 ## The digest/checksum/hash algorithm
894 # DigestAlgo = TIGER192
897 ## Custom format for message header.
898 ## CAREFUL if you use XML logfile format.
907 # MessageHeader="%S %T "
910 ## Don't log path to config/database file on startup
914 ## The syslog facility, if you log to syslog
916 # SyslogFacility = LOG_AUTHPRIV
917 SyslogFacility=LOG_LOCAL2
919 ## The message authentication method
920 ## - If you change this, you *must* change it
921 ## on client *and* server
923 # MACType = HMAC-TIGER
926 ## everything below is ignored
929 #####################################################################
930 # This would be the proper syntax for parts that should only be
931 # included for certain hosts.
932 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
933 # result still has the proper syntax for the config file.
934 # You may have any number of @HOSTNAME/@end brackets.
935 # HOSTNAME should be the fully qualified 'official' name
936 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
937 # No IP number - except if samhain cannot determine the
938 # fully qualified hostname.
944 # These are two examples for conditional inclusion/exclusion
945 # of a machine based on the output from 'uname -srm'
954 #####################################################################