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