enodia-sentinal/tests
Luna 69798b26e4 Add systemd unit posture checks
Close the remaining v0.8 posture bullet: flag enabled systemd units with
group/world-writable unit files (systemd_unit_writable, sid 100050) and
units whose ExecStart binary runs from a writable/unsafe path such as
/tmp, /dev/shm, /var/tmp, /home, or /run/user (systemd_exec_unsafe_path,
sid 100051).

- posture.systemd_findings/parse_systemctl_show/read_systemd_units, wired
  into posture.run() behind the new posture_systemd config knob.
- read_systemd_units shells out to systemctl with timeouts and fails closed
  on non-systemd hosts; the dashboard /api/posture surfaces findings for free.
- Unit tests for the parser and evaluator; TestRunIntegration patches the
  new reader so run() never touches live systemctl.
- Docs: COMMAND_REFERENCE posture list, ROADMAP v0.8 bullet, RUNBOOKS
  Runbook 2 triggers, config TOML knob.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 02:27:19 -07:00
..
__init__.py Relicense under GPL-3.0-or-later 2026-05-31 06:52:34 -07:00
test_detectors.py Add memory obfuscation and ps-hidden process detection 2026-06-13 03:55:09 -07:00
test_docs_versioning.py Document packaging and release artifacts 2026-06-17 00:22:43 -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_incident.py Add incident grouping (roadmap v0.8: incident list/show/export) 2026-06-10 17:52: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_packaging.py Document packaging and release artifacts 2026-06-17 00:22:43 -07:00
test_posture.py Add systemd unit posture checks 2026-06-19 02:27:19 -07:00
test_respond.py Persist dry-run response plans 2026-06-13 05:53:48 -07:00
test_rootcheck.py Add memory obfuscation and ps-hidden process detection 2026-06-13 03:55:09 -07:00
test_ruleops.py Generate event rule documentation 2026-06-15 18:52:28 -07:00
test_schema_contracts.py Add dashboard integrity/watchdog console 2026-06-18 17:39:53 -07:00
test_status.py Add status command (roadmap v0.8: status --json) 2026-06-10 05:17:29 -07:00
test_syscall_rules.py Add event-driven memory syscall telemetry 2026-06-13 05:45:30 -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 dashboard integrity/watchdog console 2026-06-18 17:39:53 -07:00