Skip to content

Secrets shunt: whole-file + DER certs; COBOL continuation secrets; SARIF position audit (Part of #4987) - #5074

Merged
squid-protocol merged 4 commits into
mainfrom
churn/4987-20261014T0041Z
Oct 14, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/4987-20261014T0041Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Part of #4987 (ticks: recorders position audit, aperture secrets shunt, COBOL continuation secrets).

Class

The lens and the aperture shunt decide from one bounded, line-bound view of a file; recorders could substitute positions the lens never recorded.

Member Status
Key/cert file > 64 KB fixed: chunked scan (8 MB cap, 64-byte overlap); a PRIVATE marker anywhere keeps it a leak; past the cap stays a leak
Binary DER .cer/.crt/.der/.p7b fixed: public when it parses as a certificate / PKCS#7 signedData; a cert needs a tbsCertificate opening 0xA0 (v3) or 0x02 (v1 serial), so PKCS#8 and encrypted PKCS#8 (inner SEQUENCE opens with an OID), PKCS#12 (.p12/.pfx, OID 1.2.840.113549.1.12), unknown shapes stay leaks
COBOL item with name / PIC / VALUE on separate lines (+ 6-digit sequence area) fixed; level stays on the name's line
COBOL false positives this surfaced (88 PROMPT-FOR-SEARCH-KEYS, INVALID-KEY VALUE 'Invalid key pressed' in CardDemo) fixed: level 88 excluded, a literal containing a blank is a message
Recorders position audit clean: SARIF is the only recorder emitting lens positions; new test pins that it never invents a line/column
signal_processor ext-only is_critical_leak vs aperture's public verdict not reachable: a public .crt is excluded as unsupported extension, never scored (checked with a real scan)

Recall trade-off: a COBOL VALUE literal containing a blank is no longer a secret (also for same-line items). A real credential with a space is missed; this is what removes the message-text false positives (CardDemo INVALID-KEY).

Tests: tests/security_auditing/test_secrets_shunt_4987.py (chunk boundary, cap, DER shapes, continuation forms, negatives, ReDoS).

Gates: pr_gates --fast 6/6, --ratchets 7/7 (0 skipped); crucible_check both legs PASS, no golden drift (no bless).

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 01:29
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 01:29
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit e59b197 into main Oct 14, 2026
42 checks passed
@squid-protocol
squid-protocol deleted the churn/4987-20261014T0041Z branch October 14, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant