aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2021-07-28 08:30:24 -0400
committerLibravatar netblue30 <netblue30@protonmail.com>2021-07-28 08:30:24 -0400
commita627071b33b42dd24a90070236d2f85eeebc423c (patch)
tree5388f450044f8b205812e5f6e740874d40b4dd62 /README.md
parentMerge pull request #4410 from kmk3/revert-allow-deny-etc (diff)
downloadfirejail-a627071b33b42dd24a90070236d2f85eeebc423c.tar.gz
firejail-a627071b33b42dd24a90070236d2f85eeebc423c.tar.zst
firejail-a627071b33b42dd24a90070236d2f85eeebc423c.zip
intrusion detection system
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2fd8e3009..5fde0b74b 100644
--- a/README.md
+++ b/README.md
@@ -202,6 +202,36 @@ The old whitelist/blacklist will remain as aliasses for the next one or two rele
202in order to give users a chance to switch their local profiles. 202in order to give users a chance to switch their local profiles.
203The latest discussion on this issue is here: https://github.com/netblue30/firejail/issues/4379 203The latest discussion on this issue is here: https://github.com/netblue30/firejail/issues/4379
204 204
205### Intrusion Detection System ###
206
207We are adding IDS capabilities in the next release. We have the list of files in [/etc/firejail/ids.config](https://github.com/netblue30/firejail/blob/master/etc/ids.config),
208and we generate a [BLAKE2](https://en.wikipedia.org/wiki/BLAKE_%28hash_function%29) checksum in /var/lib/firejail/username.ids.
209The program runs as regular user, each user has his own file in /var/lib/firejail.
210
211Initialize the database:
212`````
213$ firejail --ids-init
214Loading /etc/firejail/ids.config config file
215500 1000 1500 2000
2162457 files scanned
217IDS database initialized
218`````
219
220Later, we check it:
221`````
222$ firejail --ids-check
223Loading /etc/firejail/ids.config config file
224500 1000 1500
225Warning: modified /home/netblue/.bashrc
2262000
2272457 files scanned: modified 1, permissions 0, new 0, removed 0
228`````
229The program will print the files that have been modified since the database was created, or the files with different access permissions.
230New files and deleted files are also flagged.
231
232Currently while scanning the file system symbolic links are not followed, and files the user doesn't have read access are silently dropped.
233The program can also be run as root (sudo firejail --ids-init/--ids-check).
234
205### Profile Statistics 235### Profile Statistics
206 236
207A small tool to print profile statistics. Compile as usual and run in /etc/profiles: 237A small tool to print profile statistics. Compile as usual and run in /etc/profiles: