Repository navigation
security: SecurityLens reads mainframe credential shapes; .proc members scanned (Part of #8625) - #8641
Conversation
…ers scanned (Part of #8625) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… (Part of #8625) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #8641 @ 811c7be: 1 failed check(s) == shard 2 (1669474 LOC) (failure) -- real |
…CL; .proc member scanned) (Part of #8625) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (c7c83ea) is not the one a maintainer labelled |
|
No description provided. |
Part of #8625 (slice 2 of 3; slice 1 is #8631).
What
SecurityLens.scan_contentcounts the mainframe credential shapes fromgitgalaxy/security/mainframe_secrets.pyonto the existinghardcoded_secretssignal forjcl,rexxandcobolfiles (embedded Db2CONNECT ... USING 'literal'). The snippet is a redacted label (JCL PASSWORD= [REDACTED]), never the value; sites carry line and column for SARIF.mainframe_secrets.py:mainframe_secret_sites()returns the located hits;mainframe_secret_hits()(Vault Sentinel) is nowlen()of it, so both consumers read one set of rules..procmember was blocked ("Unsupported Extension"); added to thejclprofile..jcl,.prc,.rexx,.execwere already scanned (checked with a real scan).galaxyscope --db-only, nothing hand-built): planted case and near-miss per member type (JCL,.proc,.prc, REXX, Db2 in REXX and COBOL).test_readme_hand_counts),docs_read_by_tests.txtregenerated.Golden
crucible_check.py(both legs, viagolden-lock.sh): PASS, zero diff, no re-bless of the language-crucible masters.tests/golden_doom_rosetta/mood.json.gzIS re-blessed (doom_rosetta_check.py --only mood --update --yes; only mood moves, 14 changes). Both causes are this PR's:jcl/DOOMAI2.JCLin the mood repo holds an in-stream FTP login (user doom doomguyin aDD *step). The new shape counts it ashardcoded_secrets:credential_files0 -> 1,sarif_errors3 -> 4, verdict PERFECT -> 6/7.jcl/DOOMMOVE.PROCis newly admitted (.procadded to thejclprofile; was "Unsupported Extension"). It is benign: files 400 -> 401, no hits.tests/doom_rosetta/manifest.csv: mood'sexpected_failsis nowcredentials(the test assertsexpected_fails_met).File-cap exception: own failure fix. The doom-rosetta
test_port_matches_golden[mood]failure was caused by this PR; the manifest.csv edit is the sixth hand-written file (6 in all).Gates
pr_gates --fast: 7/9 on the first run; the two failures (wiki extension count, staledocs_read_by_tests.txt) are fixed in this PR and re-verified (test_readme_hand_counts18 passed).audit_check.py: all clear. New tests 16 passed, plus the 85 Sentinel tests.Class / Sibling gaps
Class: mainframe credential shapes that the 16+ character quoted
hardcoded_secretssignature cannot see, reaching the engine scan through each member type that carries them. Handled here: JCLPASSWORD=/PARM=, in-stream FTPUSER/PASS, Db2CONNECT ... USING(REXX, COBOL), REXX literals next to a user ID, in.jcl/.prc/.proc/.rexx/.exec/.cbl. Sibling gaps: (1) CLIST members (.clist) are still blocked by aperture and have no language profile, so the CLIST shape fires in Vault Sentinel only; a CLIST profile is its own slice (new language). (2) Extensionless PDS members: scanned via thejcllibrary-directory rule only; REXX/CLIST members with no extension are not checked here. (3) Db2 CONNECT in.sql/ embedded SQL in other host languages (PL/I, C) is not routed through the lens.Remaining slices
Slice 3: CLIST language profile and extensions (new-language work), then the extensionless-member and other-host-language routing above.
Lessons for agents
PATHbetween Bash calls: re-export the selfscan venv bin each time orpythonis "command not found".pr_gates --fastruns ~13 min: start it withbg-job.sh start, thenbg-job.sh wait(foregroundtimeout 590kills it).🤖 Generated with Claude Code