samhain ignore the ssl infrastructure for exim
[mirror/dsa-puppet.git] / modules / samhain / files / per-host / spohr.debian.org / samhainrc
1 ##
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
4 ##
5
6 #####################################################################
7 #
8 # Configuration file template for samhain.
9 #
10 #####################################################################
11
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
17 #
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).
21 #
22 #####################################################################
23 #
24 # SETUP for file system checking:
25
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).
34 #
35 #####################################################################
36
37 #####################################################################
38 #
39 # Files are defined with: file = /absolute/path
40 #
41 # Directories are defined with:                  dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
43 #
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.):
46 #
47 # [ReadOnly]
48 # dir = /some/directory
49 # [IgnoreAll]
50 # file = /some/directory
51 #
52 # You can use shell-style globbing patterns, like: file = /path/foo*
53
54 ######################################################################
55
56 [Misc]
57 ##
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
61 ##
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
71 [Attributes]
72 ##
73 ## for these files, only changes in permissions and ownership are checked
74 ##
75 file=/etc/mtab
76 file=/etc/ssh_random_seed
77 file=/etc/asound.conf
78 file=/etc/resolv.conf
79 file=/etc/localtime
80 file=/etc/ioctl.save
81 file=/etc/passwd.backup
82 file=/etc/shadow.backup
83 file=/etc/postfix/prng_exch
84 file=/etc/adjtime
85 file=/etc/lvm/.cache
86 file=/etc/lvm/cache
87 file=/etc/lvm/cache/.cache
88 file=/etc/network/run/ifstate
89 file=/var/state/samhain/samhain_file
90 file=/etc/bind/db.debian.net
91 file=/etc/exim4/bsmtp
92
93
94
95 #
96 # There are files in /etc that might change, thus changing the directory
97 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
98 #
99 file=/etc
100 file=/etc/ssh
101 file=/etc/network/run
102 file=/etc/bind
103
104 # These are the directories for the files we handle with puppet
105 file=/etc/samhain
106 file=/etc/munin
107 file=/etc/exim4
108 file=/etc/exim4/ssl
109 file=/etc/apt
110 file=/etc/apt/apt.conf.d
111 file=/etc/apt/sources.list.d
112 file=/etc/puppet
113 file=/etc/default
114 file=/etc/logrotate.d
115 file=/etc/nagios
116 file=/etc/nagios/nrpe.d
117 file=/etc/nagios3/puppetconf.d
118 file=/etc/cron.d
119 file=/usr/lib/nagios/plugins
120 file=/usr/sbin
121
122 [LogFiles]
123 ##
124 ## for these files, changes in signature, timestamps, and size are ignored 
125 ##
126 file=/var/run/utmp
127 file=/etc/motd
128
129
130
131 #####################################################################
132 #
133 # This would be the proper syntax for parts that should only be
134 #    included for certain hosts.
135 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
136 #    result still has the proper syntax for the config file.
137 # You may have any number of @HOSTNAME/@end brackets.
138 # HOSTNAME should be the fully qualified 'official' name 
139 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
140 #    No IP number - except if samhain cannot determine the 
141 #    fully qualified hostname.
142 #
143 # @HOSTNAME
144 # file=/foo/bar
145 # @end
146 #
147 # These are two examples for conditional inclusion/exclusion
148 # of a machine based on the output from 'uname -srm'
149 #
150 # $Linux:2.*.7:i666
151 # file=/foo/bar3
152 # $end
153 #
154 # !$Linux:2.*.7:i686
155 # file=/foo/bar2
156 # $end
157 #
158 #####################################################################
159
160 [GrowingLogFiles]
161 ##
162 ## for these files, changes in signature, timestamps, and increase in size
163 ##                  are ignored 
164 ##
165 file=/var/log/warn
166 file=/var/log/messages
167 file=/var/log/wtmp
168 file=/var/log/faillog
169 file=/var/log/auth.log
170 file=/var/log/daemon.log
171 file=/var/log/user.log
172 file=/var/log/kern.log
173 file=/var/log/syslog
174
175
176 [IgnoreAll]
177 ##
178 ## for these files, no modifications are reported
179 ##
180 ## This file might be created or removed by the system sometimes.
181 ##
182 file=/etc/resolv.conf.pcmcia.save
183 file=/etc/nologin
184 file=/etc/postfix/debian.db
185 file=/etc/postfix/debian
186 file=/etc/ssh/ssh_known_hosts
187 file=/etc/ssh/ssh-rsa-shadow
188 file=/var/lib/misc/ssh-rsa-shadow
189 file=/etc/.da-backup.trace
190 file=/etc/postfix/debianhosts
191 file=/etc/postfix/debianhosts.db
192
193 # We handle these files with puppet - please to not be bothering us
194 file=/etc/samhain/samhainrc
195 file=/etc/munin/munin-node.conf
196 file=/etc/exim4/blacklist
197 file=/etc/exim4/callout_users
198 file=/etc/exim4/exim4.conf
199 file=/etc/exim4/grey_users
200 file=/etc/exim4/helo-check
201 file=/etc/exim4/locals
202 file=/etc/exim4/localusers
203 file=/etc/exim4/rbllist
204 file=/etc/exim4/rcpthosts
205 file=/etc/exim4/rhsbllist
206 file=/etc/exim4/virtualdomains
207 file=/etc/exim4/whitelist
208 file=/etc/exim4/local-auto.conf
209 file=/etc/exim4/ssl/ca.crt
210 file=/etc/exim4/ssl/ca.crl
211 file=/etc/exim4/ssl/thishost.crt
212 file=/etc/exim4/ssl/thishost.key
213 file=/etc/apt/preferences
214 file=/etc/apt/sources.list.d/volatile.list
215 file=/etc/apt/sources.list.d/security.list
216 file=/etc/apt/sources.list.d/debian.org.list
217 file=/etc/apt/sources.list.d/debian.restricted.list
218 file=/etc/apt/sources.list.d/debian.list
219 file=/etc/apt/sources.list.d/backports.org.list
220 file=/etc/apt/apt.conf.d/local-recommends
221 file=/etc/apt/apt.conf.d/local-pdiffs
222 file=/etc/puppet/puppet.conf
223 file=/etc/default/puppet
224 file=/etc/logrotate.d/exim4-paniclog
225 file=/etc/logrotate.d/exim4-base
226 file=/usr/sbin/dsa-update-apt-status
227 file=/usr/sbin/dsa-update-samhain-status
228 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
229 file=/etc/nagios/nrpe.d/debianorg.cfg
230 file=/etc/nagios/obsolete-packages-ignore
231 file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
232 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
233 file=/etc/nagios3/puppetconf.d/auto-services.cfg
234 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
235 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
236 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg
237 file=/usr/lib/nagios/plugins/dsa-check-packages
238 file=/usr/lib/nagios/plugins/dsa-check-soas
239 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
240 file=/usr/lib/nagios/plugins/dsa-check-samhain
241 file=/usr/lib/nagios/plugins/dsa-check-statusfile
242 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
243 file=/usr/lib/nagios/plugins/dsa-check-config
244 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
245 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
246 file=/usr/lib/nagios/plugins/dsa-check-puppet
247 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
248 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
249 file=/usr/lib/nagios/plugins/dsa-check-dabackup
250 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
251 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
252 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
253 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
254 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
255
256 [IgnoreNone]
257 ##
258 ## for these files, all modifications (even access time) are reported
259 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
260 ##      just to watch whether someone will access it ...
261 ##
262
263 [Prelink]
264 ##
265 ## Use for prelinked files or directories holding them
266 ##
267
268
269 [ReadOnly]
270 ##
271 ## for these files, only access time is ignored
272 ##
273 dir=/usr/bin
274 dir=/bin
275 dir=/boot
276 #
277 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
278 # so we go 3 levels deep
279 #
280 dir=3/sbin
281 dir=/usr/sbin
282 dir=/lib
283 dir=3/usr/lib
284 #
285 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
286 #        so we go 3 levels deep there too
287 #
288 dir=3/etc
289
290 # Various directories / files that may include / be SUID/SGID binaries
291 #
292 #
293 file=/usr/lib/pt_chown
294 # X11, in Debian X7 this is now a symlink
295 #dir=/usr/X11R6/bin
296 #dir=/usr/X11R6/lib/X11/xmcd/bin
297 # Apache:
298 #file=/usr/lib/apache/suexec
299 #file=/usr/lib/apache/suexec.disabled
300 # Extra directories:
301 #dir=/opt/gnome/bin
302 #dir=/opt/kde/bin
303
304 [User0]
305 [User1]
306 ## User0 and User1 are sections for files/dirs with user-definable checking
307 ## (see the manual) 
308
309
310 [EventSeverity]
311 ##
312 ## Here you can assign severities to policy violations.
313 ## If this severity exceeds the treshold of a log facility (see below),
314 ## a policy violation will be logged to that facility.
315 ##
316 ## Severity for verification failures.
317 ##
318 # SeverityReadOnly=crit
319 # SeverityLogFiles=crit
320 # SeverityGrowingLogs=crit
321 # SeverityIgnoreNone=crit
322 # SeverityAttributes=crit
323 # SeverityUser0=crit
324 # SeverityUser1=crit
325
326 # Default behaviour
327 SeverityReadOnly=crit
328 SeverityLogFiles=crit
329 SeverityGrowingLogs=warn
330 SeverityIgnoreNone=crit
331 SeverityAttributes=crit
332
333
334 ##
335 ## We have a file in IgnoreAll that might or might not be present.
336 ## Setting the severity to 'info' prevents messages about deleted/new file.
337 ##
338 # SeverityIgnoreAll=crit
339 SeverityIgnoreAll=info
340
341 ## Files : file access problems
342 # SeverityFiles=crit
343
344 ## Dirs  : directory access problems
345 # SeverityDirs=crit
346
347 ## Names : suspect (non-printable) characters in a pathname
348 # SeverityNames=crit
349
350 # Default behaviour
351 SeverityFiles=crit
352 SeverityDirs=crit
353 SeverityNames=warn
354
355
356 [Log]
357 ##
358 ## Switch on/OFF log facilities and set their threshold severity
359 ##
360 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
361 ## 'mark' is used for timestamps.
362 ##
363 ##
364 ## Use 'none' to SWITCH OFF a log facility
365 ## 
366 ## By default, everything equal to and above the threshold is logged.
367 ## The specifiers '*', '!', and '=' are interpreted as  
368 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
369 ## at least on Linux). Examples:
370 ## MailSeverity=*
371 ## MailSeverity=!warn
372 ## MailSeverity==crit
373
374 ## E-mail
375 ##
376 # MailSeverity=none
377
378 ## Console
379 ##
380 # PrintSeverity=info
381
382 ## Logfile
383 ##
384 # LogSeverity=mark
385
386 ## Syslog
387 ##
388 # SyslogSeverity=none
389
390 ## Remote server (yule)
391 ##
392 # ExportSeverity=none
393
394 ## External script or program
395 ##
396 # ExternalSeverity = none
397
398 ## Logging to a database
399 ##
400 # DatabaseSeverity = none
401
402 # Default behaviour
403 MailSeverity=crit
404 PrintSeverity=none
405 LogSeverity=info
406 SyslogSeverity=alert
407 ExportSeverity=none
408
409
410
411
412
413 #####################################################
414 #
415 # Optional modules
416 #
417 #####################################################
418
419 # [SuidCheck]
420 ##
421 ## --- Check the filesystem for SUID/SGID binaries
422 ## 
423
424 ## Switch on
425 #
426 # SuidCheckActive = yes
427
428 ## Interval for check (seconds)
429 #
430 # SuidCheckInterval = 7200
431
432 ## Alternative: crontab-like schedule
433 #
434 # SuidCheckSchedule = NULL
435  
436 ## Directory to exclude 
437 #
438 # SuidCheckExclude = NULL
439
440 ## Limit on files per second (0 == no limit)
441 #
442 # SuidCheckFps = 0
443
444 ## Alternative: yield after every file
445 #
446 # SuidCheckYield = no
447
448 ## Severity of a detection
449 #
450 # SeveritySuidCheck = crit
451
452 ## Quarantine SUID/SGID files if found
453 #
454 # SuidCheckQuarantineFiles = yes
455
456 ## Method for Quarantining files:
457 #  0 - Delete or truncate the file.
458 #  1 - Remove SUID/SGID permissions from file.
459 #  2 - Move SUID/SGID file to quarantine dir.
460 #
461 # SuidCheckQuarantineMethod = 0
462
463 ## For method 1 and 3, really delete instead of truncating
464
465 # SuidCheckQuarantineDelete = yes
466
467 # [Kernel]
468 ##
469 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
470 ##
471
472 ## Switch on/off
473 #
474 KernelCheckActive = True
475
476 ## Check interval (seconds); btw., the check is VERY fast
477 #
478 # KernelCheckInterval = 300
479
480 ## Severity
481 #
482 # SeverityKernel = crit
483
484
485 # [Utmp]
486 ##
487 ## --- Logging of login/logout events
488 ##
489
490 ## Switch on/off
491 #
492 LoginCheckActive = True
493
494 ## Severity for logins, multiple logins, logouts
495
496 # SeverityLogin=info
497 # SeverityLoginMulti=warn
498 # SeverityLogout=info
499
500 ## Interval for login/logout checks
501 #
502 # LoginCheckInterval = 300
503
504
505 # [Database]
506 ##
507 ## --- Logging to a relational database
508 ##
509
510 ## Database name
511 #
512 # SetDBName = samhain
513
514 ## Database table
515 #
516 # SetDBTable = log
517
518 ## Database user
519 #
520 # SetDBUser = samhain
521
522 ## Database password
523 #
524 # SetDBPassword = (default: none)
525
526 ## Database host
527 #
528 # SetDBHost = localhost
529
530 ## Log the server timestamp for received messages
531 #
532 # SetDBServerTstamp = True
533
534 ## Use a persistent connection
535 #
536 # UsePersistent = True
537
538 # [External]
539 ##
540 ## Interface to call external scripts/programs for logging
541 ##
542
543 ## The absolute path to the command
544 ## - Each invocation of this directive will end the definition of the
545 ##   preceding command, and start the definition of 
546 ##   an additional, new command
547 #
548 # OpenCommand = (no default)
549
550 ## Type (log or rv)
551 ## - log for log messages, srv for messages received by the server
552 #
553 # SetType = log
554
555 ## The command (full command line) to execute
556 #
557 # SetCommandLine = (no default)
558
559 ## The environment (KEY=value; repeat for more)
560 #
561 # SetEnviron = TZ=(your timezone)
562
563 ## The TIGER192 checksum (optional)
564 #
565 # SetChecksum = (no default)
566
567 ## User who runs the command
568 #
569 # SetCredentials = (default: samhain process uid)
570
571 ## Words not allowed in message
572 #
573 # SetFilterNot = (none)
574
575 ## Words required (ALL of them)
576 #
577 # SetFilterAnd = (none)
578
579 ## Words required (at least one)
580 #
581 # SetFilterOr = (none)
582
583 ## Deadtime between consecutive calls
584 #
585 # SetDeadtime = 0
586
587 ## Add default environment (HOME, PATH, SHELL)
588 #
589 # SetDefault = no
590
591
592 #####################################################
593 #
594 # Miscellaneous configuration options
595 #
596 #####################################################
597
598 [Misc]
599
600 ## whether to become a daemon process
601 ## (this is not honoured on database initialisation)
602 #
603 # Daemon = no
604 Daemon = yes
605
606 ## whether to test signature of files (init/check/none)
607 ## - if 'none', then we have to decide this on the command line -
608 #
609 # ChecksumTest = none
610 ChecksumTest=check
611
612 ## whether to drop linux capabilities that are not required
613 ## - will make a root process a 'mere mortal' in many respects
614 #
615 # UseCaps = yes
616
617 ## Set nice level (-19 to 19, see 'man nice'),
618 ## and I/O limit (kilobytes per second; 0 == off)
619 ## to reduce load on host.
620 #
621 # SetNiceLevel = 0
622 # SetIOLimit = 0
623
624 ## The version string to embed in file signature databases
625 #
626 # VersionString = NULL
627
628 ## Interval between time stamp messages
629 #
630 # SetLoopTime = 60
631 SetLoopTime = 600
632
633 ## Interval between file checks 
634 #
635 # SetFileCheckTime = 600
636 SetFileCheckTime = 7200
637
638 ## Alternative: crontab-like schedule
639 #
640 # FileCheckScheduleOne = NULL
641
642 ## Alternative: crontab-like schedule(2)
643 #
644 # FileCheckScheduleTwo = NULL
645
646 ## Report only once on modified fles 
647 ## Setting this to 'FALSE' will generate a report for any policy 
648 ## violation (old and new ones) each time the daemon checks the file system.
649 #
650 # ReportOnlyOnce = True
651
652 ## Report in full detail
653 #
654 # ReportFullDetail = False
655
656 ## Report file timestamps in local time rather than GMT
657 #
658 # UseLocalTime = No
659
660 ## The console device (can also be a file or named pipe)
661 ## - There are two console devices. Accordingly, you can use
662 ##   this directive a second time to set the second console device.
663 ##   If you have not defined the second device at compile time,
664 ##   and you don't want to use it, then:
665 ##   setting it to /dev/null is less effective than just leaving
666 ##   it alone (setting to /dev/null will waste time by opening
667 ##   /dev/null and writing to it)
668 #
669 # SetConsole = /dev/console
670
671 ## Activate the SysV IPC message queue
672 #
673 # MessageQueueActive = False
674
675
676 ## If false, skip reverse lookup when connecting to a host known 
677 ## by name rather than IP address (i.e. trust the DNS)
678 #
679 # SetReverseLookup = True
680
681 ## --- E-Mail ---
682
683 # Only highest-level (alert) reports will be mailed immediately,
684 # others will be queued. Here you can define, when the queue will
685 # be flushed (Note: the queue is automatically flushed after
686 # completing a file check).
687 #
688 SetMailTime = 86400
689
690 ## Maximum number of mails to queue
691 #
692 SetMailNum = 10
693
694 ## Recipient (max. 8)
695 #
696 SetMailAddress=samhain-reports@debian.org
697
698 ## Mail relay (IP address)
699 #
700 SetMailRelay = master.debian.org
701
702 ## Custom subject format
703 #
704 MailSubject = [Samhain at %H] %T: %S
705
706 ## --- end E-Mail ---
707
708 ## Path to the prelink executable
709 #
710 # SetPrelinkPath = /usr/sbin/prelink
711
712 ## TIGER192 checksum of the prelink executable
713 #
714 # SetPrelinkChecksum = (no default)
715
716
717 ## Path to the executable. If set, will be checksummed after startup
718 ## and before exit.
719 #
720 # SamhainPath = (no default)
721
722
723 ## The IP address of the log server
724 #
725 # SetLogServer = (default: compiled-in)
726
727 ## The IP address of the time server
728 #
729 # SetTimeServer = (default: compiled-in)
730
731 ## Trusted Users (comma delimited list of user names) 
732 #
733 # TrustedUser = (no default; this adds to the compiled-in list)
734
735 ## Path to the file signature database
736 #
737 # SetDatabasePath = (default: compiled-in)
738
739 ## Path to the log file
740 #
741 # SetLogfilePath = (default: compiled-in)
742
743 ## Path to the PID file
744 #
745 # SetLockPath = (default: compiled-in)
746
747
748 ## The digest/checksum/hash algorithm
749 #
750 # DigestAlgo = TIGER192
751
752
753 ## Custom format for message header. 
754 ## CAREFUL if you use XML logfile format.
755 ##
756 ## %S severity
757 ## %T timestamp
758 ## %C class
759 ##
760 ## %F source file
761 ## %L source line
762 #
763 # MessageHeader="%S %T "
764
765
766 ## Don't log path to config/database file on startup
767 #
768 # HideSetup = False
769
770 ## The syslog facility, if you log to syslog
771 #
772 # SyslogFacility = LOG_AUTHPRIV
773 SyslogFacility=LOG_LOCAL2
774
775 ## The message authentication method
776 ## - If you change this, you *must* change it
777 ##   on client *and* server
778 #
779 # MACType = HMAC-TIGER
780
781
782 ## everything below is ignored
783 [EOF]
784
785 #####################################################################
786 # This would be the proper syntax for parts that should only be
787 #    included for certain hosts.
788 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
789 #    result still has the proper syntax for the config file.
790 # You may have any number of @HOSTNAME/@end brackets.
791 # HOSTNAME should be the fully qualified 'official' name 
792 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
793 #    No IP number - except if samhain cannot determine the 
794 #    fully qualified hostname.
795 #
796 # @HOSTNAME
797 # file=/foo/bar
798 # @end
799 #
800 # These are two examples for conditional inclusion/exclusion
801 # of a machine based on the output from 'uname -srm'
802 # $Linux:2.*.7:i666
803 # file=/foo/bar3
804 # $end
805 #
806 # !$Linux:2.*.7:i686
807 # file=/foo/bar2
808 # $end
809 #
810 #####################################################################