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