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
120 file=/etc/apt/apt.conf.d
121 file=/etc/apt/sources.list.d
123 file=/etc/logrotate.d
125 file=/etc/nagios/nrpe.d
126 file=/etc/nagios/obsolete-packages-ignore.d
127 file=/etc/bind/geodns
130 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
132 else extradir="file=/etc/puppet"
137 file=/usr/lib/nagios/plugins
140 file=/etc/monit/monit.d
148 ## for these files, changes in signature, timestamps, and size are ignored
155 #####################################################################
157 # This would be the proper syntax for parts that should only be
158 # included for certain hosts.
159 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
160 # result still has the proper syntax for the config file.
161 # You may have any number of @HOSTNAME/@end brackets.
162 # HOSTNAME should be the fully qualified 'official' name
163 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
164 # No IP number - except if samhain cannot determine the
165 # fully qualified hostname.
171 # These are two examples for conditional inclusion/exclusion
172 # of a machine based on the output from 'uname -srm'
182 #####################################################################
186 ## for these files, changes in signature, timestamps, and increase in size
190 file=/var/log/messages
192 file=/var/log/faillog
193 file=/var/log/auth.log
194 file=/var/log/daemon.log
195 file=/var/log/user.log
196 file=/var/log/kern.log
202 ## for these files, no modifications are reported
204 ## This file might be created or removed by the system sometimes.
206 file=/etc/resolv.conf.pcmcia.save
208 file=/etc/postfix/debian.db
209 file=/etc/postfix/debian
210 file=/etc/ssh/ssh_known_hosts
211 file=/etc/ssh/ssh-rsa-shadow
212 file=/var/lib/misc/ssh-rsa-shadow
213 file=/etc/.da-backup.trace
214 file=/etc/postfix/debianhosts
215 file=/etc/postfix/debianhosts.db
217 file=/etc/blkid.tab.old
218 file=/etc/resolv.conf.dhclient-new
220 # We handle these files with puppet - please to not be bothering us
224 file=/etc/samhain/samhainrc
225 file=/etc/munin/munin-node.conf
226 file=/etc/userdir-ldap.confc
227 file=/etc/exim4/blacklist
228 file=/etc/exim4/host_blacklist
229 file=/etc/exim4/callout_users
230 file=/etc/exim4/exim4.conf
231 file=/etc/exim4/grey_users
232 file=/etc/exim4/helo-check
233 file=/etc/exim4/locals
234 file=/etc/exim4/localusers
235 file=/etc/exim4/manualroute
236 file=/etc/exim4/rbllist
237 file=/etc/exim4/rcpthosts
238 file=/etc/exim4/rhsbllist
239 file=/etc/exim4/virtualdomains
240 file=/etc/exim4/whitelist
241 file=/etc/exim4/local-auto.conf
242 file=/etc/exim4/local-settings.conf
243 file=/etc/exim4/ssl/ca.crt
244 file=/etc/exim4/ssl/ca.crl
245 file=/etc/exim4/ssl/thishost.crt
246 file=/etc/exim4/ssl/thishost.key
247 file=/etc/ssh/ssh_config
248 file=/etc/ssh/sshd_config
251 if not nodeinfo['heavy_exim'].empty?
253 file=/etc/exim4/surbl_whitelist.txt
254 file=/etc/exim4/exim_surbl.pl
255 file=/etc/exim4/ccTLD.txt
256 file=/etc/clamav-unofficial-sigs.conf
257 file=/etc/clamav-unofficial-sigs.dsa.conf
262 files=/etc/munin/plugins/apache_accesses
263 files=/etc/munin/plugins/apache_processes
264 files=/etc/munin/plugins/apache_volume
265 file=/etc/apache2/conf.d/ressource-limits
266 files=/etc/apache2/mods-enabled/info.conf
267 files=/etc/apache2/mods-enabled/info.load
268 files=/etc/apache2/mods-enabled/server.conf
269 files=/etc/apache2/mods-enabled/server.load
270 files=/etc/apache2/conf.d/server-status
271 files=/etc/apache2/conf.d/local-serverinfo
272 file=/etc/apt/preferences
273 file=/etc/apt/sources.list.d/volatile.list
274 file=/etc/apt/sources.list.d/security.list
275 file=/etc/apt/sources.list.d/buildd.list
276 file=/etc/apt/sources.list.d/debian.org.list
277 file=/etc/apt/sources.list.d/debian.restricted.list
278 file=/etc/apt/sources.list.d/debian.list
279 file=/etc/apt/sources.list.d/backports.org.list
280 file=/etc/apt/apt.conf.d/local-recommends
281 file=/etc/apt/apt.conf.d/local-pdiffs
282 file=/etc/puppet/puppet.conf
283 file=/etc/default/puppet
284 file=/etc/default/postgrey
285 file=/etc/logrotate.d/exim4-paniclog
286 file=/etc/logrotate.d/exim4-base
287 file=/etc/logrotate.d/syslog-ng
288 file=/etc/syslog-ng/syslog-ng.conf
289 file=/usr/sbin/dsa-update-apt-status
290 file=/usr/sbin/dsa-update-samhain-status
291 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
292 file=/etc/nagios/nrpe.d/debianorg.cfg
293 file=/etc/nagios/obsolete-packages-ignore
294 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
295 file=/usr/lib/nagios/plugins/dsa-check-packages
296 file=/usr/lib/nagios/plugins/dsa-check-soas
297 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
298 file=/usr/lib/nagios/plugins/dsa-check-samhain
299 file=/usr/lib/nagios/plugins/dsa-check-statusfile
300 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
301 file=/usr/lib/nagios/plugins/dsa-check-config
302 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
303 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
304 file=/usr/lib/nagios/plugins/dsa-check-puppet
305 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
306 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
307 file=/usr/lib/nagios/plugins/dsa-check-dabackup
308 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
309 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
310 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
311 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
312 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
314 file=/etc/sysctl.d/mmap_min_addr.conf
316 file=/etc/monit/monitrc
317 file=/etc/monit/monit.d/01puppet
318 file=/etc/monit/monit.d/00debian.org
319 file=/etc/cron.d/dsa-puppet-stuff
322 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
323 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
324 file=/etc/nagios3/puppetconf.d/auto-services.cfg
325 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
326 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
327 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
328 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
329 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
330 when /geo[123].debian.org/: extrafiles="dir=1/etc/bind/geodns"
337 ## for these files, all modifications (even access time) are reported
338 ## - you may create some interesting-looking file (like /etc/safe_passwd),
339 ## just to watch whether someone will access it ...
344 ## Use for prelinked files or directories holding them
350 ## for these files, only access time is ignored
356 # SuSE (old) has the boot init scripts in /sbin/init.d/*,
357 # so we go 3 levels deep
364 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*,
365 # so we go 3 levels deep there too
369 # Various directories / files that may include / be SUID/SGID binaries
372 file=/usr/lib/pt_chown
373 # X11, in Debian X7 this is now a symlink
375 #dir=/usr/X11R6/lib/X11/xmcd/bin
377 #file=/usr/lib/apache/suexec
378 #file=/usr/lib/apache/suexec.disabled
385 ## User0 and User1 are sections for files/dirs with user-definable checking
391 ## Here you can assign severities to policy violations.
392 ## If this severity exceeds the treshold of a log facility (see below),
393 ## a policy violation will be logged to that facility.
395 ## Severity for verification failures.
397 # SeverityReadOnly=crit
398 # SeverityLogFiles=crit
399 # SeverityGrowingLogs=crit
400 # SeverityIgnoreNone=crit
401 # SeverityAttributes=crit
406 SeverityReadOnly=crit
407 SeverityLogFiles=crit
408 SeverityGrowingLogs=warn
409 SeverityIgnoreNone=crit
410 SeverityAttributes=crit
414 ## We have a file in IgnoreAll that might or might not be present.
415 ## Setting the severity to 'info' prevents messages about deleted/new file.
417 # SeverityIgnoreAll=crit
418 SeverityIgnoreAll=info
420 ## Files : file access problems
423 ## Dirs : directory access problems
426 ## Names : suspect (non-printable) characters in a pathname
437 ## Switch on/OFF log facilities and set their threshold severity
439 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
440 ## 'mark' is used for timestamps.
443 ## Use 'none' to SWITCH OFF a log facility
445 ## By default, everything equal to and above the threshold is logged.
446 ## The specifiers '*', '!', and '=' are interpreted as
447 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does,
448 ## at least on Linux). Examples:
450 ## MailSeverity=!warn
451 ## MailSeverity==crit
467 # SyslogSeverity=none
469 ## Remote server (yule)
471 # ExportSeverity=none
473 ## External script or program
475 # ExternalSeverity = none
477 ## Logging to a database
479 # DatabaseSeverity = none
492 #####################################################
496 #####################################################
500 ## --- Check the filesystem for SUID/SGID binaries
505 # SuidCheckActive = yes
507 ## Interval for check (seconds)
509 # SuidCheckInterval = 7200
511 ## Alternative: crontab-like schedule
513 # SuidCheckSchedule = NULL
515 ## Directory to exclude
517 # SuidCheckExclude = NULL
519 ## Limit on files per second (0 == no limit)
523 ## Alternative: yield after every file
525 # SuidCheckYield = no
527 ## Severity of a detection
529 # SeveritySuidCheck = crit
531 ## Quarantine SUID/SGID files if found
533 # SuidCheckQuarantineFiles = yes
535 ## Method for Quarantining files:
536 # 0 - Delete or truncate the file.
537 # 1 - Remove SUID/SGID permissions from file.
538 # 2 - Move SUID/SGID file to quarantine dir.
540 # SuidCheckQuarantineMethod = 0
542 ## For method 1 and 3, really delete instead of truncating
544 # SuidCheckQuarantineDelete = yes
548 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only)
553 KernelCheckActive = True
555 ## Check interval (seconds); btw., the check is VERY fast
557 # KernelCheckInterval = 300
561 # SeverityKernel = crit
566 ## --- Logging of login/logout events
571 LoginCheckActive = True
573 ## Severity for logins, multiple logins, logouts
576 # SeverityLoginMulti=warn
577 # SeverityLogout=info
579 ## Interval for login/logout checks
581 # LoginCheckInterval = 300
586 ## --- Logging to a relational database
591 # SetDBName = samhain
599 # SetDBUser = samhain
603 # SetDBPassword = (default: none)
607 # SetDBHost = localhost
609 ## Log the server timestamp for received messages
611 # SetDBServerTstamp = True
613 ## Use a persistent connection
615 # UsePersistent = True
619 ## Interface to call external scripts/programs for logging
622 ## The absolute path to the command
623 ## - Each invocation of this directive will end the definition of the
624 ## preceding command, and start the definition of
625 ## an additional, new command
627 # OpenCommand = (no default)
630 ## - log for log messages, srv for messages received by the server
634 ## The command (full command line) to execute
636 # SetCommandLine = (no default)
638 ## The environment (KEY=value; repeat for more)
640 # SetEnviron = TZ=(your timezone)
642 ## The TIGER192 checksum (optional)
644 # SetChecksum = (no default)
646 ## User who runs the command
648 # SetCredentials = (default: samhain process uid)
650 ## Words not allowed in message
652 # SetFilterNot = (none)
654 ## Words required (ALL of them)
656 # SetFilterAnd = (none)
658 ## Words required (at least one)
660 # SetFilterOr = (none)
662 ## Deadtime between consecutive calls
666 ## Add default environment (HOME, PATH, SHELL)
671 #####################################################
673 # Miscellaneous configuration options
675 #####################################################
679 ## whether to become a daemon process
680 ## (this is not honoured on database initialisation)
685 ## whether to test signature of files (init/check/none)
686 ## - if 'none', then we have to decide this on the command line -
688 # ChecksumTest = none
691 ## whether to drop linux capabilities that are not required
692 ## - will make a root process a 'mere mortal' in many respects
696 ## Set nice level (-19 to 19, see 'man nice'),
697 ## and I/O limit (kilobytes per second; 0 == off)
698 ## to reduce load on host.
703 ## The version string to embed in file signature databases
705 # VersionString = NULL
707 ## Interval between time stamp messages
712 ## Interval between file checks
714 # SetFileCheckTime = 600
715 SetFileCheckTime = 7200
717 ## Alternative: crontab-like schedule
719 # FileCheckScheduleOne = NULL
721 ## Alternative: crontab-like schedule(2)
723 # FileCheckScheduleTwo = NULL
725 ## Report only once on modified fles
726 ## Setting this to 'FALSE' will generate a report for any policy
727 ## violation (old and new ones) each time the daemon checks the file system.
729 # ReportOnlyOnce = True
731 ## Report in full detail
733 # ReportFullDetail = False
735 ## Report file timestamps in local time rather than GMT
739 ## The console device (can also be a file or named pipe)
740 ## - There are two console devices. Accordingly, you can use
741 ## this directive a second time to set the second console device.
742 ## If you have not defined the second device at compile time,
743 ## and you don't want to use it, then:
744 ## setting it to /dev/null is less effective than just leaving
745 ## it alone (setting to /dev/null will waste time by opening
746 ## /dev/null and writing to it)
748 # SetConsole = /dev/console
750 ## Activate the SysV IPC message queue
752 # MessageQueueActive = False
755 ## If false, skip reverse lookup when connecting to a host known
756 ## by name rather than IP address (i.e. trust the DNS)
758 # SetReverseLookup = True
762 # Only highest-level (alert) reports will be mailed immediately,
763 # others will be queued. Here you can define, when the queue will
764 # be flushed (Note: the queue is automatically flushed after
765 # completing a file check).
769 ## Maximum number of mails to queue
773 ## Recipient (max. 8)
775 SetMailAddress=samhain-reports@debian.org
777 ## Mail relay (IP address)
780 if not nodeinfo['smarthost'].empty?
782 SetMailRelay = localhost
786 SetMailRelay = master.debian.org
791 ## Custom subject format
793 MailSubject = [Samhain at %H] %T: %S
795 ## --- end E-Mail ---
797 ## Path to the prelink executable
799 # SetPrelinkPath = /usr/sbin/prelink
801 ## TIGER192 checksum of the prelink executable
803 # SetPrelinkChecksum = (no default)
806 ## Path to the executable. If set, will be checksummed after startup
809 # SamhainPath = (no default)
812 ## The IP address of the log server
814 # SetLogServer = (default: compiled-in)
816 ## The IP address of the time server
818 # SetTimeServer = (default: compiled-in)
820 ## Trusted Users (comma delimited list of user names)
822 # TrustedUser = (no default; this adds to the compiled-in list)
824 ## Path to the file signature database
826 # SetDatabasePath = (default: compiled-in)
828 ## Path to the log file
830 # SetLogfilePath = (default: compiled-in)
832 ## Path to the PID file
834 # SetLockPath = (default: compiled-in)
837 ## The digest/checksum/hash algorithm
839 # DigestAlgo = TIGER192
842 ## Custom format for message header.
843 ## CAREFUL if you use XML logfile format.
852 # MessageHeader="%S %T "
855 ## Don't log path to config/database file on startup
859 ## The syslog facility, if you log to syslog
861 # SyslogFacility = LOG_AUTHPRIV
862 SyslogFacility=LOG_LOCAL2
864 ## The message authentication method
865 ## - If you change this, you *must* change it
866 ## on client *and* server
868 # MACType = HMAC-TIGER
871 ## everything below is ignored
874 #####################################################################
875 # This would be the proper syntax for parts that should only be
876 # included for certain hosts.
877 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
878 # result still has the proper syntax for the config file.
879 # You may have any number of @HOSTNAME/@end brackets.
880 # HOSTNAME should be the fully qualified 'official' name
881 # (e.g. 'nixon.watergate.com', not 'nixon'), no aliases.
882 # No IP number - except if samhain cannot determine the
883 # fully qualified hostname.
889 # These are two examples for conditional inclusion/exclusion
890 # of a machine based on the output from 'uname -srm'
899 #####################################################################