Skip to content

fix(security): restrict SPM plugin network scope [DEVA11Y-481]#14

Merged
Crash0v3rrid3 merged 3 commits into
mainfrom
fix/DEVA11Y-481-restrict-network-scope
May 27, 2026
Merged

fix(security): restrict SPM plugin network scope [DEVA11Y-481]#14
Crash0v3rrid3 merged 3 commits into
mainfrom
fix/DEVA11Y-481-restrict-network-scope

Conversation

@sunny-se
Copy link
Copy Markdown
Collaborator

@sunny-se sunny-se commented May 26, 2026

Summary

  • F-012 / DEVA11Y-481 — SPM plugin declared unrestricted .all() network scope (CWE-250), amplifying blast radius of other findings.
  • Changed to .all(ports: []) in Package.swift, matching what shell scripts already enforce via --allow-network-connections 'all(ports: [])'.
  • Removed stale commented-out line.

Verification

  • swift build should succeed without changes to plugin behavior.
  • grep -r '\.all()' Package.swift should return no matches.
  • Shell scripts already pass all(ports: []) — no drift between manifest and CLI invocation.

Jira

DEVA11Y-481

🤖 Generated with Claude Code

F-012 / DEVA11Y-481 — The plugin declared unrestricted .all() network
scope (CWE-250) which amplifies blast radius of other findings.
Switch to .all(ports: []) matching what shell scripts already enforce.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sunny-se sunny-se requested a review from a team as a code owner May 26, 2026 08:58
sunny-se and others added 2 commits May 27, 2026 15:37
.all(ports: []) is semantically identical to .all() in SPM — empty
array means "all ports allowed". Change to .all(ports: [80, 443])
to actually restrict the plugin to HTTP/HTTPS ports only, blocking
port scanning and access to internal services on non-standard ports.

Verified end-to-end: plugin downloads CLI v1.34.2 over port 443 and
runs scan successfully with restricted scope.

DEVA11Y-481

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Crash0v3rrid3 Crash0v3rrid3 merged commit 543f5bd into main May 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants