Skip to content

security: JS _0x identifiers, pull_request_target + head ref, toJSON(secrets) rules (Part of #8433) - #8630

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8433-20261118T1900Z
Nov 18, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8433-20261118T1900Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Slice 2 of 2 for #8433 (slice 1: #8614). Three more high_risk_execution members in SecurityLens, each scoped by HIGH_RISK_EXECUTION_SCOPE (#5463):

  • javascript-obfuscator identifiers: _0x + 4-6 lowercase hex used as a call, an index or a string-array / wrapper assignment (JS family only).
  • pull_request_target workflow whose ref: / repository: / run: line or script-body line expands github.head_ref or github.event.pull_request.head.(ref|sha|repo.full_name) (YAML only). Bounded to 150 lines after the trigger.
  • ${{ toJSON(secrets) }} (whole secrets context; yaml / markdown via the existing ${{ scope).

Tests: tests/security_auditing/test_js_actions_malware_idioms_8433.py, with a planted case and a near-miss per rule (0x1a2b3c, my_0x1a2b, _0xFFFF, bare _0x1a2b = 5; head_ref passed through an env: var, plain pull_request, github.base_ref; toJSON(github), toJSON(secrets.X), toJSON(vars)), plus language-scope tests.

Class / Sibling gaps

Class: common malware idioms with no SecurityLens rule (#8433). Members: Python exec / b64decode-write / marshal.loads (done, #8614); _0x obfuscator identifiers (done here); pull_request_target + head ref (done here); toJSON(secrets) (done here). Every member of the issue table is now handled.
Sibling gaps (not done, different mechanism): (1) javascript-obfuscator string-array rotation by shape alone (no _0x names, e.g. --identifier-names-generator mangled): needs a structural rule, not a name match; (2) a head ref more than 150 lines after the pull_request_target trigger is not seen (bounded for ReDoS); (3) actions/checkout of an untrusted ref via a step output rather than a github.* expression.

Gates

  • pr_gates --fast: 9/9 pass.
  • crucible_check.py (both golden legs): PASS, no drift.
  • pr_gates --ratchets: 6 pass; fact-crosscheck, completeness, ground-truth fail only because the mainframe corpus example-health-apis is not fetched on this box ("not fetched at its pinned ref"); they do not touch SecurityLens. CI is the check for them.
  • tests/security_auditing + test_source_reads.py: 1114 passed, 2 skipped, 2 xfailed.

🤖 Generated with Claude Code

…secrets) rules (Part of #8433)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 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 18, 2026 20:13
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 20:14
@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 18, 2026 20:15
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8630 @ ea465c7: 1 failed check(s)

== measure (shard 1/4) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44388691528/job/135100208959
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
cobol-stub:pass 2, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
cobol-stub:fail 2, cobol-stub:pass 1, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:pass 1, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:pass 5, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 5, java-ported:fail 5, java:fail 5
cobol-stub:pass 7, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 7, java-ported:fail 7, java:fail 7
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:unsupported 1, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:pass 4, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 4, java-ported:fail 4, java:fail 4
cobol-stub:unsupported 5, engine-facts:pass 1, forge-compile:fail 1, java-facade:unsupported 5, java-ported:unsupported 5, java:unsupported 5
cobol-stub:pass 9, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 9, java-ported:fail 9, java:fail 9
cobol-stub:unsupported 3, engine-facts:pass 1, forge-compile:fail 1, java-facade:unsupported 3, java-ported:unsupported 3, java:unsupported 3
cobol-stub:pass 6, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 6, java-ported:fail 6, java:fail 6
CICS crucible: 102 pass, 267 fail, 33 unsupported (402 cells)
NEW FAIL: ca-address-cwa//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-address-eib-commarea/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-channel-containers//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-get-container-set/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-http-inbound//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-http-inbound/echo/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-http-inbound/echo/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-post-wait-event/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-start-options//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-converse-status/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-parse-url/*/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
... 45 more
log tail:
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
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: cics-crucible-shard-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 17873
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 129468d6a5b423052cb3ca2b4841e9c2ae1740ecdd453b031dce305097b5d8cb
Finalizing artifact upload
Artifact cics-crucible-shard-1 successfully finalized. Artifact ID 14467377738
Artifact cics-crucible-shard-1 has been successfully uploaded! Final size is 17873 bytes. Artifact ID is 14467377738
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44388691528/artifacts/14467377738
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/11490df3-f767-42af-9d1c-755c7491831e' 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 18, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 20:31
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd
squid-shepherd Bot merged commit b21c0e3 into main Nov 18, 2026
100 of 102 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8433-20261118T1900Z branch November 18, 2026 20:37
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