Repository navigation
security: language-scope high_risk_execution alternatives (Part of #5463) - #5508
Merged
Merged
Conversation
#5463) Each alternative declares the languages it is an execution vector in; scan_content takes the file language and drops the rest (unknown language keeps old behaviour). C/C++ require( x ), asio::require(e, ...), Lua require(...) no longer fire. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…5463) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 18, 2026 17:49
squid-protocol
enabled auto-merge (squash)
October 18, 2026 17:53
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5463
SecurityLens.THREAT_SIGNATURES["high_risk_execution"]is one language-blind alternation. It now has a scope table (HIGH_RISK_EXECUTION_SCOPE): the first rule matching the start of a hit decides which languages it applies to, andscan_content(..., language=)drops the rest (also in the minified fast-screen).galaxyscope.pypasseslang_id. Unknown language (None) or an unclaimed hit keeps the old behaviour.Class table (every alternative)
require( x ),asio::require(e, ...), Lua clean; Node firesGolden masters
Re-blessed (both legs,
golden-lock.sh crucible_check.py --update --yes). All ~240 diffs areDynamic Code Executioncounts falling: false positives removed, e.g. Kotlinrequire(preconditions (okhttp), DartFunction(type, Pythonassert (+ string, DB2SYSTEM(in JCL, PHPfunction ($x)closures (laravel), Luarequire/eval.Gates
pr_gates --fast6/6,--ratchets8/8 pass;tests/security_auditing,test_galaxyscope.py, gate-parity pass.Sibling gaps
None found in the SecurityLens signature table. (Note:
Function\s*\(is re.I, so JSfunction ($x)still matches; unchanged, not language-related.)Remaining slices
None: acceptance met. Other THREAT_SIGNATURES keys (io, state_mutation, reflection_metaprogramming) are equally unscoped; not touched here.
🤖 Generated with Claude Code