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
128 file=/etc/apt/preferences.d
130 file=/etc/logrotate.d
132 file=/etc/nagios/nrpe.d
133 file=/etc/nagios/obsolete-packages-ignore.d
134 file=/etc/bind/geodns
135 <% if nodeinfo['nagiosmaster'] -%>
136 file=/etc/nagios3/puppetconf.d
140 file=/usr/lib/nagios/plugins
143 file=/etc/monit/monit.d
149 file=/etc/ferm/conf.d
152 <% unless lsbdistcodename == 'lenny' %>
159 ## for these files, changes in signature, timestamps, and size are ignored
166 #####################################################################
168 # This would be the proper syntax for parts that should only be
169 # included for certain hosts.
170 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
171 # result still has the proper syntax for the config file.
172 # You may have any number of @HOSTNAME/@end brackets.
173 # HOSTNAME should be the fully qualified 'official' name
174 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
175 # No IP number - except if samhain cannot determine the
176 # fully qualified hostname.
182 # These are two examples for conditional inclusion/exclusion
183 # of a machine based on the output from 'uname -srm'
193 #####################################################################
197 ## for these files, changes in signature, timestamps, and increase in size
201 file=/var/log/messages
203 file=/var/log/faillog
204 file=/var/log/auth.log
205 file=/var/log/daemon.log
206 file=/var/log/user.log
207 file=/var/log/kern.log
213 ## for these files, no modifications are reported
215 ## This file might be created or removed by the system sometimes.
217 file=/etc/resolv.conf
218 <% if nodeinfo['buildd'] -%>
219 file=/etc/dupload.conf
221 file=/etc/resolv.conf.pcmcia.save
223 file=/etc/postfix/debian.db
224 file=/etc/postfix/debian
225 file=/etc/ssh/ssh_known_hosts
226 file=/etc/ssh/ssh-rsa-shadow
227 file=/var/lib/misc/ssh-rsa-shadow
228 file=/etc/.da-backup.trace
229 file=/etc/postfix/debianhosts
230 file=/etc/postfix/debianhosts.db
232 file=/etc/blkid.tab.old
233 file=/etc/resolv.conf.dhclient-new
235 # We handle these files with puppet - please to not be bothering us
239 file=/etc/samhain/samhainrc
240 file=/etc/munin/munin-node.conf
241 file=/etc/munin/plugin-conf.d/munin-node
242 file=/etc/userdir-ldap.confc
243 file=/etc/exim4/blacklist
244 file=/etc/exim4/host_blacklist
245 file=/etc/exim4/callout_users
246 file=/etc/exim4/exim4.conf
247 file=/etc/exim4/grey_users
248 file=/etc/exim4/helo-check
249 file=/etc/exim4/locals
250 file=/etc/exim4/localusers
251 file=/etc/exim4/manualroute
252 file=/etc/exim4/rbllist
253 file=/etc/exim4/rhsbllist
254 file=/etc/exim4/submission-domains
255 file=/etc/exim4/virtualdomains
256 file=/etc/exim4/whitelist
257 file=/etc/exim4/local-settings.conf
258 file=/etc/exim4/ssl/ca.crt
259 file=/etc/exim4/ssl/ca.crl
260 file=/etc/exim4/ssl/thishost.crt
261 file=/etc/exim4/ssl/thishost.key
262 file=/etc/ssh/ssh_config
263 file=/etc/ssh/sshd_config
264 file=/etc/dsa/cron.ignore.dsa-puppet-stuff
267 if nodeinfo['heavy_exim']
269 file=/etc/exim4/surbl_whitelist.txt
270 file=/etc/exim4/exim_surbl.pl
271 file=/etc/exim4/ccTLD.txt
272 file=/etc/clamav-unofficial-sigs.conf
273 file=/etc/clamav-unofficial-sigs.dsa.conf
278 file=/etc/munin/plugins/bind
279 file=/etc/munin/plugins/bind_views
280 file=/etc/munin/plugins/cpu
281 file=/etc/munin/plugins/df
282 file=/etc/munin/plugins/df_abs
283 file=/etc/munin/plugins/df_inode
284 file=/etc/munin/plugins/entropy
285 file=/etc/munin/plugins/forks
286 file=/etc/munin/plugins/interrupts
287 file=/etc/munin/plugins/iostat
288 file=/etc/munin/plugins/irqstats
289 file=/etc/munin/plugins/load
290 file=/etc/munin/plugins/memory
291 file=/etc/munin/plugins/ntp_offset
292 file=/etc/munin/plugins/ntp_states
293 file=/etc/munin/plugins/open_files
294 file=/etc/munin/plugins/open_inodes
295 file=/etc/munin/plugins/processes
296 file=/etc/munin/plugins/ps_apache2
297 file=/etc/munin/plugins/ps_exim4
298 file=/etc/munin/plugins/ps_vsftpd
299 file=/etc/munin/plugins/spamassassin
300 file=/etc/munin/plugins/swap
301 file=/etc/munin/plugins/uptime
302 file=/etc/munin/plugins/vmstat
303 file=/etc/munin/plugins/vfstpd
304 file=/etc/munin/plugins/apache_accesses
305 file=/etc/munin/plugins/apache_processes
306 file=/etc/munin/plugins/apache_volume
307 file=/etc/munin/plugins/apache_servers
308 file=/etc/munin/plugins/exim_mailqueue
309 file=/etc/munin/plugins/exim_mailstats
310 file=/etc/munin/plugins/postfix_mailqueue
311 file=/etc/munin/plugins/postfix_mailvolume
312 file=/etc/apache2/conf.d/ressource-limits
313 file=/etc/apache2/mods-enabled/info.conf
314 file=/etc/apache2/mods-enabled/info.load
315 file=/etc/apache2/mods-enabled/server.conf
316 file=/etc/apache2/mods-enabled/server.load
317 file=/etc/apache2/conf.d/server-status
318 file=/etc/apache2/conf.d/local-serverinfo
319 file=/etc/apache2/sites-available/www.debian.org
320 file=/etc/apt/preferences
321 file=/etc/apt/sources.list.d/volatile.list
322 file=/etc/apt/sources.list.d/security.list
323 file=/etc/apt/sources.list.d/buildd.list
324 file=/etc/apt/sources.list.d/debian.org.list
325 file=/etc/apt/sources.list.d/debian.restricted.list
326 file=/etc/apt/sources.list.d/debian.list
327 file=/etc/apt/sources.list.d/backports.org.list
328 file=/etc/apt/apt.conf.d/local-compression
329 file=/etc/apt/apt.conf.d/local-recommends
330 file=/etc/apt/apt.conf.d/local-pdiffs
331 file=/etc/apt/preferences.d/buildd
332 file=/etc/puppet/puppet.conf
333 file=/etc/default/puppet
334 file=/etc/default/postgrey
335 file=/etc/default/schroot
336 file=/etc/default/syslog-ng
337 file=/etc/logrotate.d/exim4-paniclog
338 file=/etc/logrotate.d/exim4-base
339 file=/etc/logrotate.d/syslog-ng
340 file=/etc/syslog-ng/syslog-ng.conf
341 file=/usr/sbin/dsa-update-apt-status
342 file=/usr/sbin/dsa-update-samhain-status
343 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
344 file=/etc/nagios/nrpe.d/debianorg.cfg
345 file=/etc/nagios/obsolete-packages-ignore
346 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
347 file=/usr/lib/nagios/plugins/dsa-check-packages
348 file=/usr/lib/nagios/plugins/dsa-check-soas
349 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
350 file=/usr/lib/nagios/plugins/dsa-check-samhain
351 file=/usr/lib/nagios/plugins/dsa-check-statusfile
352 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
353 file=/usr/lib/nagios/plugins/dsa-check-config
354 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
355 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
356 file=/usr/lib/nagios/plugins/dsa-check-puppet
357 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
358 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
359 file=/usr/lib/nagios/plugins/dsa-check-dabackup
360 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
361 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
362 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
363 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
364 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
366 file=/etc/stunnel/puppet-ekeyd-peer.pem
367 file=/etc/sysctl.d/mmap_min_addr.conf
369 file=/etc/monit/monitrc
370 file=/etc/monit/monit.d/01puppet
371 file=/etc/monit/monit.d/00debian.org
372 file=/etc/cron.d/dsa-puppet-stuff
373 file=/etc/cron.d/dsa-buildd
374 <% if nodeinfo['nagiosmaster'] -%>
375 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
376 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
377 file=/etc/nagios3/puppetconf.d/auto-services.cfg
378 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
379 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
380 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
381 file=/etc/nagios3/puppetconf.d/auto-servicegroups.cfg
382 file=/etc/nagios3/puppetconf.d/contacts.cfg
384 <% if nodeinfo['muninmaster'] -%>
385 file=/etc/munin/munin.conf
387 <% if nodeinfo['puppetmaster'] -%>
390 <% if classes.include?('named::geodns') -%>
391 dir=1/etc/bind/geodns
393 <% if classes.include?('named::authoritative') -%>
395 file=/etc/bind/named.conf.debian-zones
397 <% if fqdn == "dijkstra.debian.org" -%>
400 <% if nodeinfo['buildd'] -%>
404 file=/etc/ferm/conf.d/me.conf
405 file=/etc/ferm/conf.d/defs.conf
406 file=/etc/ferm/ferm.conf
408 <% unless lsbdistcodename == 'lenny' %>
409 file=/etc/unbound/unbound.conf
414 ## for these files, all modifications (even access time) are reported
415 ## - you may create some interesting-looking file (like /etc/safe_passwd),
416 ## just to watch whether someone will access it ...
421 ## Use for prelinked files or directories holding them
427 ## for these files, only access time is ignored
433 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
434 # so we go 3 levels deep
442 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
443 # so we go 3 levels deep there too
447 # Various directories / files that may include / be SUID/SGID binaries
450 file=/usr/lib/pt_chown
451 # X11, in Debian X7 this is now a symlink
453 #dir=/usr/X11R6/lib/X11/xmcd/bin
455 #file=/usr/lib/apache/suexec
456 #file=/usr/lib/apache/suexec.disabled
463 ## User0 and User1 are sections for files/dirs with user-definable checking
469 ## Here you can assign severities to policy violations.
470 ## If this severity exceeds the treshold of a log facility (see below),
471 ## a policy violation will be logged to that facility.
473 ## Severity for verification failures.
475 # SeverityReadOnly=crit
476 # SeverityLogFiles=crit
477 # SeverityGrowingLogs=crit
478 # SeverityIgnoreNone=crit
479 # SeverityAttributes=crit
484 SeverityReadOnly=crit
485 SeverityLogFiles=crit
486 SeverityGrowingLogs=warn
487 SeverityIgnoreNone=crit
488 SeverityAttributes=crit
492 ## We have a file in IgnoreAll that might or might not be present.
493 ## Setting the severity to 'info' prevents messages about deleted/new file.
495 # SeverityIgnoreAll=crit
496 SeverityIgnoreAll=info
498 ## Files : file access problems
501 ## Dirs : directory access problems
504 ## Names : suspect (non-printable) characters in a pathname
515 ## Switch on/OFF log facilities and set their threshold severity
517 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
518 ## 'mark' is used for timestamps.
521 ## Use 'none' to SWITCH OFF a log facility
523 ## By default, everything equal to and above the threshold is logged.
524 ## The specifiers '*', '!', and '=' are interpreted as
525 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
526 ## at least on Linux). Examples:
528 ## MailSeverity=!warn
529 ## MailSeverity==crit
545 # SyslogSeverity=none
547 ## Remote server (yule)
549 # ExportSeverity=none
551 ## External script or program
553 # ExternalSeverity = none
555 ## Logging to a database
557 # DatabaseSeverity = none
570 #####################################################
574 #####################################################
578 ## --- Check the filesystem for SUID/SGID binaries
583 # SuidCheckActive = yes
585 ## Interval for check (seconds)
587 # SuidCheckInterval = 7200
589 ## Alternative: crontab-like schedule
591 # SuidCheckSchedule = NULL
593 ## Directory to exclude
595 # SuidCheckExclude = NULL
597 ## Limit on files per second (0 == no limit)
601 ## Alternative: yield after every file
603 # SuidCheckYield = no
605 ## Severity of a detection
607 # SeveritySuidCheck = crit
609 ## Quarantine SUID/SGID files if found
611 # SuidCheckQuarantineFiles = yes
613 ## Method for Quarantining files:
614 # 0 - Delete or truncate the file.
615 # 1 - Remove SUID/SGID permissions from file.
616 # 2 - Move SUID/SGID file to quarantine dir.
618 # SuidCheckQuarantineMethod = 0
620 ## For method 1 and 3, really delete instead of truncating
622 # SuidCheckQuarantineDelete = yes
626 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
631 #KernelCheckActive = True
633 ## Check interval (seconds); btw., the check is VERY fast
635 # KernelCheckInterval = 300
639 # SeverityKernel = crit
644 ## --- Logging of login/logout events
649 # LoginCheckActive = True
651 ## Severity for logins, multiple logins, logouts
654 # SeverityLoginMulti=warn
655 # SeverityLogout=info
657 ## Interval for login/logout checks
659 # LoginCheckInterval = 300
664 ## --- Logging to a relational database
669 # SetDBName = samhain
677 # SetDBUser = samhain
681 # SetDBPassword = (default: none)
685 # SetDBHost = localhost
687 ## Log the server timestamp for received messages
689 # SetDBServerTstamp = True
691 ## Use a persistent connection
693 # UsePersistent = True
697 ## Interface to call external scripts/programs for logging
700 ## The absolute path to the command
701 ## - Each invocation of this directive will end the definition of the
702 ## preceding command, and start the definition of
703 ## an additional, new command
705 # OpenCommand = (no default)
708 ## - log for log messages, srv for messages received by the server
712 ## The command (full command line) to execute
714 # SetCommandLine = (no default)
716 ## The environment (KEY=value; repeat for more)
718 # SetEnviron = TZ=(your timezone)
720 ## The TIGER192 checksum (optional)
722 # SetChecksum = (no default)
724 ## User who runs the command
726 # SetCredentials = (default: samhain process uid)
728 ## Words not allowed in message
730 # SetFilterNot = (none)
732 ## Words required (ALL of them)
734 # SetFilterAnd = (none)
736 ## Words required (at least one)
738 # SetFilterOr = (none)
740 ## Deadtime between consecutive calls
744 ## Add default environment (HOME, PATH, SHELL)
749 #####################################################
751 # Miscellaneous configuration options
753 #####################################################
757 ## whether to become a daemon process
758 ## (this is not honoured on database initialisation)
763 ## whether to test signature of files (init/check/none)
764 ## - if 'none', then we have to decide this on the command line -
766 # ChecksumTest = none
769 ## whether to drop linux capabilities that are not required
770 ## - will make a root process a 'mere mortal' in many respects
774 ## Set nice level (-19 to 19, see 'man nice'),
775 ## and I/O limit (kilobytes per second; 0 == off)
776 ## to reduce load on host.
781 ## The version string to embed in file signature databases
783 # VersionString = NULL
785 ## Interval between time stamp messages
790 ## Interval between file checks
792 # SetFileCheckTime = 600
793 SetFileCheckTime = 7200
795 ## Alternative: crontab-like schedule
797 # FileCheckScheduleOne = NULL
799 ## Alternative: crontab-like schedule(2)
801 # FileCheckScheduleTwo = NULL
803 ## Report only once on modified fles
804 ## Setting this to 'FALSE' will generate a report for any policy
805 ## violation (old and new ones) each time the daemon checks the file system.
807 # ReportOnlyOnce = True
809 ## Report in full detail
811 # ReportFullDetail = False
813 ## Report file timestamps in local time rather than GMT
817 ## The console device (can also be a file or named pipe)
818 ## - There are two console devices. Accordingly, you can use
819 ## this directive a second time to set the second console device.
820 ## If you have not defined the second device at compile time,
821 ## and you don't want to use it, then:
822 ## setting it to /dev/null is less effective than just leaving
823 ## it alone (setting to /dev/null will waste time by opening
824 ## /dev/null and writing to it)
826 # SetConsole = /dev/console
828 ## Activate the SysV IPC message queue
830 # MessageQueueActive = False
833 ## If false, skip reverse lookup when connecting to a host known
834 ## by name rather than IP address (i.e. trust the DNS)
836 # SetReverseLookup = True
840 # Only highest-level (alert) reports will be mailed immediately,
841 # others will be queued. Here you can define, when the queue will
842 # be flushed (Note: the queue is automatically flushed after
843 # completing a file check).
847 ## Maximum number of mails to queue
851 ## Recipient (max. 8)
853 SetMailAddress=samhain-reports@<%= fqdn -%>
855 SetMailRelay = localhost
857 ## Custom subject format
859 MailSubject = [Samhain at %H] %T: %S
861 ## --- end E-Mail ---
863 ## Path to the prelink executable
865 # SetPrelinkPath = /usr/sbin/prelink
867 ## TIGER192 checksum of the prelink executable
869 # SetPrelinkChecksum = (no default)
872 ## Path to the executable. If set, will be checksummed after startup
875 # SamhainPath = (no default)
878 ## The IP address of the log server
880 # SetLogServer = (default: compiled-in)
882 ## The IP address of the time server
884 # SetTimeServer = (default: compiled-in)
886 ## Trusted Users (comma delimited list of user names)
888 # TrustedUser = (no default; this adds to the compiled-in list)
890 ## Path to the file signature database
892 # SetDatabasePath = (default: compiled-in)
894 ## Path to the log file
896 # SetLogfilePath = (default: compiled-in)
898 ## Path to the PID file
900 # SetLockPath = (default: compiled-in)
903 ## The digest/checksum/hash algorithm
905 # DigestAlgo = TIGER192
908 ## Custom format for message header.
909 ## CAREFUL if you use XML logfile format.
918 # MessageHeader="%S %T "
921 ## Don't log path to config/database file on startup
925 ## The syslog facility, if you log to syslog
927 # SyslogFacility = LOG_AUTHPRIV
928 SyslogFacility=LOG_LOCAL2
930 ## The message authentication method
931 ## - If you change this, you *must* change it
932 ## on client *and* server
934 # MACType = HMAC-TIGER
937 ## everything below is ignored
940 #####################################################################
941 # This would be the proper syntax for parts that should only be
942 # included for certain hosts.
943 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
944 # result still has the proper syntax for the config file.
945 # You may have any number of @HOSTNAME/@end brackets.
946 # HOSTNAME should be the fully qualified 'official' name
947 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
948 # No IP number - except if samhain cannot determine the
949 # fully qualified hostname.
955 # These are two examples for conditional inclusion/exclusion
956 # of a machine based on the output from 'uname -srm'
965 #####################################################################