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