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