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 scope.lookupvar('site::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
83 file=/etc/passwd.backup
84 file=/etc/shadow.backup
85 file=/etc/postfix/prng_exch
89 file=/etc/lvm/cache/.cache
90 file=/etc/network/run/ifstate
91 file=/var/state/samhain/samhain_file
92 file=/etc/bind/zones/db.debian.net
94 file=/etc/fake-hwclock.data
95 <% if classes.include?("named::geodns") -%>
97 file=/etc/bind/named.conf.acl
98 file=/etc/bind/named.conf.local
99 file=/etc/bind/geodns/named.conf.geo
100 file=/etc/bind/geodns/recvconf.files
102 <% if classes.include?("named") -%>
103 file=/etc/bind/named.conf.options
105 file=/etc/apache2/conf.d/puppet-builddlist
108 # There are files in /etc that might change, thus changing the directory
109 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
113 file=/etc/network/run
115 file=/etc/spamassassin/sa-update-keys
117 # These are the directories for the files we handle with puppet
118 file=/etc/apache2/conf.d
119 files=/etc/apache2/mods-enabled
122 file=/etc/munin/plugins
123 file=/etc/munin/plugin-conf.d
127 file=/etc/apt/apt.conf.d
128 file=/etc/apt/sources.list.d
129 file=/etc/apt/preferences.d
131 file=/etc/logrotate.d
133 file=/etc/nagios/nrpe.d
134 file=/etc/nagios/obsolete-packages-ignore.d
135 file=/etc/bind/geodns
136 <% if scope.lookupvar('site::nodeinfo')['nagiosmaster'] -%>
137 file=/etc/nagios3/puppetconf.d
141 file=/usr/lib/nagios/plugins
144 file=/etc/monit/monit.d
150 file=/etc/ferm/conf.d
153 <% unless scope.lookupvar('::lsbdistcodename') == 'lenny' %>
160 ## for these files, changes in signature, timestamps, and size are ignored
164 # is on tmpfs, ignore.
168 #####################################################################
170 # This would be the proper syntax for parts that should only be
171 # included for certain hosts.
172 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
173 # result still has the proper syntax for the config file.
174 # You may have any number of @HOSTNAME/@end brackets.
175 # HOSTNAME should be the fully qualified 'official' name
176 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
177 # No IP number - except if samhain cannot determine the
178 # fully qualified hostname.
184 # These are two examples for conditional inclusion/exclusion
185 # of a machine based on the output from 'uname -srm'
195 #####################################################################
199 ## for these files, changes in signature, timestamps, and increase in size
203 file=/var/log/messages
205 file=/var/log/faillog
206 file=/var/log/auth.log
207 file=/var/log/daemon.log
208 file=/var/log/user.log
209 file=/var/log/kern.log
215 ## for these files, no modifications are reported
217 ## This file might be created or removed by the system sometimes.
219 file=/etc/resolv.conf
220 <% if scope.lookupvar('site::nodeinfo')['buildd'] -%>
221 file=/etc/dupload.conf
223 file=/etc/resolv.conf.pcmcia.save
225 file=/etc/postfix/debian.db
226 file=/etc/postfix/debian
227 file=/etc/ssh/ssh_known_hosts
228 file=/etc/ssh/ssh-rsa-shadow
229 file=/var/lib/misc/ssh-rsa-shadow
230 file=/etc/.da-backup.trace
231 file=/etc/postfix/debianhosts
232 file=/etc/postfix/debianhosts.db
234 file=/etc/blkid.tab.old
235 file=/etc/resolv.conf.dhclient-new
237 # We handle these files with puppet - please to not be bothering us
241 file=/etc/samhain/samhainrc
242 file=/etc/munin/munin-node.conf
243 file=/etc/munin/plugin-conf.d/munin-node
244 file=/etc/userdir-ldap.confc
245 file=/etc/exim4/blacklist
246 file=/etc/exim4/host_blacklist
247 file=/etc/exim4/callout_users
248 file=/etc/exim4/exim4.conf
249 file=/etc/exim4/grey_users
250 file=/etc/exim4/helo-check
251 file=/etc/exim4/locals
252 file=/etc/exim4/localusers
253 file=/etc/exim4/manualroute
254 file=/etc/exim4/rbllist
255 file=/etc/exim4/rhsbllist
256 file=/etc/exim4/submission-domains
257 file=/etc/exim4/virtualdomains
258 file=/etc/exim4/whitelist
259 file=/etc/exim4/local-settings.conf
260 file=/etc/exim4/ssl/ca.crt
261 file=/etc/exim4/ssl/ca.crl
262 file=/etc/exim4/ssl/thishost.crt
263 file=/etc/exim4/ssl/thishost.key
264 file=/etc/ssh/ssh_config
265 file=/etc/ssh/sshd_config
266 file=/etc/dsa/cron.ignore.dsa-puppet-stuff
269 if scope.lookupvar('site::nodeinfo')['heavy_exim']
271 file=/etc/exim4/surbl_whitelist.txt
272 file=/etc/exim4/exim_surbl.pl
273 file=/etc/exim4/ccTLD.txt
274 file=/etc/clamav-unofficial-sigs.conf
275 file=/etc/clamav-unofficial-sigs.dsa.conf
280 file=/etc/munin/plugins/bind
281 file=/etc/munin/plugins/bind_views
282 file=/etc/munin/plugins/cpu
283 file=/etc/munin/plugins/df
284 file=/etc/munin/plugins/df_abs
285 file=/etc/munin/plugins/df_inode
286 file=/etc/munin/plugins/entropy
287 file=/etc/munin/plugins/forks
288 file=/etc/munin/plugins/interrupts
289 file=/etc/munin/plugins/iostat
290 file=/etc/munin/plugins/irqstats
291 file=/etc/munin/plugins/load
292 file=/etc/munin/plugins/memory
293 file=/etc/munin/plugins/ntp_offset
294 file=/etc/munin/plugins/ntp_states
295 file=/etc/munin/plugins/open_files
296 file=/etc/munin/plugins/open_inodes
297 file=/etc/munin/plugins/processes
298 file=/etc/munin/plugins/ps_apache2
299 file=/etc/munin/plugins/ps_exim4
300 file=/etc/munin/plugins/ps_vsftpd
301 file=/etc/munin/plugins/spamassassin
302 file=/etc/munin/plugins/swap
303 file=/etc/munin/plugins/uptime
304 file=/etc/munin/plugins/vmstat
305 file=/etc/munin/plugins/vfstpd
306 file=/etc/munin/plugins/apache_accesses
307 file=/etc/munin/plugins/apache_processes
308 file=/etc/munin/plugins/apache_volume
309 file=/etc/munin/plugins/apache_servers
310 file=/etc/munin/plugins/exim_mailqueue
311 file=/etc/munin/plugins/exim_mailstats
312 file=/etc/munin/plugins/postfix_mailqueue
313 file=/etc/munin/plugins/postfix_mailvolume
314 file=/etc/apache2/conf.d/ressource-limits
315 file=/etc/apache2/mods-enabled/info.conf
316 file=/etc/apache2/mods-enabled/info.load
317 file=/etc/apache2/mods-enabled/server.conf
318 file=/etc/apache2/mods-enabled/server.load
319 file=/etc/apache2/conf.d/server-status
320 file=/etc/apache2/conf.d/local-serverinfo
321 file=/etc/apache2/sites-available/www.debian.org
322 file=/etc/apt/preferences
323 file=/etc/apt/sources.list.d/volatile.list
324 file=/etc/apt/sources.list.d/security.list
325 file=/etc/apt/sources.list.d/buildd.list
326 file=/etc/apt/sources.list.d/debian.org.list
327 file=/etc/apt/sources.list.d/debian.restricted.list
328 file=/etc/apt/sources.list.d/debian.list
329 file=/etc/apt/sources.list.d/backports.org.list
330 file=/etc/apt/apt.conf.d/local-compression
331 file=/etc/apt/apt.conf.d/local-recommends
332 file=/etc/apt/apt.conf.d/local-pdiffs
333 file=/etc/apt/preferences.d/buildd
334 file=/etc/puppet/puppet.conf
335 file=/etc/default/puppet
336 file=/etc/default/postgrey
337 file=/etc/default/schroot
338 file=/etc/default/syslog-ng
339 file=/etc/logrotate.d/exim4-paniclog
340 file=/etc/logrotate.d/exim4-base
341 file=/etc/logrotate.d/syslog-ng
342 file=/etc/syslog-ng/syslog-ng.conf
343 file=/usr/sbin/dsa-update-apt-status
344 file=/usr/sbin/dsa-update-samhain-status
345 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
346 file=/etc/nagios/nrpe.d/debianorg.cfg
347 file=/etc/nagios/obsolete-packages-ignore
348 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
349 file=/usr/lib/nagios/plugins/dsa-check-packages
350 file=/usr/lib/nagios/plugins/dsa-check-soas
351 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
352 file=/usr/lib/nagios/plugins/dsa-check-samhain
353 file=/usr/lib/nagios/plugins/dsa-check-statusfile
354 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
355 file=/usr/lib/nagios/plugins/dsa-check-config
356 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
357 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
358 file=/usr/lib/nagios/plugins/dsa-check-puppet
359 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
360 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
361 file=/usr/lib/nagios/plugins/dsa-check-dabackup
362 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
363 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
364 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
365 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
366 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
368 file=/etc/stunnel/puppet-ekeyd-peer.pem
369 file=/etc/sysctl.d/mmap_min_addr.conf
371 file=/etc/monit/monitrc
372 file=/etc/monit/monit.d/01puppet
373 file=/etc/monit/monit.d/00debian.org
374 file=/etc/cron.d/dsa-puppet-stuff
375 file=/etc/cron.d/dsa-buildd
376 <% if scope.lookupvar('site::nodeinfo')['nagiosmaster'] -%>
377 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
378 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
379 file=/etc/nagios3/puppetconf.d/auto-services.cfg
380 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
381 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
382 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
383 file=/etc/nagios3/puppetconf.d/auto-servicegroups.cfg
384 file=/etc/nagios3/puppetconf.d/contacts.cfg
386 <% if scope.lookupvar('site::nodeinfo')['muninmaster'] -%>
387 file=/etc/munin/munin.conf
389 <% if scope.lookupvar('site::nodeinfo')['puppetmaster'] -%>
392 <% if classes.include?('named::geodns') -%>
393 dir=1/etc/bind/geodns
395 <% if classes.include?('named::authoritative') -%>
397 file=/etc/bind/named.conf.debian-zones
399 <% if scope.lookupvar('::fqdn') == "dijkstra.debian.org" -%>
402 <% if scope.lookupvar('site::nodeinfo')['buildd'] -%>
406 file=/etc/ferm/conf.d/me.conf
407 file=/etc/ferm/conf.d/defs.conf
408 file=/etc/ferm/ferm.conf
410 <% unless scope.lookupvar('::lsbdistcodename') == 'lenny' %>
411 file=/etc/unbound/unbound.conf
416 ## for these files, all modifications (even access time) are reported
417 ## - you may create some interesting-looking file (like /etc/safe_passwd),
418 ## just to watch whether someone will access it ...
423 ## Use for prelinked files or directories holding them
429 ## for these files, only access time is ignored
435 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
436 # so we go 3 levels deep
444 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
445 # so we go 3 levels deep there too
449 # Various directories / files that may include / be SUID/SGID binaries
452 file=/usr/lib/pt_chown
453 # X11, in Debian X7 this is now a symlink
455 #dir=/usr/X11R6/lib/X11/xmcd/bin
457 #file=/usr/lib/apache/suexec
458 #file=/usr/lib/apache/suexec.disabled
465 ## User0 and User1 are sections for files/dirs with user-definable checking
471 ## Here you can assign severities to policy violations.
472 ## If this severity exceeds the treshold of a log facility (see below),
473 ## a policy violation will be logged to that facility.
475 ## Severity for verification failures.
477 # SeverityReadOnly=crit
478 # SeverityLogFiles=crit
479 # SeverityGrowingLogs=crit
480 # SeverityIgnoreNone=crit
481 # SeverityAttributes=crit
486 SeverityReadOnly=crit
487 SeverityLogFiles=crit
488 SeverityGrowingLogs=warn
489 SeverityIgnoreNone=crit
490 SeverityAttributes=crit
494 ## We have a file in IgnoreAll that might or might not be present.
495 ## Setting the severity to 'info' prevents messages about deleted/new file.
497 # SeverityIgnoreAll=crit
498 SeverityIgnoreAll=info
500 ## Files : file access problems
503 ## Dirs : directory access problems
506 ## Names : suspect (non-printable) characters in a pathname
517 ## Switch on/OFF log facilities and set their threshold severity
519 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
520 ## 'mark' is used for timestamps.
523 ## Use 'none' to SWITCH OFF a log facility
525 ## By default, everything equal to and above the threshold is logged.
526 ## The specifiers '*', '!', and '=' are interpreted as
527 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
528 ## at least on Linux). Examples:
530 ## MailSeverity=!warn
531 ## MailSeverity==crit
547 # SyslogSeverity=none
549 ## Remote server (yule)
551 # ExportSeverity=none
553 ## External script or program
555 # ExternalSeverity = none
557 ## Logging to a database
559 # DatabaseSeverity = none
572 #####################################################
576 #####################################################
580 ## --- Check the filesystem for SUID/SGID binaries
585 # SuidCheckActive = yes
587 ## Interval for check (seconds)
589 # SuidCheckInterval = 7200
591 ## Alternative: crontab-like schedule
593 # SuidCheckSchedule = NULL
595 ## Directory to exclude
597 # SuidCheckExclude = NULL
599 ## Limit on files per second (0 == no limit)
603 ## Alternative: yield after every file
605 # SuidCheckYield = no
607 ## Severity of a detection
609 # SeveritySuidCheck = crit
611 ## Quarantine SUID/SGID files if found
613 # SuidCheckQuarantineFiles = yes
615 ## Method for Quarantining files:
616 # 0 - Delete or truncate the file.
617 # 1 - Remove SUID/SGID permissions from file.
618 # 2 - Move SUID/SGID file to quarantine dir.
620 # SuidCheckQuarantineMethod = 0
622 ## For method 1 and 3, really delete instead of truncating
624 # SuidCheckQuarantineDelete = yes
628 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
633 #KernelCheckActive = True
635 ## Check interval (seconds); btw., the check is VERY fast
637 # KernelCheckInterval = 300
641 # SeverityKernel = crit
646 ## --- Logging of login/logout events
651 # LoginCheckActive = True
653 ## Severity for logins, multiple logins, logouts
656 # SeverityLoginMulti=warn
657 # SeverityLogout=info
659 ## Interval for login/logout checks
661 # LoginCheckInterval = 300
666 ## --- Logging to a relational database
671 # SetDBName = samhain
679 # SetDBUser = samhain
683 # SetDBPassword = (default: none)
687 # SetDBHost = localhost
689 ## Log the server timestamp for received messages
691 # SetDBServerTstamp = True
693 ## Use a persistent connection
695 # UsePersistent = True
699 ## Interface to call external scripts/programs for logging
702 ## The absolute path to the command
703 ## - Each invocation of this directive will end the definition of the
704 ## preceding command, and start the definition of
705 ## an additional, new command
707 # OpenCommand = (no default)
710 ## - log for log messages, srv for messages received by the server
714 ## The command (full command line) to execute
716 # SetCommandLine = (no default)
718 ## The environment (KEY=value; repeat for more)
720 # SetEnviron = TZ=(your timezone)
722 ## The TIGER192 checksum (optional)
724 # SetChecksum = (no default)
726 ## User who runs the command
728 # SetCredentials = (default: samhain process uid)
730 ## Words not allowed in message
732 # SetFilterNot = (none)
734 ## Words required (ALL of them)
736 # SetFilterAnd = (none)
738 ## Words required (at least one)
740 # SetFilterOr = (none)
742 ## Deadtime between consecutive calls
746 ## Add default environment (HOME, PATH, SHELL)
751 #####################################################
753 # Miscellaneous configuration options
755 #####################################################
759 ## whether to become a daemon process
760 ## (this is not honoured on database initialisation)
765 ## whether to test signature of files (init/check/none)
766 ## - if 'none', then we have to decide this on the command line -
768 # ChecksumTest = none
771 ## whether to drop linux capabilities that are not required
772 ## - will make a root process a 'mere mortal' in many respects
776 ## Set nice level (-19 to 19, see 'man nice'),
777 ## and I/O limit (kilobytes per second; 0 == off)
778 ## to reduce load on host.
783 ## The version string to embed in file signature databases
785 # VersionString = NULL
787 ## Interval between time stamp messages
792 ## Interval between file checks
794 # SetFileCheckTime = 600
795 SetFileCheckTime = 7200
797 ## Alternative: crontab-like schedule
799 # FileCheckScheduleOne = NULL
801 ## Alternative: crontab-like schedule(2)
803 # FileCheckScheduleTwo = NULL
805 ## Report only once on modified fles
806 ## Setting this to 'FALSE' will generate a report for any policy
807 ## violation (old and new ones) each time the daemon checks the file system.
809 # ReportOnlyOnce = True
811 ## Report in full detail
813 # ReportFullDetail = False
815 ## Report file timestamps in local time rather than GMT
819 ## The console device (can also be a file or named pipe)
820 ## - There are two console devices. Accordingly, you can use
821 ## this directive a second time to set the second console device.
822 ## If you have not defined the second device at compile time,
823 ## and you don't want to use it, then:
824 ## setting it to /dev/null is less effective than just leaving
825 ## it alone (setting to /dev/null will waste time by opening
826 ## /dev/null and writing to it)
828 # SetConsole = /dev/console
830 ## Activate the SysV IPC message queue
832 # MessageQueueActive = False
835 ## If false, skip reverse lookup when connecting to a host known
836 ## by name rather than IP address (i.e. trust the DNS)
838 # SetReverseLookup = True
842 # Only highest-level (alert) reports will be mailed immediately,
843 # others will be queued. Here you can define, when the queue will
844 # be flushed (Note: the queue is automatically flushed after
845 # completing a file check).
849 ## Maximum number of mails to queue
853 ## Recipient (max. 8)
855 SetMailAddress=samhain-reports@<%= fqdn -%>
857 SetMailRelay = localhost
859 ## Custom subject format
861 MailSubject = [Samhain at %H] %T: %S
863 ## --- end E-Mail ---
865 ## Path to the prelink executable
867 # SetPrelinkPath = /usr/sbin/prelink
869 ## TIGER192 checksum of the prelink executable
871 # SetPrelinkChecksum = (no default)
874 ## Path to the executable. If set, will be checksummed after startup
877 # SamhainPath = (no default)
880 ## The IP address of the log server
882 # SetLogServer = (default: compiled-in)
884 ## The IP address of the time server
886 # SetTimeServer = (default: compiled-in)
888 ## Trusted Users (comma delimited list of user names)
890 # TrustedUser = (no default; this adds to the compiled-in list)
892 ## Path to the file signature database
894 # SetDatabasePath = (default: compiled-in)
896 ## Path to the log file
898 # SetLogfilePath = (default: compiled-in)
900 ## Path to the PID file
902 # SetLockPath = (default: compiled-in)
905 ## The digest/checksum/hash algorithm
907 # DigestAlgo = TIGER192
910 ## Custom format for message header.
911 ## CAREFUL if you use XML logfile format.
920 # MessageHeader="%S %T "
923 ## Don't log path to config/database file on startup
927 ## The syslog facility, if you log to syslog
929 # SyslogFacility = LOG_AUTHPRIV
930 SyslogFacility=LOG_LOCAL2
932 ## The message authentication method
933 ## - If you change this, you *must* change it
934 ## on client *and* server
936 # MACType = HMAC-TIGER
939 ## everything below is ignored
942 #####################################################################
943 # This would be the proper syntax for parts that should only be
944 # included for certain hosts.
945 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
946 # result still has the proper syntax for the config file.
947 # You may have any number of @HOSTNAME/@end brackets.
948 # HOSTNAME should be the fully qualified 'official' name
949 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
950 # No IP number - except if samhain cannot determine the
951 # fully qualified hostname.
957 # These are two examples for conditional inclusion/exclusion
958 # of a machine based on the output from 'uname -srm'
967 #####################################################################