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