testvm: add SSH session command auditing
Some checks failed
Run nix flake check / flake-check (push) Failing after 1s

Enable Linux audit to log execve syscalls from interactive SSH sessions.
Uses auid filter to exclude system services and nix builds.

Logs forwarded to journald for Loki ingestion. Query with:
{host="testvmXX"} |= "EXECVE"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 03:07:10 +01:00
parent 70ec5f8109
commit 7fcc043a4d
4 changed files with 24 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
../../system
../../common/vm
../../common/ssh-audit.nix
];
# Host metadata (adjust as needed)

View File

@@ -11,6 +11,7 @@
../../system
../../common/vm
../../common/ssh-audit.nix
];
# Host metadata (adjust as needed)

View File

@@ -11,6 +11,7 @@
../../system
../../common/vm
../../common/ssh-audit.nix
];
# Host metadata (adjust as needed)