Skip to content

Commit 54872ac

Browse files
sunny-seclaude
andcommitted
fix(security): restrict SPM plugin network scope to .all(ports: [])
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>
1 parent 0428b32 commit 54872ac

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ let package = Package(
1919
),
2020
permissions: [
2121
.allowNetworkConnections(
22-
// scope: .all(ports: []),
23-
scope: .all(),
22+
scope: .all(ports: []),
2423
reason: "Please allow network connection permission to authenticate and run accessibility rules."
2524
),
2625
.writeToPackageDirectory(reason: "Please allow writing to package directory for logging.")

0 commit comments

Comments
 (0)