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)
73 ## for these files, only changes in permissions and ownership are checked
76 file=/etc/ssh_random_seed
81 file=/etc/passwd.backup
82 file=/etc/shadow.backup
83 file=/etc/postfix/prng_exch
87 file=/etc/lvm/cache/.cache
88 file=/etc/network/run/ifstate
89 file=/var/state/samhain/samhain_file
90 file=/etc/bind/zones/db.debian.net
92 <% if hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
94 file=/etc/bind/named.conf.acl
95 file=/etc/bind/named.conf.options
96 file=/etc/bind/named.conf.local
97 file=/etc/bind/geodns/named.conf.geo
98 file=/etc/bind/geodns/recvconf.files
103 # There are files in /etc that might change, thus changing the directory
104 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
108 file=/etc/network/run
110 file=/etc/spamassassin/sa-update-keys
112 # These are the directories for the files we handle with puppet
113 file=/etc/apache2/conf.d
114 files=/etc/apache2/mods-enabled
117 file=/etc/munin/plugins
121 file=/etc/apt/apt.conf.d
122 file=/etc/apt/sources.list.d
124 file=/etc/logrotate.d
126 file=/etc/nagios/nrpe.d
127 file=/etc/nagios/obsolete-packages-ignore.d
128 file=/etc/bind/geodns
131 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
133 else extradir="file=/etc/puppet"
138 file=/usr/lib/nagios/plugins
141 file=/etc/monit/monit.d
149 ## for these files, changes in signature, timestamps, and size are ignored
156 #####################################################################
158 # This would be the proper syntax for parts that should only be
159 # included for certain hosts.
160 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
161 # result still has the proper syntax for the config file.
162 # You may have any number of @HOSTNAME/@end brackets.
163 # HOSTNAME should be the fully qualified 'official' name
164 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
165 # No IP number - except if samhain cannot determine the
166 # fully qualified hostname.
172 # These are two examples for conditional inclusion/exclusion
173 # of a machine based on the output from 'uname -srm'
183 #####################################################################
187 ## for these files, changes in signature, timestamps, and increase in size
191 file=/var/log/messages
193 file=/var/log/faillog
194 file=/var/log/auth.log
195 file=/var/log/daemon.log
196 file=/var/log/user.log
197 file=/var/log/kern.log
203 ## for these files, no modifications are reported
205 ## This file might be created or removed by the system sometimes.
207 file=/etc/resolv.conf.pcmcia.save
209 file=/etc/postfix/debian.db
210 file=/etc/postfix/debian
211 file=/etc/ssh/ssh_known_hosts
212 file=/etc/ssh/ssh-rsa-shadow
213 file=/var/lib/misc/ssh-rsa-shadow
214 file=/etc/.da-backup.trace
215 file=/etc/postfix/debianhosts
216 file=/etc/postfix/debianhosts.db
218 file=/etc/blkid.tab.old
219 file=/etc/resolv.conf.dhclient-new
221 # We handle these files with puppet - please to not be bothering us
225 file=/etc/samhain/samhainrc
226 file=/etc/munin/munin-node.conf
227 file=/etc/userdir-ldap.confc
228 file=/etc/exim4/blacklist
229 file=/etc/exim4/host_blacklist
230 file=/etc/exim4/callout_users
231 file=/etc/exim4/exim4.conf
232 file=/etc/exim4/grey_users
233 file=/etc/exim4/helo-check
234 file=/etc/exim4/locals
235 file=/etc/exim4/localusers
236 file=/etc/exim4/manualroute
237 file=/etc/exim4/rbllist
238 file=/etc/exim4/rcpthosts
239 file=/etc/exim4/rhsbllist
240 file=/etc/exim4/virtualdomains
241 file=/etc/exim4/whitelist
242 file=/etc/exim4/local-auto.conf
243 file=/etc/exim4/local-settings.conf
244 file=/etc/exim4/ssl/ca.crt
245 file=/etc/exim4/ssl/ca.crl
246 file=/etc/exim4/ssl/thishost.crt
247 file=/etc/exim4/ssl/thishost.key
248 file=/etc/ssh/ssh_config
249 file=/etc/ssh/sshd_config
252 if not nodeinfo['heavy_exim'].empty?
254 file=/etc/exim4/surbl_whitelist.txt
255 file=/etc/exim4/exim_surbl.pl
256 file=/etc/exim4/ccTLD.txt
257 file=/etc/clamav-unofficial-sigs.conf
258 file=/etc/clamav-unofficial-sigs.dsa.conf
263 file=/etc/munin/plugins/apache_accesses
264 file=/etc/munin/plugins/apache_processes
265 file=/etc/munin/plugins/apache_volume
266 file=/etc/munin/plugins/df_abs
267 file=/etc/munin/plugins/exim_mailqueue
268 file=/etc/munin/plugins/exim_mailstats
269 file=/etc/munin/plugins/postfix_mailqueue
270 file=/etc/munin/plugins/postfix_mailvolume
271 file=/etc/apache2/conf.d/ressource-limits
272 file=/etc/apache2/mods-enabled/info.conf
273 file=/etc/apache2/mods-enabled/info.load
274 file=/etc/apache2/mods-enabled/server.conf
275 file=/etc/apache2/mods-enabled/server.load
276 file=/etc/apache2/conf.d/server-status
277 file=/etc/apache2/conf.d/local-serverinfo
278 file=/etc/apt/preferences
279 file=/etc/apt/sources.list.d/volatile.list
280 file=/etc/apt/sources.list.d/security.list
281 file=/etc/apt/sources.list.d/buildd.list
282 file=/etc/apt/sources.list.d/debian.org.list
283 file=/etc/apt/sources.list.d/debian.restricted.list
284 file=/etc/apt/sources.list.d/debian.list
285 file=/etc/apt/sources.list.d/backports.org.list
286 file=/etc/apt/apt.conf.d/local-recommends
287 file=/etc/apt/apt.conf.d/local-pdiffs
288 file=/etc/puppet/puppet.conf
289 file=/etc/default/puppet
290 file=/etc/default/postgrey
291 file=/etc/logrotate.d/exim4-paniclog
292 file=/etc/logrotate.d/exim4-base
293 file=/etc/logrotate.d/syslog-ng
294 file=/etc/syslog-ng/syslog-ng.conf
295 file=/usr/sbin/dsa-update-apt-status
296 file=/usr/sbin/dsa-update-samhain-status
297 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
298 file=/etc/nagios/nrpe.d/debianorg.cfg
299 file=/etc/nagios/obsolete-packages-ignore
300 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
301 file=/usr/lib/nagios/plugins/dsa-check-packages
302 file=/usr/lib/nagios/plugins/dsa-check-soas
303 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
304 file=/usr/lib/nagios/plugins/dsa-check-samhain
305 file=/usr/lib/nagios/plugins/dsa-check-statusfile
306 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
307 file=/usr/lib/nagios/plugins/dsa-check-config
308 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
309 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
310 file=/usr/lib/nagios/plugins/dsa-check-puppet
311 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
312 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
313 file=/usr/lib/nagios/plugins/dsa-check-dabackup
314 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
315 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
316 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
317 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
318 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
320 file=/etc/sysctl.d/mmap_min_addr.conf
322 file=/etc/monit/monitrc
323 file=/etc/monit/monit.d/01puppet
324 file=/etc/monit/monit.d/00debian.org
325 file=/etc/cron.d/dsa-puppet-stuff
328 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
329 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
330 file=/etc/nagios3/puppetconf.d/auto-services.cfg
331 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
332 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
333 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
334 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
335 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
336 when /geo[123].debian.org/: extrafiles="dir=1/etc/bind/geodns"
343 ## for these files, all modifications (even access time) are reported
344 ## - you may create some interesting-looking file (like /etc/safe_passwd),
345 ## just to watch whether someone will access it ...
350 ## Use for prelinked files or directories holding them
356 ## for these files, only access time is ignored
362 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
363 # so we go 3 levels deep
370 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
371 # so we go 3 levels deep there too
375 # Various directories / files that may include / be SUID/SGID binaries
378 file=/usr/lib/pt_chown
379 # X11, in Debian X7 this is now a symlink
381 #dir=/usr/X11R6/lib/X11/xmcd/bin
383 #file=/usr/lib/apache/suexec
384 #file=/usr/lib/apache/suexec.disabled
391 ## User0 and User1 are sections for files/dirs with user-definable checking
397 ## Here you can assign severities to policy violations.
398 ## If this severity exceeds the treshold of a log facility (see below),
399 ## a policy violation will be logged to that facility.
401 ## Severity for verification failures.
403 # SeverityReadOnly=crit
404 # SeverityLogFiles=crit
405 # SeverityGrowingLogs=crit
406 # SeverityIgnoreNone=crit
407 # SeverityAttributes=crit
412 SeverityReadOnly=crit
413 SeverityLogFiles=crit
414 SeverityGrowingLogs=warn
415 SeverityIgnoreNone=crit
416 SeverityAttributes=crit
420 ## We have a file in IgnoreAll that might or might not be present.
421 ## Setting the severity to 'info' prevents messages about deleted/new file.
423 # SeverityIgnoreAll=crit
424 SeverityIgnoreAll=info
426 ## Files : file access problems
429 ## Dirs : directory access problems
432 ## Names : suspect (non-printable) characters in a pathname
443 ## Switch on/OFF log facilities and set their threshold severity
445 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
446 ## 'mark' is used for timestamps.
449 ## Use 'none' to SWITCH OFF a log facility
451 ## By default, everything equal to and above the threshold is logged.
452 ## The specifiers '*', '!', and '=' are interpreted as
453 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
454 ## at least on Linux). Examples:
456 ## MailSeverity=!warn
457 ## MailSeverity==crit
473 # SyslogSeverity=none
475 ## Remote server (yule)
477 # ExportSeverity=none
479 ## External script or program
481 # ExternalSeverity = none
483 ## Logging to a database
485 # DatabaseSeverity = none
498 #####################################################
502 #####################################################
506 ## --- Check the filesystem for SUID/SGID binaries
511 # SuidCheckActive = yes
513 ## Interval for check (seconds)
515 # SuidCheckInterval = 7200
517 ## Alternative: crontab-like schedule
519 # SuidCheckSchedule = NULL
521 ## Directory to exclude
523 # SuidCheckExclude = NULL
525 ## Limit on files per second (0 == no limit)
529 ## Alternative: yield after every file
531 # SuidCheckYield = no
533 ## Severity of a detection
535 # SeveritySuidCheck = crit
537 ## Quarantine SUID/SGID files if found
539 # SuidCheckQuarantineFiles = yes
541 ## Method for Quarantining files:
542 # 0 - Delete or truncate the file.
543 # 1 - Remove SUID/SGID permissions from file.
544 # 2 - Move SUID/SGID file to quarantine dir.
546 # SuidCheckQuarantineMethod = 0
548 ## For method 1 and 3, really delete instead of truncating
550 # SuidCheckQuarantineDelete = yes
554 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
559 KernelCheckActive = True
561 ## Check interval (seconds); btw., the check is VERY fast
563 # KernelCheckInterval = 300
567 # SeverityKernel = crit
572 ## --- Logging of login/logout events
577 LoginCheckActive = True
579 ## Severity for logins, multiple logins, logouts
582 # SeverityLoginMulti=warn
583 # SeverityLogout=info
585 ## Interval for login/logout checks
587 # LoginCheckInterval = 300
592 ## --- Logging to a relational database
597 # SetDBName = samhain
605 # SetDBUser = samhain
609 # SetDBPassword = (default: none)
613 # SetDBHost = localhost
615 ## Log the server timestamp for received messages
617 # SetDBServerTstamp = True
619 ## Use a persistent connection
621 # UsePersistent = True
625 ## Interface to call external scripts/programs for logging
628 ## The absolute path to the command
629 ## - Each invocation of this directive will end the definition of the
630 ## preceding command, and start the definition of
631 ## an additional, new command
633 # OpenCommand = (no default)
636 ## - log for log messages, srv for messages received by the server
640 ## The command (full command line) to execute
642 # SetCommandLine = (no default)
644 ## The environment (KEY=value; repeat for more)
646 # SetEnviron = TZ=(your timezone)
648 ## The TIGER192 checksum (optional)
650 # SetChecksum = (no default)
652 ## User who runs the command
654 # SetCredentials = (default: samhain process uid)
656 ## Words not allowed in message
658 # SetFilterNot = (none)
660 ## Words required (ALL of them)
662 # SetFilterAnd = (none)
664 ## Words required (at least one)
666 # SetFilterOr = (none)
668 ## Deadtime between consecutive calls
672 ## Add default environment (HOME, PATH, SHELL)
677 #####################################################
679 # Miscellaneous configuration options
681 #####################################################
685 ## whether to become a daemon process
686 ## (this is not honoured on database initialisation)
691 ## whether to test signature of files (init/check/none)
692 ## - if 'none', then we have to decide this on the command line -
694 # ChecksumTest = none
697 ## whether to drop linux capabilities that are not required
698 ## - will make a root process a 'mere mortal' in many respects
702 ## Set nice level (-19 to 19, see 'man nice'),
703 ## and I/O limit (kilobytes per second; 0 == off)
704 ## to reduce load on host.
709 ## The version string to embed in file signature databases
711 # VersionString = NULL
713 ## Interval between time stamp messages
718 ## Interval between file checks
720 # SetFileCheckTime = 600
721 SetFileCheckTime = 7200
723 ## Alternative: crontab-like schedule
725 # FileCheckScheduleOne = NULL
727 ## Alternative: crontab-like schedule(2)
729 # FileCheckScheduleTwo = NULL
731 ## Report only once on modified fles
732 ## Setting this to 'FALSE' will generate a report for any policy
733 ## violation (old and new ones) each time the daemon checks the file system.
735 # ReportOnlyOnce = True
737 ## Report in full detail
739 # ReportFullDetail = False
741 ## Report file timestamps in local time rather than GMT
745 ## The console device (can also be a file or named pipe)
746 ## - There are two console devices. Accordingly, you can use
747 ## this directive a second time to set the second console device.
748 ## If you have not defined the second device at compile time,
749 ## and you don't want to use it, then:
750 ## setting it to /dev/null is less effective than just leaving
751 ## it alone (setting to /dev/null will waste time by opening
752 ## /dev/null and writing to it)
754 # SetConsole = /dev/console
756 ## Activate the SysV IPC message queue
758 # MessageQueueActive = False
761 ## If false, skip reverse lookup when connecting to a host known
762 ## by name rather than IP address (i.e. trust the DNS)
764 # SetReverseLookup = True
768 # Only highest-level (alert) reports will be mailed immediately,
769 # others will be queued. Here you can define, when the queue will
770 # be flushed (Note: the queue is automatically flushed after
771 # completing a file check).
775 ## Maximum number of mails to queue
779 ## Recipient (max. 8)
781 SetMailAddress=samhain-reports@debian.org
783 ## Mail relay (IP address)
786 if not nodeinfo['smarthost'].empty?
788 SetMailRelay = localhost
792 SetMailRelay = master.debian.org
797 ## Custom subject format
799 MailSubject = [Samhain at %H] %T: %S
801 ## --- end E-Mail ---
803 ## Path to the prelink executable
805 # SetPrelinkPath = /usr/sbin/prelink
807 ## TIGER192 checksum of the prelink executable
809 # SetPrelinkChecksum = (no default)
812 ## Path to the executable. If set, will be checksummed after startup
815 # SamhainPath = (no default)
818 ## The IP address of the log server
820 # SetLogServer = (default: compiled-in)
822 ## The IP address of the time server
824 # SetTimeServer = (default: compiled-in)
826 ## Trusted Users (comma delimited list of user names)
828 # TrustedUser = (no default; this adds to the compiled-in list)
830 ## Path to the file signature database
832 # SetDatabasePath = (default: compiled-in)
834 ## Path to the log file
836 # SetLogfilePath = (default: compiled-in)
838 ## Path to the PID file
840 # SetLockPath = (default: compiled-in)
843 ## The digest/checksum/hash algorithm
845 # DigestAlgo = TIGER192
848 ## Custom format for message header.
849 ## CAREFUL if you use XML logfile format.
858 # MessageHeader="%S %T "
861 ## Don't log path to config/database file on startup
865 ## The syslog facility, if you log to syslog
867 # SyslogFacility = LOG_AUTHPRIV
868 SyslogFacility=LOG_LOCAL2
870 ## The message authentication method
871 ## - If you change this, you *must* change it
872 ## on client *and* server
874 # MACType = HMAC-TIGER
877 ## everything below is ignored
880 #####################################################################
881 # This would be the proper syntax for parts that should only be
882 # included for certain hosts.
883 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
884 # result still has the proper syntax for the config file.
885 # You may have any number of @HOSTNAME/@end brackets.
886 # HOSTNAME should be the fully qualified 'official' name
887 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
888 # No IP number - except if samhain cannot determine the
889 # fully qualified hostname.
895 # These are two examples for conditional inclusion/exclusion
896 # of a machine based on the output from 'uname -srm'
905 #####################################################################