Files
apex-twin/docs
lotherk 4de26b9b84 apex-twin 1.4.0: JWT audit, hash identification, ATT&CK mapping, process snapshot
Red, offline (tools_red.c):
- jwt_audit decodes header and payload, reports alg/typ/kid and the claims
  iss/aud/sub/exp/iat/nbf, and flags alg=none (critical), a missing exp, an
  expired token, a path-like kid, a missing audience/issuer and a validity over
  a year. With secret= it verifies HS256 over header.payload with HMAC-SHA256
  and reports valid or invalid; alg=none is never reported as verified.
- hash_id identifies MD5/NTLM, SHA-1/256/512, bcrypt, Argon2, crypt(3)
  formats and JWTs by shape. It cracks nothing.

Blue, offline (tools_blue.c):
- mitre_map maps recorded findings to ATT&CK techniques through keywords in
  title, tool, tags and CWE, and lists the finding ids per technique.
- process_snapshot reads /proc: name, exe, fd count, and flags executables
  under /tmp, /dev/shm or /var/tmp, deleted executables, reverse-shell command
  lines and more than 256 open files.

sha256.c gains a raw digest and HMAC-SHA256 for the JWT signature check.

Fixed the tool table capacity: g_tools[64] silently dropped tool number 65
(hash_id); it is 96 now.

Tests: HS256 valid and invalid tokens, alg=none and expired findings, a
path-like kid, malformed token, MD5/bcrypt/JWT identification, ATT&CK mapping
against real finding ids, and a spawned process with nc -e in its command line
caught by the snapshot. 490 checks, ASan suite green, analyze clean (a
false-positive uninitialised-buffer report was removed by decoding into a
calloc buffer), release-check green including distcheck 1.4.0.
2026-11-21 11:46:10 +00:00
..