Geoffrey Huntley on Ralph loop, curiosity and the cost of defense

When a certificate authority's private key turned out to be the number 4, Geoffrey Huntley fixed his fleet with two prompts. Antithesis's Field CTO thinks defenders will soon need more AI capacity than their attackers.
Geoffrey Huntley on Ralph loop, curiosity and the cost of defense
AI Native Devcon

In October, researchers found that one of the private keys behind eMudhra, an Indian certificate authority, was simply the number 4. Not a long random number that starts with 4, as security researcher Scott Helme pointed out, just 4. Browsers rushed out updates so they would stop trusting the affected certificates.

Geoffrey Huntley handled it with a prompt. As he wrote on his blog, he asked an agent whether his NixOS fleet was affected. It was, so the agent patched it, then left a note in AGENTS.md to remove the patch once the fix landed upstream. A week later, the next agent on that machine read the note and cleaned up. On stage at AI DevCon in New York, he called it:

The cruisiest security maintenance I’ve ever done.

Huntley is best known as the creator of Ralph, a technique that in its purest form “is a Bash loop”: it hands a coding agent the same instruction file over and over, with one task per pass. In July, he joined Antithesis, a software testing company, as Field CTO. His AI DevCon talk was “Hack the planet? Patch the planet.” Afterwards, we had an opportunity to chat about who pays for defense against AI attacks, why verification is the harder problem and why he’s worried about seniors, not juniors.

Ralph was a stepping stone

Ralph caught on, he said, “Because it worked.” Others were building memory systems and overstuffing the context window. Ralph kept the context small and gave the model one objective at a time. He credits the idea to Krzysztof Cieślak of GitHub Next, whose research on what’s now called spec-driven development he recreated.

He no longer codes that way. Ralph worked because the models weren’t that great at the time, he said, and now they are. These days, he works with plan mode and goals, and saves loops for decompiling software. Every couple of months, he checks whether what he’s doing is still the right thing.

Defense goes on the compute bill

On stage, he called the wave of incidents that month “security takeoff.” Google’s Threat Intelligence Group reports that monthly CVE disclosures doubled in 2026, from 5,045 in January to 10,740 in August, and that half of the vulnerabilities likely found by AI lead to remote code execution. His conclusion: defenders will need more AI capacity than their attackers, and they’ll need to respond fast.

Asked whether security is now a compute budget, he started with people. Technology and compute used to be cheap, and people were the most expensive part. Now boards see they need fewer people, and the money goes to compute, which is getting expensive. Companies already complain about engineers spending $500 or $1,000 a month on AI. Defense isn’t in that math yet:

If LLMs would be used on cyber offensive attacks, well you’re going to need the same on cyber defensive and that’s going to be very expensive. And my take is it’s not a line item most CFOs are aware of yet. And it’s going to cause some interesting discussions.

One patch for the whole fleet

His answer to the speed problem is Nix, a package manager that has been around since 2003. He has used it for 13 years and admitted on stage that it’s hard to use, or was, because agents now know how to drive it.

With Nix, a patch lives in one place, and everything that depends on that package gets it, including indirect dependencies. If OpenSSL has a critical bug, Git, Nginx and Postgres, which all use it, get the patched version too. Nobody has to wait for a project upstream to merge a fix.

His demo was a patched Git that his agent sandboxes get automatically, with force push disabled. An agent chasing a goal can cause incidents, he said, so instead of asking it not to do something, he removes its ability to do it.

His agents also run as root, the all-powerful admin account, so they can see everything from databases to system logs. “Would you do that on a Ubuntu machine? Hell no,” he said. He does it only on throwaway developer machines. His rule for production: agents never run as root on production hosts and never connect to production databases.

Verification is the bigger challenge

A car mechanic can name every part of an engine, but ask an engineer to name the parts of an agent and their eyes glaze over, says Huntley. Can you name them?

Asked what loop he wants to build next, Huntley said he doesn’t know. Verification is what he works on now. Antithesis does property-based and deterministic system testing, and FoundationDB veterans founded it in 2018, after Apple bought FoundationDB.

It just turns out they built this really good verification thing for the last six years, and it’s intersecting just at the right time when agents are making all the changes.

His talk ended on the same point. Ralph, he said on stage, was always about stopping the loop from closing when the code is wrong. That takes deterministic checks: pre-commit hooks that block a commit if the code doesn’t compile, static analysis, and property-based testing. Instead of a few hand-picked examples, a property-based test throws random inputs at the code and checks that a rule always holds, for example that a customer is only ever refunded once. Antithesis’s tool for it is Hegel, the successor to Hypothesis.

It’s seniors he worries about

Asked about juniors, Huntley said: “I’m actually really positive about juniors. It’s seniors I worry about.“

He sees senior engineers who should know better reject AI outright. He doesn’t claim it’s perfect. It’s actually pretty bad, he said, but the game has changed. Employers who used to ask for ten years of Java will ask for years of experience with AI, and for proof, not stories. His line in the sand:

If you haven’t been investing yourself in the last two years then the door is closing to you for employment.

Good candidates want to show you what they’ve built at home, and some seniors get that spark back too. Juniors bring the cultural change, he said, and seniors know how to design software and architecture, so he would put them together. “And juniors are cheaper than your seniors. The standard dynamics of payroll play out.”

Can you name the parts of an agent?

In interviews, Huntley expects candidates to be able to build a coding agent. It takes about 300 lines of code, and his free workshop shows how.

“It’s a curiosity test,” he said. A car mechanic can name every part of an engine, but ask an engineer to name the parts of an agent and “their eyes glaze over.”

He knows the test won’t last. Once everyone can do it, it stops telling him anything. “If anyone reads this, there’s your hint.”

But for now, it’s the baseline. Have you been paying attention?

> subscribe shift-mag --latest

Sarcastic headline, but funny enough for engineers to sign up

Get curated content twice a month

Written by people, not robots - at least not yet. May or may not contain traces of sarcasm, but never spam. We value your privacy and if you subscribe, we will use your e-mail address just to send you our marketing newsletter. Check all the details in ShiftMag’s Privacy Notice