Untrusted software, in the firmware

Watch from 0:00 on YouTube

Out of the box, this little Dell could update its own BIOS over the internet. It could reach out on its own to fetch recovery images. It sent full telemetry. And it carried an anti-theft agent that lives below the operating system and can put software back into it after you’ve wiped the disk.

Silent self-update. Phoning home. Telemetry on by default. An instruction channel nobody reviewing the operating system would ever see. I’d just spent a weekend finding exactly those 4 patterns in the AI skills on my Mac. The motherboard was doing all of them, one layer further down.

This is the build of Nagi: a separate machine where the risky half of my AI tooling runs, inside walls I can actually test.

The machine and the walls

Watch from 1:00 on YouTube

I switched off every one of those firmware channels before an operating system went on. Doing that meant downloading 3 programs and running them with admin rights: the BIOS update, a Dell configuration tool, and a runtime it needed. The same pattern my audit flagged. The difference is that each one was checked against the vendor’s published checksum and signature before it ran, and the recovery image was in place before the step that couldn’t be undone. You can’t always avoid running someone else’s code. You can always do it with evidence.

One setting refused to change: the anti-theft agent. It rejects every value from software, which is fair, since an anti-theft feature software could switch off would be useless. It’s dormant, with no service running and nothing installed, so the exposure is theoretical, and I’ll finish it at the console.

Then the layers:

Layer What it is
host Debian
guest a virtual machine, with Claude inside it
golden a snapshot of the finished guest
the rule that matters most the guest may not reach any private address: not my home network, not the wifi it sits on, not my overlay. The open internet, yes. Anything of mine, never

Testing caught 2 things, and they are the reason to run acceptance tests at all.

My firewall plan had a hole in it. It governed traffic passing through the host, and forgot traffic addressed to the host. So the guest could reach the host directly, and the host was listening for SSH on every interface. The host is where my overlay agent lives. A written plan couldn’t have caught that. Only the test did.

My fix for that was wrong, and the test passed anyway. It’s the better lesson. The new rule let the guest ask the host for an address. But that request is a broadcast, and my rule only matched requests sent directly to the host. It should have failed. It passed because the guest still held an address it had been given before the rule existed. The bug showed up at the next reboot, when the guest had to ask again and got silence.

A test that passes because the thing it tests hasn’t been exercised yet. If you take one thing from this: test from a cold start, not a warm one.

How I get in

Watch from 3:22 on YouTube

The host runs my overlay agent. The overlay is noBGP, and I should say up front that I’m the Chief Product Officer at noBGP. So weigh what I say about it accordingly, and notice that what follows is where I went looking for a hole in it.

The host sits on a noBGP network with exactly one member: itself. 2 things can reach it, me and the Claude session on my Mac. Nothing inside the VM can reach out through it, because the agent and its credentials live on the host, not in the guest.

The question I couldn’t answer on paper was whether that credential could be stolen and replayed. If someone got root on the host, could they use its identity to command my other machines? I tested it against the live service. It can’t, for 2 separate reasons. The credential is the wrong kind: it says “this is that node”, and grants nothing outward. And every command it tried to send was refused. I went in expecting to find a gap there, and there wasn’t one.

The Claude session on my Mac can now run the maintenance on its own: take a snapshot, revert to one, restart the guest. That permission is written for that one network and nothing else. Every other machine I own still asks me first.

And there’s no GitHub access on Nagi at all. It can’t clone and it can’t pull. When it needs new code, I build an archive of one exact commit on my Mac, by hand, and push it in. The receiving script checks the fingerprint before it unpacks a single file. That’s deliberate friction. Packaging a private repository to send it off the machine looks exactly like theft, and I’d rather that stay something only I can do.

Three keys, and nothing else

Watch from 5:10 on YouTube

Every key on Nagi is chosen on one assumption: the machine gets compromised. So the rule isn’t “keys I trust it with”. It’s “keys I’d revoke that afternoon without losing sleep”. It holds 3:

