← Blog

Secure SDLC With Agents in the Loop: Which Controls Still Hold

Marco Masut

A secure SDLC (secure software development lifecycle) is a delivery process in which security controls are placed at defined points of the flow, from requirements to release and maintenance, instead of being added at the end. NIST's Secure Software Development Framework, SP 800-218, groups those practices into four areas: prepare the organisation, protect the software, produce well-secured software and respond to vulnerabilities. Agents that write code do not make the idea obsolete, but they change where each control does its work. Some controls hold unchanged because they judge the artifact, whoever wrote it. Some must move upstream, because by the time the code exists the decision has already been taken. One, the implicit review by the person who wrote the line, no longer sits where it used to. The useful question is not whether your secure SDLC survives agents, but which of its controls you can still point to as evidence.

What are the controls a secure SDLC is made of?

Strip the framework language away and most secure SDLCs rest on the same handful of controls:

  • Requirements and threat modelling: decide what the change must and must not do, and what could go wrong.
  • Secure coding standards: shared rules for how code is written.
  • Peer review: a second person reads the change before it merges.
  • Automated testing and static analysis: checks that run without anyone remembering to run them.
  • Dependency and supply-chain scanning: know what third-party code ships.
  • Approval and release: a named person accepts the risk of shipping.
  • Monitoring and response: find and fix what slips through.

Each of these exists to produce a decision someone can later defend. That is the lens for the rest of this piece: a control is worth keeping if it still leaves proof after an agent did the typing.

Which controls still work unchanged?

Controls that judge the finished artifact, independently of its author, keep their value exactly as they were. A static analyser does not care whether a person or a model wrote the function. A dependency scan reads the manifest, and a software bill of materials describes what shipped. A test suite fails or passes on the same terms. Monitoring and incident response start from running software, not from its origin.

The condition is that these checks run in the pipeline, not inside the agent session. A result reported by the model ("tests pass") is a claim. A result produced by a runner the agent cannot edit is evidence. The METR randomised trial published on 10 July 2025 found experienced developers took 19% longer with AI tools while believing they were faster, which is a reminder that confidence is a weak signal, from a person or a model.

Which controls move upstream when agents write code?

Three controls lose power if they stay where they were, because an agent can produce a large change faster than a person can read it.

| Control | Where it used to sit | Where it has to sit now | | --- | --- | --- | | Threat modelling | A meeting before a feature starts | A written scope the agent is given: what it may touch and what it may not | | Secure coding standards | A wiki page developers remember | Rules enforced mechanically, for example by hooks that block a forbidden action | | Requirements | A ticket read by the author | A contract the check can compare the result against |

The shift is the same in all three: from knowledge held by a person to a constraint set before the work starts. A standard that lives only in people's heads is not applied to an agent at all. A forbidden path declared in advance and checked after the fact is applied every time. For the wider picture of how this fits a governance model, see the AI governance framework for agent-written code.

Which control no longer sits where it used to?

Peer review is the one that quietly changes meaning. In a human-written change, review had two jobs at once: a second pair of eyes, and the implicit assurance that the author had understood what they wrote. With an agent as author, the second job disappears. Nobody has built a mental model of the change by writing it, so the reviewer is the first person to understand it, not the second.

Two consequences follow. First, review gets harder per line, which pushes teams toward skimming, the exact failure review exists to prevent. Second, "approved" in a tool can end up meaning "the diff looked plausible". The workable answer is not to drop review but to narrow what it carries: let the pipeline settle everything mechanical, and keep the human decision for the questions only a person can answer, then record that decision as a signature that can be checked later. How that looks in practice is covered in what to look for in an AI code review tool.

What does a revised checklist look like, stage by stage?

| Stage | Control to keep | Evidence it should leave | | --- | --- | --- | | Request | A written request and an explicit scope | The request and the allowed paths, stored with the change | | Build | Mechanical enforcement of standards | A record of which rules ran and what they blocked | | Verify | Tests and static analysis run by the pipeline | Results produced outside the agent session | | Supply chain | Dependency scan and SBOM | The inventory for that specific release | | Approve | A named human decision | A signature tied to the exact change | | Operate | Monitoring and response | A trail from the incident back to the change and the approval |

Read the right-hand column as the test. If a stage leaves nothing behind that a stranger could inspect, it is not a control yet, it is a habit.

Where does Detent fit in a secure SDLC?

Detent, the end-to-end delivery system, is built around the right-hand column: the system prepares the change and its evidence, a person signs, and nothing is released without that signature. It is not a replacement for a threat model or a security team. It is one way of making the stages above leave proof. To compare how coding tools differ on what they leave behind after a session, see the benchmark.

A practical first step is small: pick your last release, walk the six stages, and mark each one as evidence you could show or a habit you could only describe. Fix the habits that sit closest to the approval first.