tech:notes_auditd
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_auditd [2025/10/18 20:41] – Jean-Baptiste | tech:notes_auditd [2025/10/23 10:18] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| * [[Notes uptime reboot shutdown stime]] | * [[Notes uptime reboot shutdown stime]] | ||
| + | Install | ||
| ~~~bash | ~~~bash | ||
| apt-get install auditd audispd-plugins | apt-get install auditd audispd-plugins | ||
| ~~~ | ~~~ | ||
| + | Autres - Kernel | ||
| + | ~~~python | ||
| + | audit_backlog_limit=8192 audit=1 | ||
| + | ~~~ | ||
| + | Define Session Audit Rules | ||
| + | To audit session creation and termination: | ||
| + | ''/ | ||
| + | ~~~bash | ||
| + | -w / | ||
| + | ~~~ | ||
| + | |||
| + | To monitor user logins and logouts, you can add: | ||
| + | ~~~bash | ||
| + | -a always,exit -F arch=b64 -S execve -k session | ||
| + | -a always,exit -F arch=b32 -S execve -k session | ||
| + | ~~~ | ||
| + | |||
| + | Load the New Rules | ||
| + | ~~~bash | ||
| + | sudo auditctl -R / | ||
| + | ~~~ | ||
| + | |||
| + | Verif | ||
| + | ~~~bash | ||
| + | sudo auditctl -l | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | |||
| + | Auditd: Monitor logind events with auditd to detect suspicious activity. Example rule: | ||
| + | ~~~bash | ||
| + | auditctl -w /run/logind -p wa -k logind_activity | ||
| + | ~~~ | ||
| FIXME | FIXME | ||
tech/notes_auditd.1760812877.txt.gz · Dernière modification : de Jean-Baptiste
