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
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 <% if classes.include?("named::geodns") -%>
96 file=/etc/bind/named.conf.acl
97 file=/etc/bind/named.conf.local
98 file=/etc/bind/geodns/named.conf.geo
99 file=/etc/bind/geodns/recvconf.files
101 <% if classes.include?("named") -%>
102 file=/etc/bind/named.conf.options
104 file=/etc/apache2/conf.d/puppet-builddlist
107 # There are files in /etc that might change, thus changing the directory
108 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
112 file=/etc/network/run
114 file=/etc/spamassassin/sa-update-keys
116 # These are the directories for the files we handle with puppet
117 file=/etc/apache2/conf.d
118 files=/etc/apache2/mods-enabled
121 file=/etc/munin/plugins
122 file=/etc/munin/plugin-conf.d
126 file=/etc/apt/apt.conf.d
127 file=/etc/apt/sources.list.d
129 file=/etc/logrotate.d
131 file=/etc/nagios/nrpe.d
132 file=/etc/nagios/obsolete-packages-ignore.d
133 file=/etc/bind/geodns
134 <% if nodeinfo['nagiosmaster'] -%>
135 file=/etc/nagios3/puppetconf.d
139 file=/usr/lib/nagios/plugins
142 file=/etc/monit/monit.d
147 file=/etc/ferm/conf.d
150 <% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %>
157 ## for these files, changes in signature, timestamps, and size are ignored
164 #####################################################################
166 # This would be the proper syntax for parts that should only be
167 # included for certain hosts.
168 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
169 # result still has the proper syntax for the config file.
170 # You may have any number of @HOSTNAME/@end brackets.
171 # HOSTNAME should be the fully qualified 'official' name
172 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
173 # No IP number - except if samhain cannot determine the
174 # fully qualified hostname.
180 # These are two examples for conditional inclusion/exclusion
181 # of a machine based on the output from 'uname -srm'
191 #####################################################################
195 ## for these files, changes in signature, timestamps, and increase in size
199 file=/var/log/messages
201 file=/var/log/faillog
202 file=/var/log/auth.log
203 file=/var/log/daemon.log
204 file=/var/log/user.log
205 file=/var/log/kern.log
211 ## for these files, no modifications are reported
213 ## This file might be created or removed by the system sometimes.
215 file=/etc/resolv.conf
216 <% if nodeinfo['buildd'] -%>
217 file=/etc/dupload.conf
219 file=/etc/resolv.conf.pcmcia.save
221 file=/etc/postfix/debian.db
222 file=/etc/postfix/debian
223 file=/etc/ssh/ssh_known_hosts
224 file=/etc/ssh/ssh-rsa-shadow
225 file=/var/lib/misc/ssh-rsa-shadow
226 file=/etc/.da-backup.trace
227 file=/etc/postfix/debianhosts
228 file=/etc/postfix/debianhosts.db
230 file=/etc/blkid.tab.old
231 file=/etc/resolv.conf.dhclient-new
233 # We handle these files with puppet - please to not be bothering us
237 file=/etc/samhain/samhainrc
238 file=/etc/munin/munin-node.conf
239 file=/etc/munin/plugin-conf.d/munin-node
240 file=/etc/userdir-ldap.confc
241 file=/etc/exim4/blacklist
242 file=/etc/exim4/host_blacklist
243 file=/etc/exim4/callout_users
244 file=/etc/exim4/exim4.conf
245 file=/etc/exim4/grey_users
246 file=/etc/exim4/helo-check
247 file=/etc/exim4/locals
248 file=/etc/exim4/localusers
249 file=/etc/exim4/manualroute
250 file=/etc/exim4/rbllist
251 file=/etc/exim4/rhsbllist
252 file=/etc/exim4/submission-domains
253 file=/etc/exim4/virtualdomains
254 file=/etc/exim4/whitelist
255 file=/etc/exim4/local-settings.conf
256 file=/etc/exim4/ssl/ca.crt
257 file=/etc/exim4/ssl/ca.crl
258 file=/etc/exim4/ssl/thishost.crt
259 file=/etc/exim4/ssl/thishost.key
260 file=/etc/ssh/ssh_config
261 file=/etc/ssh/sshd_config
262 file=/etc/dsa/cron.ignore.dsa-puppet-stuff
265 if nodeinfo['heavy_exim']
267 file=/etc/exim4/surbl_whitelist.txt
268 file=/etc/exim4/exim_surbl.pl
269 file=/etc/exim4/ccTLD.txt
270 file=/etc/clamav-unofficial-sigs.conf
271 file=/etc/clamav-unofficial-sigs.dsa.conf
276 file=/etc/munin/plugins/bind
277 file=/etc/munin/plugins/bind_views
278 file=/etc/munin/plugins/cpu
279 file=/etc/munin/plugins/df
280 file=/etc/munin/plugins/df_abs
281 file=/etc/munin/plugins/df_inode
282 file=/etc/munin/plugins/entropy
283 file=/etc/munin/plugins/forks
284 file=/etc/munin/plugins/interrupts
285 file=/etc/munin/plugins/iostat
286 file=/etc/munin/plugins/irqstats
287 file=/etc/munin/plugins/load
288 file=/etc/munin/plugins/memory
289 file=/etc/munin/plugins/ntp_offset
290 file=/etc/munin/plugins/ntp_states
291 file=/etc/munin/plugins/open_files
292 file=/etc/munin/plugins/open_inodes
293 file=/etc/munin/plugins/processes
294 file=/etc/munin/plugins/ps_apache2
295 file=/etc/munin/plugins/ps_exim4
296 file=/etc/munin/plugins/ps_vsftpd
297 file=/etc/munin/plugins/spamassassin
298 file=/etc/munin/plugins/swap
299 file=/etc/munin/plugins/uptime
300 file=/etc/munin/plugins/vmstat
301 file=/etc/munin/plugins/vfstpd
302 file=/etc/munin/plugins/apache_accesses
303 file=/etc/munin/plugins/apache_processes
304 file=/etc/munin/plugins/apache_volume
305 file=/etc/munin/plugins/apache_servers
306 file=/etc/munin/plugins/exim_mailqueue
307 file=/etc/munin/plugins/exim_mailstats
308 file=/etc/munin/plugins/postfix_mailqueue
309 file=/etc/munin/plugins/postfix_mailvolume
310 file=/etc/apache2/conf.d/ressource-limits
311 file=/etc/apache2/mods-enabled/info.conf
312 file=/etc/apache2/mods-enabled/info.load
313 file=/etc/apache2/mods-enabled/server.conf
314 file=/etc/apache2/mods-enabled/server.load
315 file=/etc/apache2/conf.d/server-status
316 file=/etc/apache2/conf.d/local-serverinfo
317 file=/etc/apache2/sites-available/www.debian.org
318 file=/etc/apt/preferences
319 file=/etc/apt/sources.list.d/volatile.list
320 file=/etc/apt/sources.list.d/security.list
321 file=/etc/apt/sources.list.d/buildd.list
322 file=/etc/apt/sources.list.d/debian.org.list
323 file=/etc/apt/sources.list.d/debian.restricted.list
324 file=/etc/apt/sources.list.d/debian.list
325 file=/etc/apt/sources.list.d/backports.org.list
326 file=/etc/apt/apt.conf.d/local-recommends
327 file=/etc/apt/apt.conf.d/local-pdiffs
328 file=/etc/puppet/puppet.conf
329 file=/etc/default/puppet
330 file=/etc/default/postgrey
331 file=/etc/default/syslog-ng
332 file=/etc/logrotate.d/exim4-paniclog
333 file=/etc/logrotate.d/exim4-base
334 file=/etc/logrotate.d/syslog-ng
335 file=/etc/syslog-ng/syslog-ng.conf
336 file=/usr/sbin/dsa-update-apt-status
337 file=/usr/sbin/dsa-update-samhain-status
338 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
339 file=/etc/nagios/nrpe.d/debianorg.cfg
340 file=/etc/nagios/obsolete-packages-ignore
341 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
342 file=/usr/lib/nagios/plugins/dsa-check-packages
343 file=/usr/lib/nagios/plugins/dsa-check-soas
344 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
345 file=/usr/lib/nagios/plugins/dsa-check-samhain
346 file=/usr/lib/nagios/plugins/dsa-check-statusfile
347 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
348 file=/usr/lib/nagios/plugins/dsa-check-config
349 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
350 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
351 file=/usr/lib/nagios/plugins/dsa-check-puppet
352 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
353 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
354 file=/usr/lib/nagios/plugins/dsa-check-dabackup
355 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
356 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
357 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
358 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
359 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
361 file=/etc/sysctl.d/mmap_min_addr.conf
363 file=/etc/monit/monitrc
364 file=/etc/monit/monit.d/01puppet
365 file=/etc/monit/monit.d/00debian.org
366 file=/etc/cron.d/dsa-puppet-stuff
367 file=/etc/cron.d/dsa-buildd
368 <% if nodeinfo['nagiosmaster'] -%>
369 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
370 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
371 file=/etc/nagios3/puppetconf.d/auto-services.cfg
372 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
373 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
374 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
375 file=/etc/nagios3/puppetconf.d/auto-servicegroups.cfg
377 <% if nodeinfo['muninmaster'] -%>
378 file=/etc/munin/munin.conf
380 <% if nodeinfo['puppetmaster'] -%>
383 <% if classes.include?('named::geodns') -%>
384 dir=1/etc/bind/geodns
386 <% if classes.include?('named::authoritative') -%>
388 file=/etc/bind/named.conf.debian-zones
390 <% if fqdn == "dijkstra.debian.org" -%>
393 <% if nodeinfo['buildd'] -%>
397 file=/etc/ferm/conf.d/me.conf
398 file=/etc/ferm/conf.d/defs.conf
399 file=/etc/ferm/ferm.conf
401 <% if nodeinfo.has_key?('squeeze') and nodeinfo['squeeze'] %>
402 file=/etc/unbound/unbound.conf
407 ## for these files, all modifications (even access time) are reported
408 ## - you may create some interesting-looking file (like /etc/safe_passwd),
409 ## just to watch whether someone will access it ...
414 ## Use for prelinked files or directories holding them
420 ## for these files, only access time is ignored
426 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
427 # so we go 3 levels deep
435 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
436 # so we go 3 levels deep there too
440 # Various directories / files that may include / be SUID/SGID binaries
443 file=/usr/lib/pt_chown
444 # X11, in Debian X7 this is now a symlink
446 #dir=/usr/X11R6/lib/X11/xmcd/bin
448 #file=/usr/lib/apache/suexec
449 #file=/usr/lib/apache/suexec.disabled
456 ## User0 and User1 are sections for files/dirs with user-definable checking
462 ## Here you can assign severities to policy violations.
463 ## If this severity exceeds the treshold of a log facility (see below),
464 ## a policy violation will be logged to that facility.
466 ## Severity for verification failures.
468 # SeverityReadOnly=crit
469 # SeverityLogFiles=crit
470 # SeverityGrowingLogs=crit
471 # SeverityIgnoreNone=crit
472 # SeverityAttributes=crit
477 SeverityReadOnly=crit
478 SeverityLogFiles=crit
479 SeverityGrowingLogs=warn
480 SeverityIgnoreNone=crit
481 SeverityAttributes=crit
485 ## We have a file in IgnoreAll that might or might not be present.
486 ## Setting the severity to 'info' prevents messages about deleted/new file.
488 # SeverityIgnoreAll=crit
489 SeverityIgnoreAll=info
491 ## Files : file access problems
494 ## Dirs : directory access problems
497 ## Names : suspect (non-printable) characters in a pathname
508 ## Switch on/OFF log facilities and set their threshold severity
510 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
511 ## 'mark' is used for timestamps.
514 ## Use 'none' to SWITCH OFF a log facility
516 ## By default, everything equal to and above the threshold is logged.
517 ## The specifiers '*', '!', and '=' are interpreted as
518 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
519 ## at least on Linux). Examples:
521 ## MailSeverity=!warn
522 ## MailSeverity==crit
538 # SyslogSeverity=none
540 ## Remote server (yule)
542 # ExportSeverity=none
544 ## External script or program
546 # ExternalSeverity = none
548 ## Logging to a database
550 # DatabaseSeverity = none
563 #####################################################
567 #####################################################
571 ## --- Check the filesystem for SUID/SGID binaries
576 # SuidCheckActive = yes
578 ## Interval for check (seconds)
580 # SuidCheckInterval = 7200
582 ## Alternative: crontab-like schedule
584 # SuidCheckSchedule = NULL
586 ## Directory to exclude
588 # SuidCheckExclude = NULL
590 ## Limit on files per second (0 == no limit)
594 ## Alternative: yield after every file
596 # SuidCheckYield = no
598 ## Severity of a detection
600 # SeveritySuidCheck = crit
602 ## Quarantine SUID/SGID files if found
604 # SuidCheckQuarantineFiles = yes
606 ## Method for Quarantining files:
607 # 0 - Delete or truncate the file.
608 # 1 - Remove SUID/SGID permissions from file.
609 # 2 - Move SUID/SGID file to quarantine dir.
611 # SuidCheckQuarantineMethod = 0
613 ## For method 1 and 3, really delete instead of truncating
615 # SuidCheckQuarantineDelete = yes
619 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
624 #KernelCheckActive = True
626 ## Check interval (seconds); btw., the check is VERY fast
628 # KernelCheckInterval = 300
632 # SeverityKernel = crit
637 ## --- Logging of login/logout events
642 # LoginCheckActive = True
644 ## Severity for logins, multiple logins, logouts
647 # SeverityLoginMulti=warn
648 # SeverityLogout=info
650 ## Interval for login/logout checks
652 # LoginCheckInterval = 300
657 ## --- Logging to a relational database
662 # SetDBName = samhain
670 # SetDBUser = samhain
674 # SetDBPassword = (default: none)
678 # SetDBHost = localhost
680 ## Log the server timestamp for received messages
682 # SetDBServerTstamp = True
684 ## Use a persistent connection
686 # UsePersistent = True
690 ## Interface to call external scripts/programs for logging
693 ## The absolute path to the command
694 ## - Each invocation of this directive will end the definition of the
695 ## preceding command, and start the definition of
696 ## an additional, new command
698 # OpenCommand = (no default)
701 ## - log for log messages, srv for messages received by the server
705 ## The command (full command line) to execute
707 # SetCommandLine = (no default)
709 ## The environment (KEY=value; repeat for more)
711 # SetEnviron = TZ=(your timezone)
713 ## The TIGER192 checksum (optional)
715 # SetChecksum = (no default)
717 ## User who runs the command
719 # SetCredentials = (default: samhain process uid)
721 ## Words not allowed in message
723 # SetFilterNot = (none)
725 ## Words required (ALL of them)
727 # SetFilterAnd = (none)
729 ## Words required (at least one)
731 # SetFilterOr = (none)
733 ## Deadtime between consecutive calls
737 ## Add default environment (HOME, PATH, SHELL)
742 #####################################################
744 # Miscellaneous configuration options
746 #####################################################
750 ## whether to become a daemon process
751 ## (this is not honoured on database initialisation)
756 ## whether to test signature of files (init/check/none)
757 ## - if 'none', then we have to decide this on the command line -
759 # ChecksumTest = none
762 ## whether to drop linux capabilities that are not required
763 ## - will make a root process a 'mere mortal' in many respects
767 ## Set nice level (-19 to 19, see 'man nice'),
768 ## and I/O limit (kilobytes per second; 0 == off)
769 ## to reduce load on host.
774 ## The version string to embed in file signature databases
776 # VersionString = NULL
778 ## Interval between time stamp messages
783 ## Interval between file checks
785 # SetFileCheckTime = 600
786 SetFileCheckTime = 7200
788 ## Alternative: crontab-like schedule
790 # FileCheckScheduleOne = NULL
792 ## Alternative: crontab-like schedule(2)
794 # FileCheckScheduleTwo = NULL
796 ## Report only once on modified fles
797 ## Setting this to 'FALSE' will generate a report for any policy
798 ## violation (old and new ones) each time the daemon checks the file system.
800 # ReportOnlyOnce = True
802 ## Report in full detail
804 # ReportFullDetail = False
806 ## Report file timestamps in local time rather than GMT
810 ## The console device (can also be a file or named pipe)
811 ## - There are two console devices. Accordingly, you can use
812 ## this directive a second time to set the second console device.
813 ## If you have not defined the second device at compile time,
814 ## and you don't want to use it, then:
815 ## setting it to /dev/null is less effective than just leaving
816 ## it alone (setting to /dev/null will waste time by opening
817 ## /dev/null and writing to it)
819 # SetConsole = /dev/console
821 ## Activate the SysV IPC message queue
823 # MessageQueueActive = False
826 ## If false, skip reverse lookup when connecting to a host known
827 ## by name rather than IP address (i.e. trust the DNS)
829 # SetReverseLookup = True
833 # Only highest-level (alert) reports will be mailed immediately,
834 # others will be queued. Here you can define, when the queue will
835 # be flushed (Note: the queue is automatically flushed after
836 # completing a file check).
840 ## Maximum number of mails to queue
844 ## Recipient (max. 8)
846 SetMailAddress=samhain-reports@debian.org
848 ## Mail relay (IP address)
849 <% if nodeinfo['smarthost'].empty? -%>
850 SetMailRelay = master.debian.org
852 SetMailRelay = localhost
855 ## Custom subject format
857 MailSubject = [Samhain at %H] %T: %S
859 ## --- end E-Mail ---
861 ## Path to the prelink executable
863 # SetPrelinkPath = /usr/sbin/prelink
865 ## TIGER192 checksum of the prelink executable
867 # SetPrelinkChecksum = (no default)
870 ## Path to the executable. If set, will be checksummed after startup
873 # SamhainPath = (no default)
876 ## The IP address of the log server
878 # SetLogServer = (default: compiled-in)
880 ## The IP address of the time server
882 # SetTimeServer = (default: compiled-in)
884 ## Trusted Users (comma delimited list of user names)
886 # TrustedUser = (no default; this adds to the compiled-in list)
888 ## Path to the file signature database
890 # SetDatabasePath = (default: compiled-in)
892 ## Path to the log file
894 # SetLogfilePath = (default: compiled-in)
896 ## Path to the PID file
898 # SetLockPath = (default: compiled-in)
901 ## The digest/checksum/hash algorithm
903 # DigestAlgo = TIGER192
906 ## Custom format for message header.
907 ## CAREFUL if you use XML logfile format.
916 # MessageHeader="%S %T "
919 ## Don't log path to config/database file on startup
923 ## The syslog facility, if you log to syslog
925 # SyslogFacility = LOG_AUTHPRIV
926 SyslogFacility=LOG_LOCAL2
928 ## The message authentication method
929 ## - If you change this, you *must* change it
930 ## on client *and* server
932 # MACType = HMAC-TIGER
935 ## everything below is ignored
938 #####################################################################
939 # This would be the proper syntax for parts that should only be
940 # included for certain hosts.
941 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
942 # result still has the proper syntax for the config file.
943 # You may have any number of @HOSTNAME/@end brackets.
944 # HOSTNAME should be the fully qualified 'official' name
945 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
946 # No IP number - except if samhain cannot determine the
947 # fully qualified hostname.
953 # These are two examples for conditional inclusion/exclusion
954 # of a machine based on the output from 'uname -srm'
963 #####################################################################