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