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