Repository navigation
security: Vault Sentinel reads mainframe credential shapes (Part of #8625) - #8631
Conversation
…8625) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #8631 @ 5f4973a: 1 failed check(s) == Small audits (failure) -- real |
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (667f237) is not the one a maintainer labelled |
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (83c2b10) is not the one a maintainer labelled |
Pull request was converted to draft
|
No description provided. |
|
No description provided. |
Part of #8625 (security epic #8427). Slice 1: Vault Sentinel reads mainframe credential shapes.
What
SecurityLens'shardcoded_secretswants a quoted value of 16+ characters; a JCLPASSWORD=is at most 8 characters and unquoted, so those leaks passed. New leaf modulegitgalaxy/security/mainframe_secrets.py(mainframe_secret_hits) is added to Vault Sentinel's content check besideEXTRA_SECRETS. It feeds Sentinel only, so engine scoring and golden masters do not move. Redaction is unchanged (one[REDACTED]line per hit, never the value).Shapes, each with a planted case and a near-miss, run through the real Sentinel (nothing mocked) over extensionless members and
.jcl/.rexxnames:PASSWORD=on JOB (also the(old,new)form);PARM='... PASSWORD=x'on EXEC.DD */DD DATA) FTPUSER id pwandPASS pwlines.CONNECT TO x USER u USING literal, in REXX or embedded SQL.pw = 'literal'and CLISTSET &PW = literalwithin 5 lines of a user ID.&PWsymbolics,:PWhost variables,//*//* *// COBOL*comments, empty or computed values, a literal with no user ID nearby,USERwith no password, FTP-looking lines outside a data card, and a RACFALTUSER ... PASSWORD(...)documentation member.Manuals are named in the module docstring by title (z/OS MVS JCL Reference JOB/EXEC; Communications Server IP User's Guide and Commands FTP; Db2 for z/OS SQL Reference CONNECT; TSO/E REXX Reference and CLISTs). I could not open them from this environment, so page numbers are not cited and the syntax forms are from memory of those manuals: a reviewer should check them.
Class / Sibling gaps
Class: credential shapes mainframe estates leak that the engine's
hardcoded_secretssignature cannot read (short or unquoted values, JCL/FTP/Db2-connect syntax). Handled here: JCL PASSWORD, EXEC PARM, FTP in-stream USER/PASS, Db2 CONNECT literal, REXX and CLIST literal beside a user ID. Sibling gaps: (1) aPARM=continued across several JCL lines is read per line only; (2) in-stream FTP using a.netrc-stylemachine/login/passwordcard; (3) Db2CONNECTsplit across lines in embedded SQL; (4) REXX/CLIST literals more than 5 lines from the user ID, or a user ID inside a PROC symbolic default; (5) the engine's owngalaxyscopescan (SARIF, scoring) does not report these shapes: that would move golden masters and needs its own slice; (6) whether the aperture reads JCL/PROC/REXX/CLIST members for the engine scan, as the issue asks, is not checked here (Sentinel reads any text file).Remaining slices
.netrccard and multi-line CONNECT.Gates
pytestthe three vault_sentinel test files: 113 passed.pr_gates --fast: 9/9 pass (lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected).churn selfcheck: 0 problems.🤖 Generated with Claude Code