Files
apex-twin/docs
lotherk 816fd0fb57 apex-twin 1.17.0: kernel, sudoers, CSRF and auditd audits
Red:
- csrf_audit: fetch one page, list its forms (action, method, input count) and
  flag forms without an input whose name contains csrf, token or nonce; the
  page is evidence.

Blue:
- kernel_hardening: 12 sysctls (ASLR, kptr_restrict, dmesg_restrict,
  perf_event_paranoid, unprivileged_bpf_disabled, ptrace_scope,
  protected_hardlinks/symlinks, suid_dumpable, modules_disabled,
  bpf_jit_harden) plus core_pattern, scored with per-check findings; optional
  root prefix.
- sudoers_audit: /etc/sudoers and /etc/sudoers.d, flagging NOPASSWD,
  !authenticate, broad ALL=(ALL), direct user rules and world-writable files.
- auditd_audit: event type counts, AVC denials, failed auth, top exe paths and
  keys from an auditd log under /var/log or the state directory.

Fixed evidence ordering: sort by mtime and nanoseconds before the filename, so
two blobs written in the same second no longer flip (a flake the coverage build
exposed).

Tests with a sysctl tree, a sudoers tree, a two-form page and an auditd log.
663 checks, ASan suite green, analyze clean, release-check green including
distcheck 1.17.0.
2026-11-21 15:38:56 +00:00
..