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