Skip to content
Máté G. Saáry
← notes

Your coding agent is an untrusted workload

2 min read

AI agentsSecuritySREnono

I wrote a post for the nolabs blog: Your coding agent is an untrusted workload. SREs already know what to do. This is the short version.

The idea

A coding agent started from a terminal inherits your OS access, your environment variables and your credential files. In the post I put it like this:

It runs as you, on your machine, with your credentials.

It can also act on instructions from sources you have no reason to trust. In production we would call that an untrusted workload, and SRE already has a playbook for those. The post takes five of its habits and applies each one to agents.

Table 1: The same habits, in production and around a coding agent.

HabitIn productionAround an agent
Least privilegeShort-lived, narrowly scoped tokensA proxy injects the credential, so the agent never holds it
Blast radiusSeparate build, deploy and runtime rolesCommand policies, with memory and process limits on Linux
Fail-closedA service refuses to start without its isolationNo sandbox, no session
Audit trailA record of who ran what, and who allowed itA tamper-evident log, written outside the agent
Reviewable, reversible changesPlan, review, apply the saved planProfiles you can validate and dry-run, with optional rollback snapshots

Why the boundary sits outside

Plan modes and confirmation prompts are enforced by the agent's own process, which makes them a courtesy, not a control. The same goes for logs: if the agent writes its own, "it's a diary, not a record".

That is the same principle as in the webinar demo, where the launcher checked the result from outside instead of relying on the agents' word.

What it doesn't do

nono, the open source tool we build at nolabs, is how the post puts these habits into practice. It won't stop an agent from being compromised, and it does not replace other security work. It gives the agent a boundary, so there is something for the playbook to attach to.