Vibeleaderboard
← All Intel
Intel / post

Ng: sandbox agents with deterministic limits, not prompts

Source
x.com
Date
Andrew Ng@AndrewYNg

The OpenAI-Hugging Face hack was enabled by weak sandboxing. It is great that Nvidia is releasing open source tools for sandboxing AI agents. OpenWorker, our open-source agent harness supporting cybersecurity workflows, is proud to support this. A sandbox gives an agent limited permissions. OpenWorker is building on Nvidia OpenShell and will support running each agent's commands inside a sandbox. Only the files relevant to the task go in. Secret API keys, your web browser login credentials, the ability to access arbitrary websites, are inaccessible to the agent by default. These restrictions are implemented in deterministic code rather than by prompting an LLM, which can make mistakes or be susceptible to prompt injections. Further, all actions are logged for monitoring and audit. I'm grateful for @JensenHuang's leadership making AI agents more secure. OpenWorker (which @rohitcprasad and I are working on) will continue to improve security for agents.

Context

Andrew Ng argues that the way to keep an from causing damage is to limit what it can reach with code the model cannot change, rather than by instructing the model what not to do. In his post he says the OpenAI-Hugging Face hack was enabled by weak , welcomes NVIDIA's release of open source sandboxing tools for agents, and says OpenWorker, the open source for cybersecurity workflows that he is working on with the X user @rohitcprasad, is building on NVIDIA's OpenShell. A harness is the software around a model that gives it tools and carries out the commands it issues.

A sandbox is a restricted environment that the agent's commands run inside. In Ng's description, OpenWorker will place only the files relevant to a task inside it, and by default the agent cannot see secret API keys or web browser login credentials, or reach arbitrary websites. All of its actions are logged for monitoring and audit. The point he stresses is where these limits live: in deterministic code, which applies the same rule every time, rather than in instructions to an LLM. A model can make mistakes following an instruction, and it can be steered away from one by a , text planted in a file or web page that the agent reads and then obeys as if it were a command. A sandbox rule does not depend on what the model decides, so even an agent that has been hijacked this way cannot open a file that was never put inside.

This describes planned support rather than a shipped feature. Ng writes that OpenWorker will support running each agent's commands in a sandbox and gives no date. His post also asserts the cause of the OpenAI-Hugging Face incident without explaining how it happened; OpenAI's own report on the incident is the place to check that account. NVIDIA's post introducing OpenShell, published the same day, describes the runtime OpenWorker is building on.

Terms in this piece · Glossary
  • AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
  • sandbox — An isolated environment where AI-generated code or agent actions run without being able to touch anything real.
  • agent harness — The scaffolding around a model that turns it into a working agent — the loop, the tools it can call, and the rules for when to stop.
  • prompt injection — An attack that hides instructions in content an AI will read — a webpage, email, or document — tricking it into following the attacker instead of the user.
More from Andrew Ng
Recommended reads
Comments

Checking sign-in…

Loading comments…