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