Skip to content

feat: expand parser fixture matrix and unify sudo signal semantics#8

Merged
stacknil merged 1 commit intomainfrom
codex/feat/parser-fixture-matrix-v0.2
Mar 19, 2026
Merged

feat: expand parser fixture matrix and unify sudo signal semantics#8
stacknil merged 1 commit intomainfrom
codex/feat/parser-fixture-matrix-v0.2

Conversation

@stacknil
Copy link
Copy Markdown
Owner

Closes #4
Closes #5

Summary

  • expand sanitized sshd / pam_unix fixture coverage in both syslog_legacy and journalctl_short_full modes
  • keep unknown-line telemetry deterministic and explicit
  • move sudo handling onto the signal layer so detectors consume one unified input model
  • preserve detector thresholds and existing report schema

What changed

  • added dedicated parser fixture matrix files for syslog and journalctl short-full
  • added parser tests for recognized vs unrecognized coverage and unknown-pattern buckets
  • added SudoCommand and SudoSessionOpened signal kinds
  • migrated sudo burst detection from raw Event input to normalized signal input

Behavior preserved

  • detector thresholds unchanged
  • report schema unchanged
  • SSH/PAM auth signal behavior unchanged
  • unsupported PAM session-close lines remain telemetry-only

Verification

  • built with g++
  • passed test_parser
  • passed test_detector
  • passed test_cli

Deferred

  • sudo signal configurability via config.json
  • broader signal renaming from AuthSignal to a more general type

@stacknil stacknil merged commit 68554bd into main Mar 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant