mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3973] [Issue]: Professor Mari workspace shell is not OS-level sandboxed #2148
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#2148
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 @SpicyMarinara on GitHub (Jul 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3973
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Professor Mari executes model-generated shell commands with the Marinara process user's host permissions. Setting the repository as the working directory does not prevent access to files, credentials, environment secrets, network resources, or paths outside the selected workspace.
Expected behavior
Workspace tools should execute inside an OS-level security boundary that restricts filesystem and network access. Only the selected workspace should be exposed, preferably read-only by default, with protection against path traversal and symlink escapes and explicit approval required for shell commands, writes, and network access.
Actual behavior
Shell commands run under the same OS user as Marinara, receive a copy of the server process environment, and use the repository path only as their starting directory. The reporter confirmed that Professor Mari could inspect files outside the Marinara workspace before Marinara was placed inside an external sandbox.
Steps to reproduce
b7545a6) from a GitHub pull on Ubuntu Jammy Jellyfish.Environment
b7545a6), release titled "Latest and minimum safe version"Logs, screenshots, or video
Relevant implementation reported as: spawn(shell, shellArgs, { cwd: this.workspaceRoot, env, windowsHide: true }); No screenshots or video provided.
Additional context
Suggested severity: Critical. A remote or compromised model endpoint, prompt injection, or model error could potentially cause arbitrary host file access, credential exposure, code execution, modification, or data exfiltration. Initial mitigation should disable unrestricted bash by default, require explicit opt-in and per-command confirmation, warn that the runtime is not sandboxed, and recommend Docker or equivalent containment until native sandboxing is implemented. Documentation should not claim Professor Mari cannot reach the rest of the computer unless that guarantee is enforced by an OS-level boundary.
Discord thread: Security: Professor Mari workspace shell is not actually sandboxed
Discord thread link: https://discord.com/channels/1417099416812392641/1529785179592200284
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: