Skip to content

security: SecurityLens reads mainframe credential shapes; .proc members scanned (Part of #8625) - #8641

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8625-20261118T2350Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8625-20261118T2350Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Part of #8625 (slice 2 of 3; slice 1 is #8631).

What

  • SecurityLens.scan_content counts the mainframe credential shapes from gitgalaxy/security/mainframe_secrets.py onto the existing hardcoded_secrets signal for jcl, rexx and cobol files (embedded Db2 CONNECT ... 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 now len() of it, so both consumers read one set of rules.
  • Aperture: a .proc member was blocked ("Unsupported Extension"); added to the jcl profile. .jcl, .prc, .rexx, .exec were already scanned (checked with a real scan).
  • Real-scan test (galaxyscope --db-only, nothing hand-built): planted case and near-miss per member type (JCL, .proc, .prc, REXX, Db2 in REXX and COBOL).
  • Wiki overview extension count 367 -> 368 (test_readme_hand_counts), docs_read_by_tests.txt regenerated.

Golden

crucible_check.py (both legs, via golden-lock.sh): PASS, zero diff, no re-bless of the language-crucible masters.

tests/golden_doom_rosetta/mood.json.gz IS re-blessed (doom_rosetta_check.py --only mood --update --yes; only mood moves, 14 changes). Both causes are this PR's:

  • New true positive: jcl/DOOMAI2.JCL in the mood repo holds an in-stream FTP login (user doom doomguy in a DD * step). The new shape counts it as hardcoded_secrets: credential_files 0 -> 1, sarif_errors 3 -> 4, verdict PERFECT -> 6/7.
  • jcl/DOOMMOVE.PROC is newly admitted (.proc added to the jcl profile; was "Unsupported Extension"). It is benign: files 400 -> 401, no hits.

tests/doom_rosetta/manifest.csv: mood's expected_fails is now credentials (the test asserts expected_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, stale docs_read_by_tests.txt) are fixed in this PR and re-verified (test_readme_hand_counts 18 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_secrets signature cannot see, reaching the engine scan through each member type that carries them. Handled here: JCL PASSWORD= / PARM=, in-stream FTP USER/PASS, Db2 CONNECT ... 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 the jcl library-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

  • A sandbox shell loses PATH between Bash calls: re-export the selfscan venv bin each time or python is "command not found".
  • pr_gates --fast runs ~13 min: start it with bg-job.sh start, then bg-job.sh wait (foreground timeout 590 kills it).

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 19, 2026 00:40
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 00:40
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 19, 2026 00:46
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8641 @ 811c7be: 1 failed check(s)

== shard 2 (1669474 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44430851500/job/135247651884
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[mood]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[mood] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
summary.verdict: 'PERFECT' -> '6/7'
summary.verdict6: 'PERFECT' -> '5/6'
file added: jcl/DOOMMOVE.PROC
exclusion removed: jcl/DOOMMOVE.PROC
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "mood: 15 difference(s) from the golden\n summary.by_level: {'error': 3, 'warning': 22} -> {'warning': 22, 'error': 4...'6/7'\n summary.verdict6: 'PERFECT' -> '5/6'\n file added: jcl/DOOMMOVE.PROC\n exclusion removed: jcl/DOO
1 failed, 10 passed, 28 deselected in 243.34s (0:04:03)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 2 (1669474 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: agentic-cobol-doom-codex,dartdoom,doomgeneric,edge-classic,fps-cob,gzdoom,mood,odamex,room4doom,rust-doom,sdl-doom
T0: 1795048897
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/2dc7ea33-ce12-4903-b864-f0420ba4a0a7' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 19, 2026
…CL; .proc member scanned) (Part of #8625)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (c7c83ea) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 19, 2026 01:39
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 19, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 19, 2026 01:43
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 01:44
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd
squid-shepherd Bot merged commit 2bf82cf into main Nov 19, 2026
136 of 169 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8625-20261118T2350Z branch November 19, 2026 02:39
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