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