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