Key Limit
a Claude API key, inside the VM its own service account with a US$50 spending cap, not my subscription
a storage token read and write on the single bucket where finished videos go, nothing else in the account
an ElevenLabs voice key, separate from my Mac’s text to speech, voices and its own account details; a hard monthly character limit with no overage; locked to my home internet address

The separate Claude account matters because my main account already runs past its limits some months, and a runaway loop on Nagi shouldn’t compete with the session I’d use to stop it. The storage token is not the token that manages my domains. And a copy of the voice key is useless anywhere but my home connection.

What isn’t there matters as much. No GitHub credential. No domain credential. No noBGP credential. And nothing that can publish: Nagi builds and uploads media, and my Mac does the scheduling. Publishing is the one capability I most want to keep away from an agent that runs unattended.

One more, because it’s a mistake I nearly made. The file I uploaded the API key in started with an invisible byte-order mark. My setup script didn’t recognise the line, added the variable name again, and the real key ended up nested inside a broken one. I caught it by checking the key’s shape, its length and its first few characters, rather than trusting that the write had worked. The key itself never appeared on screen, then or since.

Moving HyperFrames

Watch from 7:02 on YouTube

The reason Nagi exists, in practice, is HyperFrames, the video toolkit I build my videos with. Its skills were at the top of my audit: they updated themselves silently and told the agent not to ask. On my Mac, I pinned it to one version and deleted every “don’t ask”.

On Nagi I did the opposite: I let it update itself. That sounds backwards, so here’s the reasoning. Pinning a version is a way of controlling what code runs on a machine you need to protect. On Nagi, the protection is the walls. If an update turns out to be malicious, it lands in a box that can’t reach my network, holds 3 capped keys, and goes back to a clean snapshot in 10 seconds. The blast radius is the containment, not the version number.

The first real test: I took an episode of Pipedia, rendered on my Mac, and rendered it again on Nagi. 1,390 frames, 46 seconds. Same frames, same length, same audio. Only the file size differed, and I couldn’t see the difference.

It also answers something from the audit. One of those skills checks whether a web address is private by matching text, and the IPv6 spelling of your own machine walks straight past it. On Nagi, it doesn’t matter what that check thinks. The firewall refuses every private address, whatever the code decides.

What I didn’t know

Watch from 8:25 on YouTube

Before I built this, I wrote down 5 things I didn’t know. Here’s what I found:

Question Answer
Does the Dell have a wifi card? Yes. The first thing I checked
Can the overlay credential be replayed? No. 2 separate barriers
Which account pays? A separate API key with a hard cap, not my subscription
Which keys am I willing to lose? 3, each capped or limited to one job
Is client isolation on for my guest wifi? Yes, at the second attempt

The last one is the one I got wrong first. My first test said yes, and it was a false pass: the other device I tested against had quietly moved to a different guest network, so of course it couldn’t be reached. The test proved nothing, and it looked exactly like a result.

The second test put an iPad on the same network and the same router, and checked both directions, with a control that proved the wireless link itself was healthy. The host couldn’t even find the iPad at the lowest level of the network, the level every connected device answers at. The access point isn’t passing traffic between devices. Isolation is real.

And the firewall counter I wanted as a log of intent: since build day, it has dropped 16 packets headed for private addresses, and 4 aimed at the host itself. None got through.

Now the honest reading. On build day I deliberately tried to reach my home network from inside Nagi, to prove the walls held. The counter counts packets; it doesn’t record who sent them. So some of those, maybe all of them, are me. What I can say is that nothing got through, and nothing I can point to went looking.

The feature that justified a virtual machine over a container is the snapshot, so here it is. I leave a marker file inside Nagi. I revert to the snapshot. I start it back up. The marker is gone, and everything that was supposed to survive did. About 10 seconds.

That’s the posture this whole build is for. I don’t have to work out what went wrong in there. I just have to be 10 seconds ago.

What testing taught me

Watch from 10:28 on YouTube

What testing taught me is simple and boring, which is how you know it’s right:

  • write the plan down;
  • test from a cold start;
  • check the shape of things instead of trusting they worked;
  • and when a test passes, ask whether it passed for the right reason.

What Nagi actually did once it was built is What It’s For.