feat(security): add private network SSRF rule + .yarnrc.yml config scanning#149
Merged
feat(security): add private network SSRF rule + .yarnrc.yml config scanning#149
Conversation
1429bd6 to
b2c7406
Compare
β¦anning - Add `block-ssrf-private-network` locked rule blocking RFC1918 (10.x, 172.16-31.x, 192.168.x), loopback (127.x), all-zeros, and IPv6 private ranges β defense in depth with existing selfprotect pre-filter - Add `.yarnrc.yml` scanning to configscan: detect malicious `yarnPath` overrides (CVE-2025-59828 attack vector) and `npmRegistryServer` redirects - Add 8 new tests: 5 SSRF private network cases, 3 yarnrc cases - Update 3 existing scenarios from SELFPROTECT β BLOCKED (engine now catches) - Update rule counts: 41β42 total, 38β39 locked
b2c7406 to
c9c0e17
Compare
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.
Summary
block-ssrf-private-networklocked rule with full IANA Special Purpose Registry coverage β blocks RFC1918, loopback, link-local, CGN (100.64/10), benchmarking (198.18/15), documentation nets (TEST-NET-1/2/3), IETF protocol assignments, and IPv6 ULA/link-local.yarnrc.ymlscanning to configscan: detect maliciousyarnPathoverrides (CVE-2025-59828) andnpmRegistryServerredirectscode.dny.dev/ssrfvia regexBlocked IP ranges
10.0.0.0/8172.16.0.0/12192.168.0.0/16127.0.0.0/80.0.0.0169.254.0.0/16100.64.0.0/10198.18.0.0/15192.0.0.0/24192.0.2.0/24198.51.100.0/24203.0.113.0/24fc00::/7fe80::/10Test plan
crust start+ agent sendscurl http://10.0.0.1/adminβ blocked