What is Sandbox?
In Turkish: Kum havuzu (sandbox) · Topic: Safety and ethics
An isolated, controlled environment where AI-generated or AI-run code can operate without being able to harm real systems, data or networks.
How does it work?
A sandbox is usually built with an isolation layer such as a virtual machine or a container. Inside it, a model can create files, run code and even make mistakes, but its network access, visible files and available resources are limited by boundaries set in advance. If something goes wrong, the environment is wiped and rebuilt while the real system stays untouched. Security researchers treat sandboxing as one of the basic safeguards, both for probing risky model behavior and for letting code-running agents operate safely.
Why does it matter?
As models turn into agents that write and execute code, mistakes cost more. A sandbox does not assume the model will always behave; it limits the damage when it does not. It is not perfect, though: a flaw in the isolation or a loosely configured setting can let something cross the boundary.
Example
A coding assistant runs the program it wrote inside an isolated container rather than on the user's own computer, so if the program tries to delete files, only the temporary environment is affected.
FAQ
Is a sandbox the same as a virtual machine?
No. A sandbox is the goal, isolated execution, while virtual machines and containers are some of the methods used to achieve it.
Can a model escape a sandbox?
In a well-configured environment it is difficult, but isolation software can have vulnerabilities. That is why sandboxes are paired with monitoring and permission limits rather than relied on alone.