feat(run): port-scope macOS sandbox-exec loopback to Firma endpoints#233
Merged
Conversation
This was referenced Jul 6, 2026
Closed
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Scope sandbox-exec loopback access to Firma's own ports so the wrapped agent cannot reach other local services.
02bfde9 to
18bd696
Compare
luca-iachini
added a commit
that referenced
this pull request
Jul 8, 2026
## What Documents the loopback egress enforcement model across backends: - `docs-site/src/content/docs/concepts/sandbox.md` — new **Loopback blocking** section (Linux seccomp guard, macOS sandbox-exec port-scope, proxy-only backends), updated network-boundary / proxy-bridge prose, and structural/invariant tables. - `crates/firma-run/src/backend/windows_wsl2.rs` — comment documenting the WSL2/Windows gap: the seccomp guard is Linux-host-only and not wired across the Windows->guest boundary; WSL2 stays proxy-only. `llms.txt` audit-channel + `network.loopback` action-class registry entries land in the branches that own them (#231 base; #232 linux; #233 macOS). ## Stack Based on #231 (audit channel, for the `network.loopback` model). Part of the fir-383 split replacing #216.
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.
What
macOS experimental
sandbox-execstructural mode: the TrustedBSD MAC profile denies all outbound, then re-allows loopback only to the proxy bridge and DNS stub ports (previously all of loopback was reachable). Other host loopback services are now denied.Structural block only —
sandbox-execdenials are not delivered to the Sidecar, so macOS emits no per-attempt signed audit event (known gap vs the Linux seccomp guard).