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