enodia-sentinal/tests
Luna 9ebc355936 Add host posture checks (roadmap v0.8: posture check)
Add `enodia-sentinel posture check` — a config-hygiene audit that finds
the conditions making a host easy to attack, complementing the live
detectors. Checks: SSH root/password/empty-password login (Include-aware,
first-wins sshd resolution), passwordless and group/world-writable
sudoers, world-writable or non-root PATH directories, loose permissions
on sensitive files (/etc/shadow, /etc/passwd, ...), and downgraded
package-signature policy (reusing pkgdb.siglevel_alert).

Findings reuse the Alert type, so they serialize through the existing
JSON/triage pipeline (`posture check --json`). Each check is a pure
evaluator over injected content/stat facts plus a thin system reader, so
the 18 new tests need no root or live /etc. Posture is command-driven and
never runs in the daemon loop, per the v0.8 exit criterion.

SIDs 100040-100047 (classtype host-posture). Sample config and docs
(COMMAND_REFERENCE, OPERATIONS, ROADMAP, SPECIFICATION) updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 05:15:06 -07:00
..
__init__.py Relicense under GPL-3.0-or-later 2026-05-31 06:52:34 -07:00
test_detectors.py Relicense under GPL-3.0-or-later 2026-05-31 06:52:34 -07:00
test_exec_rules.py Add event-driven eBPF execve layer with a Snort-style rule engine 2026-05-31 07:16:53 -07:00
test_fim.py Add file integrity monitoring (Tripwire-style), auto-refreshed via pacman hook 2026-05-31 22:18:42 -07:00
test_netutil.py Relicense under GPL-3.0-or-later 2026-05-31 06:52:34 -07:00
test_notify.py Add read-only web dashboard and phone push notifications 2026-05-31 16:18:00 -07:00
test_posture.py Add host posture checks (roadmap v0.8: posture check) 2026-06-10 05:15:06 -07:00
test_rootcheck.py Add signed-package verification and anti-rootkit cross-view (v0.7) 2026-06-01 05:42:57 -07:00
test_tamper.py Add signed-package verification and anti-rootkit cross-view (v0.7) 2026-06-01 05:42:57 -07:00
test_triage.py Add false-positive triage via package-ownership provenance 2026-05-31 22:05:00 -07:00
test_web.py Add read-only web dashboard and phone push notifications 2026-05-31 16:18:00 -07:00