Tries to read files or access the network
Sandbox
Both sandboxing and command confirmation are meant to protect my computer. What does each one limit?
Both sandboxing and command confirmation are meant to protect my computer. What does each one limit?
Tries to read files or access the network
Defines which resources can be reached
The system returns an observable result
A Sandbox is a runtime boundary; it reduces blast radius but does not replace permissions, review, or user approval.
Provide a restricted runtime: Code runs under OS sandbox controls, in a container, or in a virtual machine with limited files, processes, and network access.
Reduce host impact: A poisoned dependency or bad command is less able to read or modify sensitive host files even if it damages the sandbox.
Limit inputs first: Mount only what is needed, use mock data, and control the network instead of passing production credentials into the sandbox.
Prepare an isolated environment for the test code with only the project code/ directory mounted and a mock data connection. State the file and network boundaries; do not inject production keys or database credentials.