19 AUG 2026 · Wilhelm Lund
Your Staging Environment Is Not as Safe as You Think
A guest post from Wilhelm arguing that staging environments too often get looser security than production, when they actually deserve tighter controls since they're where new and untrusted things — including AI agents — get pointed first. It closes with a practical checklist for auditing your own staging setup, plus a personal example of what he found (and fixed) in SIGIST's own site.
I'll be honest — I didn't set out to write about AI safety incidents. My job for SIGIST is mostly the website and getting more people to notice what we do, not deep security testing. But a few weeks ago I was doing something completely mundane — checking why our own staging site had broader outbound access than our production one — and I kept thinking about a story I'd read that same week: a government AI evaluator's own test agents had broken out of their intended scope and reached real systems, because the test environment quietly had more access than anyone had accounted for.
Different scale, same shape of mistake. And once I started looking for it, I noticed it everywhere — including, a little uncomfortably, in our own setup.
The assumption that gets everyone
Here's the pattern, and I'd bet it's familiar: a staging or test environment gets built to make testing easier. Looser firewall rules so you don't have to fight the network team every time you add a service. A shared API key because setting up a separate one felt like overkill for "just testing." Outbound internet access because someone needed to hit a real third-party API once, and nobody ever locked it back down. Every one of these decisions was reasonable in isolation. None of them were reasonable to still have a year later, unreviewed.
The assumption underneath all of it is that a test environment is lower risk than production, so it earns looser rules. That's backwards. A test environment is where you deliberately point new, untrusted, sometimes-autonomous things — new code, new integrations, and increasingly, AI agents doing the testing itself. That's exactly the situation that most needs a tight boundary, not the situation where a tight boundary felt inconvenient.
A checklist, not a lecture
I'm not a security specialist, so take this as a starting point for a conversation with whoever runs your infrastructure, not as gospel. But here's what I actually went and checked for our own setup, and what I'd suggest any of you check too:
- Does your test/staging environment have any access production doesn't? Outbound internet, a broader API scope, a shared credential, a firewall rule that "just never got tightened." If the answer is yes, ask why — sometimes there's a good reason, but often there isn't one anymore.
- Would anyone actually notice if something in staging did something unexpected? Not "is there logging" — is anyone looking at it with the same attention production gets? A lot of incidents (ours would've been one of them) get caught by general security telemetry days later, not by anything built to watch the test environment specifically.
- If you're running any AI agent — for testing, for coding assistance, for anything — do you know exactly what it can reach? Not what you told it to do. What it's technically capable of reaching, if it decided to.
- Is the boundary enforced at the network/infrastructure level, or does it just live in an instruction someone wrote? "The agent's instructions say it doesn't have internet access" is not the same claim as "the agent's environment has no route to the internet." Only one of those is actually a boundary.
- When did anyone last look at what's been quietly inherited? Staging environments accumulate permissions the way a junk drawer accumulates cables — nobody adds them maliciously, they just never get removed.
What I actually changed
For what it's worth: our staging site didn't have anything catastrophic going on, but it did have write access to a shared resource it had no real reason to touch anymore, left over from an integration we'd since replaced. Nothing dramatic happened because of it — it just sat there as a risk nobody was actively managing. Closing it took about twenty minutes once I actually looked.
That's the real point I want to leave you with. This isn't really about AI, even though that's what got me thinking about it. It's about the boring, unglamorous discipline of periodically asking "does this environment still need the access it has" — for staging, for CI pipelines, for anything that exists specifically to run things you don't fully trust yet. AI agents just make the question more urgent, because they're more likely to actually use whatever access is sitting there, on purpose or not.
If you've done this kind of audit recently — or if you find something interesting when you do — I'd genuinely like to hear about it. That's exactly the kind of thing worth bringing to a SIGIST meetup.
— Wilhelm
STAY IN THE LOOP
Enjoyed this? Get the next one by email.
Join The Dispatch — our occasional digest of community write-ups, events and reading picks.