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