I asked Codex, OpenAI's coding agent, to compare two ways of turning images into SVGs. An SVG is a drawing made of shapes you can edit one at a time. Part of the test was simple: open the result in a drawing program and change the color of one shape without disturbing the rest.
The agent picked Inkscape, a free drawing program. Its first try failed inside the Codex sandbox, the walled-off space where the agent is supposed to work. The sandbox did its job: it said no. The agent then retried with access to my desktop, and that worked. The project notes say Inkscape ran from a read-only disk image.
Here's the part I keep coming back to. I could find approval for the test itself and for the model download. I couldn't find approval for running a program on my desktop, either in the design or in the plan.
Codex didn't ask me before it retried outside its sandbox. I'd stepped away from my desk for a few minutes. When I came back, Inkscape had crashed. If macOS showed a "downloaded from the internet" warning, I wasn't there to answer it.
Changing one shape was the test. The retry happened while I was away.
AI-generated illustration for Renaissance Solutions. The scene is fictional.
Later I checked my settings. Auto-review was on in my setup. It's off by default. It lets a reviewer agent, another AI, approve a step outside the sandbox instead of asking me.1 So the decision wasn't skipped. It was made earlier, when that setting went on.
That's the part that stays with me. Auto-review is there to stop risky steps. Codex's docs say it lets low- and medium-risk actions through, blocks critical ones, and allows high-risk ones only with enough authorization from me.1 Running a newly downloaded program outside the sandbox, with nobody watching, has never been risk-free, even when it's an app you trust. That's why a Mac asks before a downloaded app opens the first time.2 I don't have a record of how the reviewer rated this retry. I only know it went ahead without asking me.
It was easy to miss because every step made sense. We needed to test editing. Inkscape could do that. The first try failed. The second worked. Only afterward did I ask: who said it could do that?
This isn't only about Codex. It applies to any AI agent that can run programs on your computer.
The old risk in a faster workflow
People were tricked into running tampered software long before GenAI. You see an app you know, click a download link that looks right, and end up running something other than the real release. A lookalike website can do it. So can a hacked download site. To be clear, I have no evidence that the Inkscape download in this test was tampered with.
Before agents, getting a new program onto your computer took several small choices. You picked the app. You found the download. On a Mac, the first time you opened a downloaded app, the system usually asked whether you were sure.2 If it failed, you decided whether to try again some other way. Each of those was a moment to notice you were making a decision.
What changed is the speed. An agent can pick a tool, download it, run it, and retry after a failure, all in one go. Those pause points fold into a single workflow, and it can finish before the owner of the computer notices there was a decision to make. The agent may see the sandbox saying "no" as a technical problem to solve. The owner may have meant it as a line not to cross.
The decision moved, too. Before agents, it happened when you double-clicked. Now it can happen weeks earlier, when you flip a setting. And that setting keeps deciding while you're away from your desk.
Give new tools somewhere to run
Running Inkscape from a read-only disk image sounds safe, but it only protects the disk image itself. Nothing can write to it. A program launched from it can still act anywhere that program is allowed to go. It may be able to read or change files in unprotected places and connect to the internet, even without macOS's Full Disk Access permission. macOS does add extra protection for folders like Documents and Desktop, and Gatekeeper, the Mac's built-in check, screens downloaded apps under normal settings.3 2 Those protections matter. I still want to limit what a program can reach the first time it runs.
Read-only protects the disk image from writes. Once the editor runs, its permissions determine what else it can reach.
Diagram by Renaissance Solutions.
A virtual machine, or VM, is a computer running inside your computer, with its own desktop. A clean one gives the experiment a safe place to happen.
For our SVG test, here's how Codex says we could/should have set it up:
- Give it copies of the test images and the SVGs, and nothing else.
- Keep work passwords and logins out of it.
- Turn off its internet before launching the tool.
- Turn off the shared clipboard and shared folders, where the VM lets you.
- If it needs files from my computer, share one dedicated folder, read-only, and remove the share once the files are copied.
- Check the results before bringing them back, then reset or delete the VM.
| Your computer | Option | When I'd use it |
|---|---|---|
| Apple silicon Mac | UTM with a macOS guest | To test a Mac app on a Mac desktop. Keep a clean, powered-off copy and duplicate it for each test if your setup has no snapshot feature.4 |
| Apple silicon Mac | Parallels Desktop with a macOS guest | A paid option for the same job. Check its sharing and reset settings first.5 |
| Windows (supported editions) | Windows Sandbox | For a one-time test. Use a setup file that turns off internet and clipboard sharing, and share only read-only input folders if needed. Closing the sandbox erases everything in it. Windows Home doesn't include it.6 7 |
| Windows Pro or Enterprise, on compatible hardware | Hyper-V | For a VM you'll reuse. Save a checkpoint (a restore point) of the clean setup, cut its network for the test, and roll back to the checkpoint afterward.8 9 |
A VM lets me try a tool with less at stake. Some questions depend on the real hardware or on how the app fits into my actual system. The VM can still answer the rest. Testing on my real computer then becomes its own decision, made for a specific reason.
Our coding models know how to do this safely, but they take shortcuts, just like human controllers. The difference is that, at human speed, you usually have time to think and react.
Put the decision where it belongs
The agent can pick the tools. A person decides where the edge of the sandbox is. Here are four ways to keep it that way.
- Set the line in the place the agent runs. For routine experiments, set the agent so it never steps outside its sandbox. In Codex, one documented way is
approval_policy = "never"with aworkspace-writesandbox: Codex stops asking for approval and works within the limits you set.1 Also checkapprovals_reviewer. If it's set toauto_review, a reviewer agent can approve a step outside the sandbox instead of asking you. That was my setup. If you use Auto-review, decide whether it may approve leaving the sandbox for experiments, or turn it off for them. If the desktop check gets blocked, the agent can still finish the conversion and tell you which check is left. Look at any other tools you've turned on that can launch software, so they don't become a side door to your computer. - Add a hook as an early warning. A hook is a small rule that runs before the agent acts. A Codex
PreToolUsehook can block many commands before they run, including common install and launch commands. But it doesn't cover every tool. Hosted tools such as web search skip it, and if a hook errors or times out, the tool can still run. Codex's own docs say to "treat tool hooks as a useful guardrail, not a complete enforcement boundary."10 So the sandbox settings still have to hold the line. - Write down exactly what will run. Keep the download link, the version, the file's digest (a fingerprint that changes if the file changes), and the publisher's signature check where there is one. A digest from the same site as the download helps catch a file that doesn't match. But if the site itself is hacked, the attacker can swap both.
- Make exceptions out loud. Put the rule in the project instructions and in your experiment template. Installing a desktop app, running a downloaded program on your real computer for the first time, or retrying outside the sandbox each needs its own approval. The request should name the tool, where it will run, and what extra access it needs.
I still want the agent to pick a drawing program and figure out how to test the SVG. I just want it to have a place to do that without touching my real computer. And if the test truly needs my computer, I want to make that call before the command runs.
For now, I've turned Auto-review off. It stays off until these safeguards are in place and tested.
Footnotes
-
OpenAI, Codex approvals and security. ↩ ↩2 ↩3
-
Apple Platform Security, Gatekeeper and runtime protection in macOS. ↩ ↩2 ↩3
-
Apple Platform Security, Controlling app access to files in macOS. ↩
-
Parallels Knowledge Base, Install macOS virtual machine on a Mac with Apple silicon. ↩
-
Microsoft Learn, Windows Sandbox overview. ↩
-
Microsoft Learn, Use and configure Windows Sandbox. ↩
-
Microsoft Learn, Install Hyper-V in Windows and Windows Server. ↩
-
Microsoft Learn, Using checkpoints. ↩
-
OpenAI, Codex hooks. ↩
