Files
apex-twin/docs
lotherk f2a1fb4b59 apex-twin 1.10.0: RDP and SMB negotiation, SUID baseline
Red:
- rdp_probe: X.224 Connection Request with an RDP negotiation request for
  TLS|CredSSP (0x0f). Parses the Connection Confirm for the selected protocol
  (RDP, TLS, CredSSP, RDSTLS, HYBRID_EX) or the failure code, and reports
  whether NLA is in use. One connection, no logon.
- smb_probe: SMB2 NEGOTIATE offering 2.0.2, 2.1, 3.0, 3.0.2 and 3.1.1, then
  reports dialect, signing required/enabled, capabilities, max transact/read/
  write and the server GUID; an SMB1 answer is reported as such. No session
  and no authentication.

Blue:
- suid_baseline: create/verify a SHA-256 manifest of SUID/SGID files under
  /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin, /bin and /sbin
  (symlinked directories skipped). Verify reports planted, removed and
  mode/hash-changed setuid binaries; optional root prefix for a mounted image.

Tests: RDP frames selecting CredSSP and a negotiation failure, an SMB2 server
answering 3.1.1 with signing and a fixed GUID, and a SUID tree where one file is
planted, one removed and two change. 579 checks, ASan suite green, analyze
clean, release-check green including distcheck 1.10.0.

The SUID fixture documents a kernel behaviour: writing to a setuid file clears
the setuid bit, so a rewritten binary appears as gone unless the mode is set
again.
2026-11-21 13:30:38 +00:00
..