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.*.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" 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 hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
100 file=/etc/bind/named.conf.acl
101 file=/etc/bind/named.conf.options
102 file=/etc/bind/named.conf.local
103 file=/etc/bind/geodns/named.conf.geo
104 file=/etc/bind/geodns/recvconf.files
109 # There are files in /etc that might change, thus changing the directory
110 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
114 file=/etc/network/run
116 file=/etc/spamassassin/sa-update-keys
118 # These are the directories for the files we handle with puppet
119 file=/etc/apache2/conf.d
120 files=/etc/apache2/mods-enabled
123 file=/etc/munin/plugins
124 file=/etc/munin/plugin-conf.d
128 file=/etc/apt/apt.conf.d
129 file=/etc/apt/sources.list.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
137 if nodeinfo['nagiosmaster']
138 extradir="file=/etc/nagios3/puppetconf.d
145 file=/usr/lib/nagios/plugins
148 file=/etc/monit/monit.d
153 file=/etc/ferm/conf.d
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 <% case hoster when "ubcece", "darmstadt", "ftcollins" then "" -%>
218 file=/etc/resolv.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/virtualdomains
255 file=/etc/exim4/whitelist
256 file=/etc/exim4/local-settings.conf
257 file=/etc/exim4/ssl/ca.crt
258 file=/etc/exim4/ssl/ca.crl
259 file=/etc/exim4/ssl/thishost.crt
260 file=/etc/exim4/ssl/thishost.key
261 file=/etc/ssh/ssh_config
262 file=/etc/ssh/sshd_config
265 if not nodeinfo['heavy_exim'].empty?
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/apt/preferences
318 file=/etc/apt/sources.list.d/volatile.list
319 file=/etc/apt/sources.list.d/security.list
320 file=/etc/apt/sources.list.d/buildd.list
321 file=/etc/apt/sources.list.d/debian.org.list
322 file=/etc/apt/sources.list.d/debian.restricted.list
323 file=/etc/apt/sources.list.d/debian.list
324 file=/etc/apt/sources.list.d/backports.org.list
325 file=/etc/apt/apt.conf.d/local-recommends
326 file=/etc/apt/apt.conf.d/local-pdiffs
327 file=/etc/puppet/puppet.conf
328 file=/etc/default/puppet
329 file=/etc/default/postgrey
330 file=/etc/logrotate.d/exim4-paniclog
331 file=/etc/logrotate.d/exim4-base
332 file=/etc/logrotate.d/syslog-ng
333 file=/etc/syslog-ng/syslog-ng.conf
334 file=/usr/sbin/dsa-update-apt-status
335 file=/usr/sbin/dsa-update-samhain-status
336 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
337 file=/etc/nagios/nrpe.d/debianorg.cfg
338 file=/etc/nagios/obsolete-packages-ignore
339 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
340 file=/usr/lib/nagios/plugins/dsa-check-packages
341 file=/usr/lib/nagios/plugins/dsa-check-soas
342 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
343 file=/usr/lib/nagios/plugins/dsa-check-samhain
344 file=/usr/lib/nagios/plugins/dsa-check-statusfile
345 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
346 file=/usr/lib/nagios/plugins/dsa-check-config
347 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
348 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
349 file=/usr/lib/nagios/plugins/dsa-check-puppet
350 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
351 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
352 file=/usr/lib/nagios/plugins/dsa-check-dabackup
353 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
354 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
355 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
356 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
357 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
359 file=/etc/sysctl.d/mmap_min_addr.conf
361 file=/etc/monit/monitrc
362 file=/etc/monit/monit.d/01puppet
363 file=/etc/monit/monit.d/00debian.org
364 file=/etc/cron.d/dsa-puppet-stuff
365 file=/etc/cron.d/dsa-buildd
368 when "tchaikovsky.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
369 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
370 file=/etc/nagios3/puppetconf.d/auto-services.cfg
371 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
372 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
373 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
374 file=/etc/munin/munin.conf"
375 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
376 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
377 when /geo[123].debian.org/: extrafiles="dir=1/etc/bind/geodns"
378 when /(senfl|ravel|orff|klecker).debian.org/: extrafiles="dir=1/etc/bind
379 file=/etc/bind/named.conf.debian-zones"
384 <% if nodeinfo['buildd'] -%>
388 file=/etc/ferm/conf.d/me.conf
389 file=/etc/ferm/conf.d/defs.conf
390 file=/etc/ferm/ferm.conf
394 ## for these files, all modifications (even access time) are reported
395 ## - you may create some interesting-looking file (like /etc/safe_passwd),
396 ## just to watch whether someone will access it ...
401 ## Use for prelinked files or directories holding them
407 ## for these files, only access time is ignored
413 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
414 # so we go 3 levels deep
421 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
422 # so we go 3 levels deep there too
426 # Various directories / files that may include / be SUID/SGID binaries
429 file=/usr/lib/pt_chown
430 # X11, in Debian X7 this is now a symlink
432 #dir=/usr/X11R6/lib/X11/xmcd/bin
434 #file=/usr/lib/apache/suexec
435 #file=/usr/lib/apache/suexec.disabled
442 ## User0 and User1 are sections for files/dirs with user-definable checking
448 ## Here you can assign severities to policy violations.
449 ## If this severity exceeds the treshold of a log facility (see below),
450 ## a policy violation will be logged to that facility.
452 ## Severity for verification failures.
454 # SeverityReadOnly=crit
455 # SeverityLogFiles=crit
456 # SeverityGrowingLogs=crit
457 # SeverityIgnoreNone=crit
458 # SeverityAttributes=crit
463 SeverityReadOnly=crit
464 SeverityLogFiles=crit
465 SeverityGrowingLogs=warn
466 SeverityIgnoreNone=crit
467 SeverityAttributes=crit
471 ## We have a file in IgnoreAll that might or might not be present.
472 ## Setting the severity to 'info' prevents messages about deleted/new file.
474 # SeverityIgnoreAll=crit
475 SeverityIgnoreAll=info
477 ## Files : file access problems
480 ## Dirs : directory access problems
483 ## Names : suspect (non-printable) characters in a pathname
494 ## Switch on/OFF log facilities and set their threshold severity
496 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
497 ## 'mark' is used for timestamps.
500 ## Use 'none' to SWITCH OFF a log facility
502 ## By default, everything equal to and above the threshold is logged.
503 ## The specifiers '*', '!', and '=' are interpreted as
504 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
505 ## at least on Linux). Examples:
507 ## MailSeverity=!warn
508 ## MailSeverity==crit
524 # SyslogSeverity=none
526 ## Remote server (yule)
528 # ExportSeverity=none
530 ## External script or program
532 # ExternalSeverity = none
534 ## Logging to a database
536 # DatabaseSeverity = none
549 #####################################################
553 #####################################################
557 ## --- Check the filesystem for SUID/SGID binaries
562 # SuidCheckActive = yes
564 ## Interval for check (seconds)
566 # SuidCheckInterval = 7200
568 ## Alternative: crontab-like schedule
570 # SuidCheckSchedule = NULL
572 ## Directory to exclude
574 # SuidCheckExclude = NULL
576 ## Limit on files per second (0 == no limit)
580 ## Alternative: yield after every file
582 # SuidCheckYield = no
584 ## Severity of a detection
586 # SeveritySuidCheck = crit
588 ## Quarantine SUID/SGID files if found
590 # SuidCheckQuarantineFiles = yes
592 ## Method for Quarantining files:
593 # 0 - Delete or truncate the file.
594 # 1 - Remove SUID/SGID permissions from file.
595 # 2 - Move SUID/SGID file to quarantine dir.
597 # SuidCheckQuarantineMethod = 0
599 ## For method 1 and 3, really delete instead of truncating
601 # SuidCheckQuarantineDelete = yes
605 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
610 KernelCheckActive = True
612 ## Check interval (seconds); btw., the check is VERY fast
614 # KernelCheckInterval = 300
618 # SeverityKernel = crit
623 ## --- Logging of login/logout events
628 LoginCheckActive = True
630 ## Severity for logins, multiple logins, logouts
633 # SeverityLoginMulti=warn
634 # SeverityLogout=info
636 ## Interval for login/logout checks
638 # LoginCheckInterval = 300
643 ## --- Logging to a relational database
648 # SetDBName = samhain
656 # SetDBUser = samhain
660 # SetDBPassword = (default: none)
664 # SetDBHost = localhost
666 ## Log the server timestamp for received messages
668 # SetDBServerTstamp = True
670 ## Use a persistent connection
672 # UsePersistent = True
676 ## Interface to call external scripts/programs for logging
679 ## The absolute path to the command
680 ## - Each invocation of this directive will end the definition of the
681 ## preceding command, and start the definition of
682 ## an additional, new command
684 # OpenCommand = (no default)
687 ## - log for log messages, srv for messages received by the server
691 ## The command (full command line) to execute
693 # SetCommandLine = (no default)
695 ## The environment (KEY=value; repeat for more)
697 # SetEnviron = TZ=(your timezone)
699 ## The TIGER192 checksum (optional)
701 # SetChecksum = (no default)
703 ## User who runs the command
705 # SetCredentials = (default: samhain process uid)
707 ## Words not allowed in message
709 # SetFilterNot = (none)
711 ## Words required (ALL of them)
713 # SetFilterAnd = (none)
715 ## Words required (at least one)
717 # SetFilterOr = (none)
719 ## Deadtime between consecutive calls
723 ## Add default environment (HOME, PATH, SHELL)
728 #####################################################
730 # Miscellaneous configuration options
732 #####################################################
736 ## whether to become a daemon process
737 ## (this is not honoured on database initialisation)
742 ## whether to test signature of files (init/check/none)
743 ## - if 'none', then we have to decide this on the command line -
745 # ChecksumTest = none
748 ## whether to drop linux capabilities that are not required
749 ## - will make a root process a 'mere mortal' in many respects
753 ## Set nice level (-19 to 19, see 'man nice'),
754 ## and I/O limit (kilobytes per second; 0 == off)
755 ## to reduce load on host.
760 ## The version string to embed in file signature databases
762 # VersionString = NULL
764 ## Interval between time stamp messages
769 ## Interval between file checks
771 # SetFileCheckTime = 600
772 SetFileCheckTime = 7200
774 ## Alternative: crontab-like schedule
776 # FileCheckScheduleOne = NULL
778 ## Alternative: crontab-like schedule(2)
780 # FileCheckScheduleTwo = NULL
782 ## Report only once on modified fles
783 ## Setting this to 'FALSE' will generate a report for any policy
784 ## violation (old and new ones) each time the daemon checks the file system.
786 # ReportOnlyOnce = True
788 ## Report in full detail
790 # ReportFullDetail = False
792 ## Report file timestamps in local time rather than GMT
796 ## The console device (can also be a file or named pipe)
797 ## - There are two console devices. Accordingly, you can use
798 ## this directive a second time to set the second console device.
799 ## If you have not defined the second device at compile time,
800 ## and you don't want to use it, then:
801 ## setting it to /dev/null is less effective than just leaving
802 ## it alone (setting to /dev/null will waste time by opening
803 ## /dev/null and writing to it)
805 # SetConsole = /dev/console
807 ## Activate the SysV IPC message queue
809 # MessageQueueActive = False
812 ## If false, skip reverse lookup when connecting to a host known
813 ## by name rather than IP address (i.e. trust the DNS)
815 # SetReverseLookup = True
819 # Only highest-level (alert) reports will be mailed immediately,
820 # others will be queued. Here you can define, when the queue will
821 # be flushed (Note: the queue is automatically flushed after
822 # completing a file check).
826 ## Maximum number of mails to queue
830 ## Recipient (max. 8)
832 SetMailAddress=samhain-reports@debian.org
834 ## Mail relay (IP address)
837 if not nodeinfo['smarthost'].empty?
839 SetMailRelay = localhost
843 SetMailRelay = master.debian.org
848 ## Custom subject format
850 MailSubject = [Samhain at %H] %T: %S
852 ## --- end E-Mail ---
854 ## Path to the prelink executable
856 # SetPrelinkPath = /usr/sbin/prelink
858 ## TIGER192 checksum of the prelink executable
860 # SetPrelinkChecksum = (no default)
863 ## Path to the executable. If set, will be checksummed after startup
866 # SamhainPath = (no default)
869 ## The IP address of the log server
871 # SetLogServer = (default: compiled-in)
873 ## The IP address of the time server
875 # SetTimeServer = (default: compiled-in)
877 ## Trusted Users (comma delimited list of user names)
879 # TrustedUser = (no default; this adds to the compiled-in list)
881 ## Path to the file signature database
883 # SetDatabasePath = (default: compiled-in)
885 ## Path to the log file
887 # SetLogfilePath = (default: compiled-in)
889 ## Path to the PID file
891 # SetLockPath = (default: compiled-in)
894 ## The digest/checksum/hash algorithm
896 # DigestAlgo = TIGER192
899 ## Custom format for message header.
900 ## CAREFUL if you use XML logfile format.
909 # MessageHeader="%S %T "
912 ## Don't log path to config/database file on startup
916 ## The syslog facility, if you log to syslog
918 # SyslogFacility = LOG_AUTHPRIV
919 SyslogFacility=LOG_LOCAL2
921 ## The message authentication method
922 ## - If you change this, you *must* change it
923 ## on client *and* server
925 # MACType = HMAC-TIGER
928 ## everything below is ignored
931 #####################################################################
932 # This would be the proper syntax for parts that should only be
933 # included for certain hosts.
934 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
935 # result still has the proper syntax for the config file.
936 # You may have any number of @HOSTNAME/@end brackets.
937 # HOSTNAME should be the fully qualified 'official' name
938 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
939 # No IP number - except if samhain cannot determine the
940 # fully qualified hostname.
946 # These are two examples for conditional inclusion/exclusion
947 # of a machine based on the output from 'uname -srm'
956 #####################################################################