Threats & safeguards

Sandboxing

How can execution be contained?

Reference notes by Min · Reviewed October 11, 2026

Source-based definitionAlso: Execution isolation1 primary reference

Definition

Sandboxing runs software in an environment that restricts its interactions with the surrounding system.

A sandbox restricts the environment in which code or a task can operate. Its value depends on the boundaries actually enforced, such as filesystem mounts, network destinations, available credentials and resource limits.

What it covers

Filesystem
Allowed reads and writes.
Network
Destinations reachable by the process.
Resources
Execution time, memory and process limits.

Define the protected host resources and permitted work. An isolated compute process can still reach sensitive information through a mounted directory or broadly authorized network service.

In practice

Practical design patterns by Min.

  • Use temporary workspaces with explicit access rules.
  • Limit network egress and mounted secrets.
  • Treat isolation and authorization as complementary controls.

Provide only the files and tools needed for the task. Restrict outbound destinations and avoid exposing long-lived host credentials.

Set process, time, storage and compute limits, then capture outputs through a controlled path. Use an explicit review step before moving generated artifacts into a production workflow.

Working example

Running a generated script

An agent creates a data-cleaning script.

  1. Run it against a copy of the approved input.
  2. Restrict writes to the output directory.
  3. Review the result before applying it elsewhere.
Illustrative scenario, not a reported deployment.

Why the controls matter

A code-running agent can analyze a supplied dataset in an isolated workspace without gaining access to the operator’s entire home directory or production credentials.

Common pitfalls

  • Calling an unrestricted container a secure sandbox.
  • Assuming isolation makes data inside it safe to disclose.

A container label does not describe its effective isolation. Inspect mounts, privileges, network routes and credential availability.

Questions for operational review

Use these questions to decide what evidence your team needs. They are editorial prompts, not a compliance checklist.

  • What can the task read or modify?
  • Where can it send data?
  • How are its outputs promoted for use?

References

Primary documents reviewed for this entry. Examples and implementation patterns are editorial synthesis.

  1. NIST CSRC: Sandbox ↗Accessed October 11, 2026