# Sandbox, defined with a sourced example

GLOSSARY, read 12 Nov 2026

**The short answer.** A sandbox is a restricted, controlled execution environment that limits what software can reach, typically the file system and network. For coding agents it bounds what a command can touch even if the agent is misled. Google's Gemini CLI documentation says sandboxing isolates potentially dangerous operations such as shell commands or file modifications from the host system.

## Definition

A sandbox is a restricted, controlled execution environment that limits what software can reach, typically the file system and network. For coding agents it bounds what a command can touch even if the agent is misled. Sandbox flaws are therefore security bugs.

## Example from a real source

**Example.** Google's Gemini CLI documentation says sandboxing isolates potentially dangerous operations such as shell commands or file modifications from the host system.

## Related terms

- [Prompt injection](/glossary/prompt-injection/): Prompt injection is when input to a language model changes its behavior in ways its operator did not intend.
- [Indirect prompt injection](/glossary/indirect-prompt-injection/): Indirect prompt injection happens when the instructions come from content the agent reads, such as a web page, a file or a repository, instead of from the user.
- [Allowlist](/glossary/allowlist/): An allowlist is a documented list of elements that policy permits, with everything else denied.

## Where to read more

- [The Agent Surface Map](/agent-surface-map/)
- [The Action Control Matrix](/action-control-matrix/)
- [All glossary terms](/glossary/)

## Sources

- geminicli.com/docs/cli/sandbox/: https://geminicli.com/docs/cli/sandbox/ (read 12 Nov 2026)

Last reviewed 12 Nov 2026. Canonical: https://aiendpointsecurityranked.com/glossary/sandbox/
