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 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 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 lsbdistcodename == 'lenny' %>
160 ## for these files, changes in signature, timestamps, and size are ignored
167 #####################################################################
169 # This would be the proper syntax for parts that should only be
170 # included for certain hosts.
171 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
172 # result still has the proper syntax for the config file.
173 # You may have any number of @HOSTNAME/@end brackets.
174 # HOSTNAME should be the fully qualified 'official' name
175 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
176 # No IP number - except if samhain cannot determine the
177 # fully qualified hostname.
183 # These are two examples for conditional inclusion/exclusion
184 # of a machine based on the output from 'uname -srm'
194 #####################################################################
198 ## for these files, changes in signature, timestamps, and increase in size
202 file=/var/log/messages
204 file=/var/log/faillog
205 file=/var/log/auth.log
206 file=/var/log/daemon.log
207 file=/var/log/user.log
208 file=/var/log/kern.log
214 ## for these files, no modifications are reported
216 ## This file might be created or removed by the system sometimes.
218 file=/etc/resolv.conf
219 <% if nodeinfo['buildd'] -%>
220 file=/etc/dupload.conf
222 file=/etc/resolv.conf.pcmcia.save
224 file=/etc/postfix/debian.db
225 file=/etc/postfix/debian
226 file=/etc/ssh/ssh_known_hosts
227 file=/etc/ssh/ssh-rsa-shadow
228 file=/var/lib/misc/ssh-rsa-shadow
229 file=/etc/.da-backup.trace
230 file=/etc/postfix/debianhosts
231 file=/etc/postfix/debianhosts.db
233 file=/etc/blkid.tab.old
234 file=/etc/resolv.conf.dhclient-new
236 # We handle these files with puppet - please to not be bothering us
240 file=/etc/samhain/samhainrc
241 file=/etc/munin/munin-node.conf
242 file=/etc/munin/plugin-conf.d/munin-node
243 file=/etc/userdir-ldap.confc
244 file=/etc/exim4/blacklist
245 file=/etc/exim4/host_blacklist
246 file=/etc/exim4/callout_users
247 file=/etc/exim4/exim4.conf
248 file=/etc/exim4/grey_users
249 file=/etc/exim4/helo-check
250 file=/etc/exim4/locals
251 file=/etc/exim4/localusers
252 file=/etc/exim4/manualroute
253 file=/etc/exim4/rbllist
254 file=/etc/exim4/rhsbllist
255 file=/etc/exim4/submission-domains
256 file=/etc/exim4/virtualdomains
257 file=/etc/exim4/whitelist
258 file=/etc/exim4/local-settings.conf
259 file=/etc/exim4/ssl/ca.crt
260 file=/etc/exim4/ssl/ca.crl
261 file=/etc/exim4/ssl/thishost.crt
262 file=/etc/exim4/ssl/thishost.key
263 file=/etc/ssh/ssh_config
264 file=/etc/ssh/sshd_config
265 file=/etc/dsa/cron.ignore.dsa-puppet-stuff
268 if nodeinfo['heavy_exim']
270 file=/etc/exim4/surbl_whitelist.txt
271 file=/etc/exim4/exim_surbl.pl
272 file=/etc/exim4/ccTLD.txt
273 file=/etc/clamav-unofficial-sigs.conf
274 file=/etc/clamav-unofficial-sigs.dsa.conf
279 file=/etc/munin/plugins/bind
280 file=/etc/munin/plugins/bind_views
281 file=/etc/munin/plugins/cpu
282 file=/etc/munin/plugins/df
283 file=/etc/munin/plugins/df_abs
284 file=/etc/munin/plugins/df_inode
285 file=/etc/munin/plugins/entropy
286 file=/etc/munin/plugins/forks
287 file=/etc/munin/plugins/interrupts
288 file=/etc/munin/plugins/iostat
289 file=/etc/munin/plugins/irqstats
290 file=/etc/munin/plugins/load
291 file=/etc/munin/plugins/memory
292 file=/etc/munin/plugins/ntp_offset
293 file=/etc/munin/plugins/ntp_states
294 file=/etc/munin/plugins/open_files
295 file=/etc/munin/plugins/open_inodes
296 file=/etc/munin/plugins/processes
297 file=/etc/munin/plugins/ps_apache2
298 file=/etc/munin/plugins/ps_exim4
299 file=/etc/munin/plugins/ps_vsftpd
300 file=/etc/munin/plugins/spamassassin
301 file=/etc/munin/plugins/swap
302 file=/etc/munin/plugins/uptime
303 file=/etc/munin/plugins/vmstat
304 file=/etc/munin/plugins/vfstpd
305 file=/etc/munin/plugins/apache_accesses
306 file=/etc/munin/plugins/apache_processes
307 file=/etc/munin/plugins/apache_volume
308 file=/etc/munin/plugins/apache_servers
309 file=/etc/munin/plugins/exim_mailqueue
310 file=/etc/munin/plugins/exim_mailstats
311 file=/etc/munin/plugins/postfix_mailqueue
312 file=/etc/munin/plugins/postfix_mailvolume
313 file=/etc/apache2/conf.d/ressource-limits
314 file=/etc/apache2/mods-enabled/info.conf
315 file=/etc/apache2/mods-enabled/info.load
316 file=/etc/apache2/mods-enabled/server.conf
317 file=/etc/apache2/mods-enabled/server.load
318 file=/etc/apache2/conf.d/server-status
319 file=/etc/apache2/conf.d/local-serverinfo
320 file=/etc/apache2/sites-available/www.debian.org
321 file=/etc/apt/preferences
322 file=/etc/apt/sources.list.d/volatile.list
323 file=/etc/apt/sources.list.d/security.list
324 file=/etc/apt/sources.list.d/buildd.list
325 file=/etc/apt/sources.list.d/debian.org.list
326 file=/etc/apt/sources.list.d/debian.restricted.list
327 file=/etc/apt/sources.list.d/debian.list
328 file=/etc/apt/sources.list.d/backports.org.list
329 file=/etc/apt/apt.conf.d/local-compression
330 file=/etc/apt/apt.conf.d/local-recommends
331 file=/etc/apt/apt.conf.d/local-pdiffs
332 file=/etc/apt/preferences.d/buildd
333 file=/etc/puppet/puppet.conf
334 file=/etc/default/puppet
335 file=/etc/default/postgrey
336 file=/etc/default/schroot
337 file=/etc/default/syslog-ng
338 file=/etc/logrotate.d/exim4-paniclog
339 file=/etc/logrotate.d/exim4-base
340 file=/etc/logrotate.d/syslog-ng
341 file=/etc/syslog-ng/syslog-ng.conf
342 file=/usr/sbin/dsa-update-apt-status
343 file=/usr/sbin/dsa-update-samhain-status
344 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
345 file=/etc/nagios/nrpe.d/debianorg.cfg
346 file=/etc/nagios/obsolete-packages-ignore
347 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
348 file=/usr/lib/nagios/plugins/dsa-check-packages
349 file=/usr/lib/nagios/plugins/dsa-check-soas
350 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
351 file=/usr/lib/nagios/plugins/dsa-check-samhain
352 file=/usr/lib/nagios/plugins/dsa-check-statusfile
353 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
354 file=/usr/lib/nagios/plugins/dsa-check-config
355 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
356 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
357 file=/usr/lib/nagios/plugins/dsa-check-puppet
358 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
359 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
360 file=/usr/lib/nagios/plugins/dsa-check-dabackup
361 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
362 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
363 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
364 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
365 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
367 file=/etc/stunnel/puppet-ekeyd-peer.pem
368 file=/etc/sysctl.d/mmap_min_addr.conf
370 file=/etc/monit/monitrc
371 file=/etc/monit/monit.d/01puppet
372 file=/etc/monit/monit.d/00debian.org
373 file=/etc/cron.d/dsa-puppet-stuff
374 file=/etc/cron.d/dsa-buildd
375 <% if nodeinfo['nagiosmaster'] -%>
376 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
377 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
378 file=/etc/nagios3/puppetconf.d/auto-services.cfg
379 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
380 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
381 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
382 file=/etc/nagios3/puppetconf.d/auto-servicegroups.cfg
383 file=/etc/nagios3/puppetconf.d/contacts.cfg
385 <% if nodeinfo['muninmaster'] -%>
386 file=/etc/munin/munin.conf
388 <% if nodeinfo['puppetmaster'] -%>
391 <% if classes.include?('named::geodns') -%>
392 dir=1/etc/bind/geodns
394 <% if classes.include?('named::authoritative') -%>
396 file=/etc/bind/named.conf.debian-zones
398 <% if fqdn == "dijkstra.debian.org" -%>
401 <% if nodeinfo['buildd'] -%>
405 file=/etc/ferm/conf.d/me.conf
406 file=/etc/ferm/conf.d/defs.conf
407 file=/etc/ferm/ferm.conf
409 <% unless lsbdistcodename == 'lenny' %>
410 file=/etc/unbound/unbound.conf
415 ## for these files, all modifications (even access time) are reported
416 ## - you may create some interesting-looking file (like /etc/safe_passwd),
417 ## just to watch whether someone will access it ...
422 ## Use for prelinked files or directories holding them
428 ## for these files, only access time is ignored
434 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
435 # so we go 3 levels deep
443 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
444 # so we go 3 levels deep there too
448 # Various directories / files that may include / be SUID/SGID binaries
451 file=/usr/lib/pt_chown
452 # X11, in Debian X7 this is now a symlink
454 #dir=/usr/X11R6/lib/X11/xmcd/bin
456 #file=/usr/lib/apache/suexec
457 #file=/usr/lib/apache/suexec.disabled
464 ## User0 and User1 are sections for files/dirs with user-definable checking
470 ## Here you can assign severities to policy violations.
471 ## If this severity exceeds the treshold of a log facility (see below),
472 ## a policy violation will be logged to that facility.
474 ## Severity for verification failures.
476 # SeverityReadOnly=crit
477 # SeverityLogFiles=crit
478 # SeverityGrowingLogs=crit
479 # SeverityIgnoreNone=crit
480 # SeverityAttributes=crit
485 SeverityReadOnly=crit
486 SeverityLogFiles=crit
487 SeverityGrowingLogs=warn
488 SeverityIgnoreNone=crit
489 SeverityAttributes=crit
493 ## We have a file in IgnoreAll that might or might not be present.
494 ## Setting the severity to 'info' prevents messages about deleted/new file.
496 # SeverityIgnoreAll=crit
497 SeverityIgnoreAll=info
499 ## Files : file access problems
502 ## Dirs : directory access problems
505 ## Names : suspect (non-printable) characters in a pathname
516 ## Switch on/OFF log facilities and set their threshold severity
518 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
519 ## 'mark' is used for timestamps.
522 ## Use 'none' to SWITCH OFF a log facility
524 ## By default, everything equal to and above the threshold is logged.
525 ## The specifiers '*', '!', and '=' are interpreted as
526 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
527 ## at least on Linux). Examples:
529 ## MailSeverity=!warn
530 ## MailSeverity==crit
546 # SyslogSeverity=none
548 ## Remote server (yule)
550 # ExportSeverity=none
552 ## External script or program
554 # ExternalSeverity = none
556 ## Logging to a database
558 # DatabaseSeverity = none
571 #####################################################
575 #####################################################
579 ## --- Check the filesystem for SUID/SGID binaries
584 # SuidCheckActive = yes
586 ## Interval for check (seconds)
588 # SuidCheckInterval = 7200
590 ## Alternative: crontab-like schedule
592 # SuidCheckSchedule = NULL
594 ## Directory to exclude
596 # SuidCheckExclude = NULL
598 ## Limit on files per second (0 == no limit)
602 ## Alternative: yield after every file
604 # SuidCheckYield = no
606 ## Severity of a detection
608 # SeveritySuidCheck = crit
610 ## Quarantine SUID/SGID files if found
612 # SuidCheckQuarantineFiles = yes
614 ## Method for Quarantining files:
615 # 0 - Delete or truncate the file.
616 # 1 - Remove SUID/SGID permissions from file.
617 # 2 - Move SUID/SGID file to quarantine dir.
619 # SuidCheckQuarantineMethod = 0
621 ## For method 1 and 3, really delete instead of truncating
623 # SuidCheckQuarantineDelete = yes
627 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
632 #KernelCheckActive = True
634 ## Check interval (seconds); btw., the check is VERY fast
636 # KernelCheckInterval = 300
640 # SeverityKernel = crit
645 ## --- Logging of login/logout events
650 # LoginCheckActive = True
652 ## Severity for logins, multiple logins, logouts
655 # SeverityLoginMulti=warn
656 # SeverityLogout=info
658 ## Interval for login/logout checks
660 # LoginCheckInterval = 300
665 ## --- Logging to a relational database
670 # SetDBName = samhain
678 # SetDBUser = samhain
682 # SetDBPassword = (default: none)
686 # SetDBHost = localhost
688 ## Log the server timestamp for received messages
690 # SetDBServerTstamp = True
692 ## Use a persistent connection
694 # UsePersistent = True
698 ## Interface to call external scripts/programs for logging
701 ## The absolute path to the command
702 ## - Each invocation of this directive will end the definition of the
703 ## preceding command, and start the definition of
704 ## an additional, new command
706 # OpenCommand = (no default)
709 ## - log for log messages, srv for messages received by the server
713 ## The command (full command line) to execute
715 # SetCommandLine = (no default)
717 ## The environment (KEY=value; repeat for more)
719 # SetEnviron = TZ=(your timezone)
721 ## The TIGER192 checksum (optional)
723 # SetChecksum = (no default)
725 ## User who runs the command
727 # SetCredentials = (default: samhain process uid)
729 ## Words not allowed in message
731 # SetFilterNot = (none)
733 ## Words required (ALL of them)
735 # SetFilterAnd = (none)
737 ## Words required (at least one)
739 # SetFilterOr = (none)
741 ## Deadtime between consecutive calls
745 ## Add default environment (HOME, PATH, SHELL)
750 #####################################################
752 # Miscellaneous configuration options
754 #####################################################
758 ## whether to become a daemon process
759 ## (this is not honoured on database initialisation)
764 ## whether to test signature of files (init/check/none)
765 ## - if 'none', then we have to decide this on the command line -
767 # ChecksumTest = none
770 ## whether to drop linux capabilities that are not required
771 ## - will make a root process a 'mere mortal' in many respects
775 ## Set nice level (-19 to 19, see 'man nice'),
776 ## and I/O limit (kilobytes per second; 0 == off)
777 ## to reduce load on host.
782 ## The version string to embed in file signature databases
784 # VersionString = NULL
786 ## Interval between time stamp messages
791 ## Interval between file checks
793 # SetFileCheckTime = 600
794 SetFileCheckTime = 7200
796 ## Alternative: crontab-like schedule
798 # FileCheckScheduleOne = NULL
800 ## Alternative: crontab-like schedule(2)
802 # FileCheckScheduleTwo = NULL
804 ## Report only once on modified fles
805 ## Setting this to 'FALSE' will generate a report for any policy
806 ## violation (old and new ones) each time the daemon checks the file system.
808 # ReportOnlyOnce = True
810 ## Report in full detail
812 # ReportFullDetail = False
814 ## Report file timestamps in local time rather than GMT
818 ## The console device (can also be a file or named pipe)
819 ## - There are two console devices. Accordingly, you can use
820 ## this directive a second time to set the second console device.
821 ## If you have not defined the second device at compile time,
822 ## and you don't want to use it, then:
823 ## setting it to /dev/null is less effective than just leaving
824 ## it alone (setting to /dev/null will waste time by opening
825 ## /dev/null and writing to it)
827 # SetConsole = /dev/console
829 ## Activate the SysV IPC message queue
831 # MessageQueueActive = False
834 ## If false, skip reverse lookup when connecting to a host known
835 ## by name rather than IP address (i.e. trust the DNS)
837 # SetReverseLookup = True
841 # Only highest-level (alert) reports will be mailed immediately,
842 # others will be queued. Here you can define, when the queue will
843 # be flushed (Note: the queue is automatically flushed after
844 # completing a file check).
848 ## Maximum number of mails to queue
852 ## Recipient (max. 8)
854 SetMailAddress=samhain-reports@<%= fqdn -%>
856 SetMailRelay = localhost
858 ## Custom subject format
860 MailSubject = [Samhain at %H] %T: %S
862 ## --- end E-Mail ---
864 ## Path to the prelink executable
866 # SetPrelinkPath = /usr/sbin/prelink
868 ## TIGER192 checksum of the prelink executable
870 # SetPrelinkChecksum = (no default)
873 ## Path to the executable. If set, will be checksummed after startup
876 # SamhainPath = (no default)
879 ## The IP address of the log server
881 # SetLogServer = (default: compiled-in)
883 ## The IP address of the time server
885 # SetTimeServer = (default: compiled-in)
887 ## Trusted Users (comma delimited list of user names)
889 # TrustedUser = (no default; this adds to the compiled-in list)
891 ## Path to the file signature database
893 # SetDatabasePath = (default: compiled-in)
895 ## Path to the log file
897 # SetLogfilePath = (default: compiled-in)
899 ## Path to the PID file
901 # SetLockPath = (default: compiled-in)
904 ## The digest/checksum/hash algorithm
906 # DigestAlgo = TIGER192
909 ## Custom format for message header.
910 ## CAREFUL if you use XML logfile format.
919 # MessageHeader="%S %T "
922 ## Don't log path to config/database file on startup
926 ## The syslog facility, if you log to syslog
928 # SyslogFacility = LOG_AUTHPRIV
929 SyslogFacility=LOG_LOCAL2
931 ## The message authentication method
932 ## - If you change this, you *must* change it
933 ## on client *and* server
935 # MACType = HMAC-TIGER
938 ## everything below is ignored
941 #####################################################################
942 # This would be the proper syntax for parts that should only be
943 # included for certain hosts.
944 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
945 # result still has the proper syntax for the config file.
946 # You may have any number of @HOSTNAME/@end brackets.
947 # HOSTNAME should be the fully qualified 'official' name
948 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
949 # No IP number - except if samhain cannot determine the
950 # fully qualified hostname.
956 # These are two examples for conditional inclusion/exclusion
957 # of a machine based on the output from 'uname -srm'
966 #####################################################################