You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration-file.md
+99-1Lines changed: 99 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ This parameter will come on each event produced by the process.
87
87
88
88
Defines where the events will be stored.
89
89
90
-
It receives a system path, ex: `C:\Users\event.json` (Windows systems) or `\home\events.json` (Unix systems).
90
+
It receives a system path, ex: `C:\Users\events.json` (Windows systems) or `\home\events.json` (Unix systems).
91
91
92
92
-### max_file_checksum
93
93
@@ -102,6 +102,19 @@ This parameter will come on each event produced by the process.
102
102
103
103
To speed up hashing, decrease this value, minimum value `1`, and maximum value `128`, more than that will increase the event processing time and CPU consumption.
104
104
105
+
-### max_file_size
106
+
107
+
Integer
108
+
{: .label .label-purple }
109
+
Advanced
110
+
{: .label .label-red }
111
+
112
+
Default value: `128`.
113
+
114
+
Defines the maximum size of `events.json` file before being rotated.
115
+
116
+
we recommend to maintain this value as default. Increasing it will allow to rotate the file less times. Decreasing it will increase the rotations of the file.
117
+
105
118
-### endpoint
106
119
107
120
Section
@@ -308,6 +321,78 @@ This parameter will come on each event produced by the process.
308
321
309
322
---
310
323
324
+
-## hashscanner
325
+
326
+
Section
327
+
{: .label .label-green }
328
+
329
+
Defines the current behaviour of file hash scans.
330
+
331
+
Hash scanner will take your primary engine config paths to be scanned.
332
+
If you only have Audit paths defined Hash scanner will scan over those paths.
333
+
If you only have Monitor paths defined Hash scanner will scan monitor section defined paths.
334
+
If both engines are defined Hash scanner will select Audit (as usually is the critical one).
335
+
336
+
337
+
-### file
338
+
339
+
String
340
+
{: .label }
341
+
342
+
Default value: `C:\ProgramData\fim\fim.db` for Windows systems, `/var/lib/fim/fim.db` for Unix systems.
343
+
344
+
Defines where the hash database will be stored.
345
+
346
+
It receives a system path, ex: `C:\Users\events.json` (Windows systems) or `\home\events.json` (Unix systems).
347
+
348
+
-### enabled
349
+
350
+
Boolean
351
+
{: .label .label-purple }
352
+
353
+
Default value: `true`.
354
+
355
+
It defines whether the hash scanner thread starts or not.
356
+
357
+
-### interval
358
+
359
+
Integer
360
+
{: .label .label-purple }
361
+
Advanced
362
+
{: .label .label-red }
363
+
364
+
Default value: `60`.
365
+
366
+
Defines the window interval to run hash scans, hashscanner thread will sleep the defined interval.
367
+
368
+
To speed up scans, decrease this value, minimum value `5` (not recommended for bigger paths more than 5.000 files), and suggested as maximum value `1440` (24h), more than that will introduce security risks. This scan is not intended for real-time analysis for that matter you should use Monitor or Audit engine.
369
+
370
+
-### algorithm
371
+
372
+
String
373
+
{: .label}
374
+
375
+
Default value: `Sha256`.
376
+
377
+
Allows to define hashing algoritmh applied to each file.
378
+
379
+
{: .note }
380
+
> The `algorithm` parameter support the following values:
381
+
> -`Sha224` or `sha224` or `SHA224` or `224`, use Sha224 as hashing algorithm.
382
+
> -`Sha256` or `sha256` or `SHA256` or `256`, use Sha256 as hashing algorithm.
383
+
> -`Sha384` or `sha384` or `SHA384` or `384`, use Sha384 as hashing algorithm.
384
+
> -`Sha512` or `sha512` or `SHA512` or `512`, use Sha512 as hashing algorithm.
385
+
> -`Keccak224` or `keccak224` or `KECCAK224` or `K224`, use Keccak224 as hashing algorithm.
386
+
> -`Keccak256` or `keccak256` or `KECCAK256` or `K256`, use Keccak256 as hashing algorithm.
387
+
> -`Keccak384` or `keccak384` or `KECCAK384` or `K384`, use Keccak384 as hashing algorithm.
388
+
> -`Keccak512` or `keccak512` or `KECCAK512` or `K512`, use Keccak512 as hashing algorithm.
389
+
>
390
+
> If `algorithm` is changed after FIM first scan (`fim.db` file is present) you should remove `fim.db` file to avoid false positive events.
391
+
>
392
+
> Take into account that increasing the hash algorithm could lead to higher scan times so keep in mind the relation between interval and algorithm.
393
+
394
+
---
395
+
311
396
-## log
312
397
313
398
Section
@@ -335,6 +420,19 @@ This parameter will come on each event produced by the process.
335
420
336
421
The supported options are [debug, info, error and warning].
337
422
423
+
-### max_file_size
424
+
425
+
Integer
426
+
{: .label .label-purple }
427
+
Advanced
428
+
{: .label .label-red }
429
+
430
+
Default value: `64`.
431
+
432
+
Defines the maximum size of `fim.log` file before being rotated.
433
+
434
+
we recommend to maintain this value as default. Increasing it will allow to rotate the file less times. Decreasing it will increase the rotations of the file.
435
+
338
436
{: .note }
339
437
> The `ignore`,`allowed` and `exclude` parameters has two different formats:
0 commit comments