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