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