mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5892] Sandbox scan residuals: package-store trees and macOS teardown survivors #3253
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Sep 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5892
Originally assigned to: @kolacheee on GitHub.
In one sentence: two documented residuals from #5786's post-execution scan (PR #5891) that were consciously left open, so they have a tracked home instead of living only in PR prose.
1. Package-store trees are outside the scan
The scan deliberately skips
node_modules,.pnpm, and.pnpm-store(cost: they dwarf the rest of the workspace, and the scan runs twice per bash command). A command can therefore still plant a ready-madenode_modules/<pkg>/—package.jsonplus code that executes on the server's nextrequire. Mitigating context: writing there was always sandbox-permitted (builds need it), and the review floor defends the manifests that control what legitimately gets installed. But planted store content is an arbitrary-code vector the sandbox does not answer today. Possible directions: a cheap store-integrity check against the lockfile on boot; scanning only store paths the run's own output mentions; or accepting and documenting it as the sandbox's boundary.2. macOS teardown survivors can write after the scan
Bubblewrap on Linux gives the sandbox
--die-with-parentand--unshare-all, so nothing outlives teardown. Seatbelt on macOS has no PID-namespace equivalent: PR #5891 adds SIGKILL escalation for the direct child, but a backgrounded grandchild (or anything that survives the escalated kill) can still write a sensitive file after the post-execution scan walks. Scope precisely: "any process surviving seatbelt teardown", not just backgrounded grandchildren. Possible directions: process-group kill (spawnwithdetached+ negative-pid kill), a delayed second scan sweep, or accepting the platform limitation with the current documentation.Neither residual weakens what #5891 ships — the reported #5786 class (new sensitive-by-name files under normal command shapes) is closed on all platforms, with Linux fully sealed.