1 | #####################################################################
|
---|
2 | #
|
---|
3 | # Configuration file template for samhain.
|
---|
4 | #
|
---|
5 | #####################################################################
|
---|
6 | #
|
---|
7 | # -- empty lines and lines starting with '#' are ignored
|
---|
8 | # -- you can PGP clearsign this file -- samhain will check (if compiled
|
---|
9 | # with support) or otherwise ignore the signature
|
---|
10 | # -- CHECK mail address
|
---|
11 | #
|
---|
12 | # To each log facility, you can assign a threshold severity. Only
|
---|
13 | # reports with at least the threshold severity will be logged
|
---|
14 | # to the respective facility (even further below).
|
---|
15 | #
|
---|
16 | #####################################################################
|
---|
17 | #
|
---|
18 | # SETUP for file system checking:
|
---|
19 | #
|
---|
20 | # (i) There are several policies, each has its own section. Put files
|
---|
21 | # into the section for the appropriate policy (see below).
|
---|
22 | # (ii) To each policy, you can assign a severity (further below).
|
---|
23 | # (iii) To each log facility, you can assign a threshold severity. Only
|
---|
24 | # reports with at least the threshold severity will be logged
|
---|
25 | # to the respective facility (even further below).
|
---|
26 | #
|
---|
27 | #####################################################################
|
---|
28 |
|
---|
29 |
|
---|
30 | [ReadOnly]
|
---|
31 | #
|
---|
32 | # for these files, only access time is ignored
|
---|
33 | #
|
---|
34 | # dir=/usr/bin
|
---|
35 | # dir=/bin
|
---|
36 |
|
---|
37 | file = /var
|
---|
38 | file = /bin
|
---|
39 | file = /usr
|
---|
40 | file = /tmp
|
---|
41 | file = /etc
|
---|
42 |
|
---|
43 | dir=1/usr
|
---|
44 |
|
---|
45 | [EventSeverity]
|
---|
46 | #
|
---|
47 | # Here you can assign severities to policy violations.
|
---|
48 | # If this severity exceeds the treshold of a log facility (see below),
|
---|
49 | # a policy violation will be logged to that facility.
|
---|
50 | #
|
---|
51 | # Severity for verification failures.
|
---|
52 | #
|
---|
53 | SeverityReadOnly=crit
|
---|
54 | SeverityLogFiles=crit
|
---|
55 | SeverityGrowingLogs=crit
|
---|
56 | SeverityIgnoreNone=crit
|
---|
57 | SeverityAttributes=crit
|
---|
58 | #
|
---|
59 | # We have a file in IgnoreAll that might or might not be present.
|
---|
60 | # Setting the severity to 'info' prevents messages about deleted/new file.
|
---|
61 | #
|
---|
62 | SeverityIgnoreAll=info
|
---|
63 |
|
---|
64 | #
|
---|
65 | # Files : file access problems
|
---|
66 | # Dirs : directory access problems
|
---|
67 | # Names : suspect (non-printable) characters in a pathname
|
---|
68 | #
|
---|
69 | SeverityFiles=crit
|
---|
70 | SeverityDirs=crit
|
---|
71 | SeverityNames=warn
|
---|
72 |
|
---|
73 | [Log]
|
---|
74 | #
|
---|
75 | # Set threshold severity for log facilities
|
---|
76 | # Values: debug, info, notice, warn, mark, err, crit, alert, none.
|
---|
77 | # 'mark' is used for timestamps.
|
---|
78 | #
|
---|
79 | # By default, everything equal to and above the threshold is logged.
|
---|
80 | # The specifiers '*', '!', and '=' are interpreted as
|
---|
81 | # 'all', 'all but', and 'only', respectively (like syslogd(8) does,
|
---|
82 | # at least on Linux).
|
---|
83 | #
|
---|
84 | # MailSeverity=*
|
---|
85 | # MailSeverity=!warn
|
---|
86 | # MailSeverity==crit
|
---|
87 | #
|
---|
88 | MailSeverity=none
|
---|
89 | PrintSeverity=info
|
---|
90 | #PRINTClass = "RUN FIL STAMP"
|
---|
91 | LogSeverity=none
|
---|
92 | SyslogSeverity=none
|
---|
93 | ExportSeverity=none
|
---|
94 | DatabaseSeverity=none
|
---|
95 |
|
---|
96 | #databaseseverity=info
|
---|
97 |
|
---|
98 | [Database]
|
---|
99 | # setdbname=samhain
|
---|
100 | # setdbtable=log
|
---|
101 | setdbuser=samhain
|
---|
102 | setdbpassword=samhain
|
---|
103 | #AddToDBHash=log_msg
|
---|
104 | # AddToDBHash=log_host
|
---|
105 |
|
---|
106 |
|
---|
107 | [Utmp]
|
---|
108 | #
|
---|
109 | # 0 to switch off, 1 to activate
|
---|
110 | #
|
---|
111 | LoginCheckActive=1
|
---|
112 |
|
---|
113 | # Severity for logins, multiple logins, logouts
|
---|
114 | #
|
---|
115 | SeverityLogin=info
|
---|
116 | SeverityLoginMulti=warn
|
---|
117 | SeverityLogout=info
|
---|
118 |
|
---|
119 | # interval for login/logout checks
|
---|
120 | #
|
---|
121 | LoginCheckInterval=60
|
---|
122 |
|
---|
123 | [Misc]
|
---|
124 | #
|
---|
125 | # whether to become a daemon process
|
---|
126 | Daemon=no
|
---|
127 |
|
---|
128 | SetOutgoingIP = 127.0.0.1
|
---|
129 | SetServerInterface = 127.0.0.1
|
---|
130 |
|
---|
131 | UseSeparateLogs=no
|
---|
132 |
|
---|
133 | SetUseSocket = yes
|
---|
134 | SetSocketAllowUid=0
|
---|
135 | SetSocketPassword=samhain
|
---|
136 |
|
---|
137 | SetClientFromAccept = yes
|
---|
138 |
|
---|
139 | SetUdpActive=no
|
---|
140 |
|
---|
141 | # the maximum time between client messages (seconds)
|
---|
142 | # (this is a log server-only option; the default is 86400 sec = 1 day
|
---|
143 | #
|
---|
144 | # SetClientTimeLimit=1800
|
---|
145 |
|
---|
146 | UseClientSeverity = yes
|
---|
147 | UseClientClass = yes
|
---|
148 |
|
---|
149 | # Format for message headers
|
---|
150 | #
|
---|
151 | # MessageHeader="%S %T %F %L "
|
---|
152 |
|
---|
153 | # priority for peer != address as notified by client
|
---|
154 | # (lookup may fail on firewalled client)
|
---|
155 | #
|
---|
156 | # SeverityLookup = warn
|
---|
157 |
|
---|
158 | # time till next file check (seconds)
|
---|
159 | SetFilecheckTime=600
|
---|
160 |
|
---|
161 | # Only highest-level (alert) reports will be mailed immediately,
|
---|
162 | # others will be queued. Here you can define, when the queue will
|
---|
163 | # be flushed (Note: the queue is automatically flushed after
|
---|
164 | # completing a file check).
|
---|
165 | #
|
---|
166 | # maximum time till next mail (seconds)
|
---|
167 | SetMailTime=86400
|
---|
168 |
|
---|
169 | # maximum number of queued mails
|
---|
170 | SetMailNum=10
|
---|
171 |
|
---|
172 | # where to send mail to
|
---|
173 | SetMailAddress=root@localhost
|
---|
174 |
|
---|
175 | # mail relay host
|
---|
176 | # SetMailRelay=relay.yourdomain.de
|
---|
177 |
|
---|
178 | # The binary. Setting the path will allow
|
---|
179 | # samhain to check for modifications between
|
---|
180 | # startup and exit.
|
---|
181 | #
|
---|
182 | # SamhainPath=/usr/local/bin/samhain
|
---|
183 |
|
---|
184 | # where to get time from
|
---|
185 | # SetTimeServer=www.yourdomain.de
|
---|
186 |
|
---|
187 | # where to export logs to
|
---|
188 | SetLogServer=localhost
|
---|
189 |
|
---|
190 | # timer for time stamps
|
---|
191 | SetLoopTime=10
|
---|
192 |
|
---|
193 | # trusted users (root and the effective user are always trusted)
|
---|
194 | # TrustedUser=bin
|
---|
195 |
|
---|
196 | # whether to test signature of files (init/check/none)
|
---|
197 | # - if 'none', then we have to decide this on the command line -
|
---|
198 | #
|
---|
199 | ChecksumTest=check
|
---|
200 |
|
---|
201 |
|
---|
202 | [Clients]
|
---|