← Blog

DevSecOps With AI Agents: Where the Control Belongs

Marco Masut

DevSecOps is the practice of building security checks into every stage of development and release, instead of leaving them to a separate final review: development, security and operations share one pipeline and one responsibility. When an AI agent writes part of the code, the pipeline is still the right place for the checks, but what it has to guarantee changes. Four things keep it under control: automated checks that do not depend on a reviewer's attention, a point where a person signs what the system cannot decide, rules on what the agent may touch, and a record you can hand over for every step. The sections below show where an agent changes the pipeline, which checks can be automated, which stay human, and what evidence the pipeline should leave after each delivery from a software house.

What does DevSecOps mean today?

It means moving checks upstream and making them repeatable: security is not a phase that comes later, it is a set of checks that run on every change. The recurring practices are the same ones, and they map well onto frameworks such as NIST SP 800-218, the Secure Software Development Framework and the OWASP project guidance:

| Stage | Typical check | What it catches | | --- | --- | --- | | Code | Static analysis, secret scanning | Known defects, credentials in the repository | | Dependencies | Scanning and component inventory | Vulnerable or unwanted libraries | | Build | Reproducible build, provenance | Artifacts that cannot be traced to source | | Test | Automated and security tests | Regressions, unexpected behavior | | Release | Approval, verified configuration | Unauthorized changes reaching production |

None of this is new. What changes with agents is who produces the change and how fast.

Where does an agent change the pipeline?

In three places, all predictable. The first is volume: an agent produces more changes, larger ones, in the same time, and a review done by eye does not keep pace. The second is the choice of dependencies: the agent can add packages, including nonexistent ones (the Spracklen et al., USENIX Security 2025 study found hallucinated packages in at least 5.2% of samples from commercial models and 21.7% from open-source ones, across 576,000 samples and 16 models). The third is memory: the session that decided closes, and the reasoning disappears unless the process keeps it.

There is a fourth, subtler place: the agent can modify the files that govern the pipeline itself, meaning the checks. A pipeline where the author of the code can also change the rules that judge it protects no one, and the principle is the one in separation of duties when an agent writes and tests.

Which checks are automated and which stay human?

Automate whatever has a verifiable answer; keep human whatever requires taking responsibility. The practical split:

  • automated: static analysis, secret scanning, dependency checks against an approved registry, test execution, reproducible build, component inventory, a check that the release configuration matches the approved one;
  • human: approving what gets built before the work starts, accepting residual risk, approving the result before release, exceptions to a rule.

The criterion is simple: a check that a system can rerun and that always gives the same result does not need a person. A decision that someone must be able to justify to a client or an auditor does. Asking a person to redo an automated check by hand burns attention without adding assurance; not asking them to sign a decision leaves it without an owner.

What evidence should the pipeline leave behind?

The evidence that lets you reconstruct, for any given change, what was asked, who approved it, which checks passed and with which tools. Without it the pipeline works but you cannot show that it worked:

| Evidence | What it shows | | --- | --- | | Approved request and plan | Why the change exists and who authorized it | | Check results, rerunnable | That the system ran the check | | Dependency and configuration diff | What came in and who accepted it | | Component inventory at delivery | What is inside the release | | A person's final signature | Who accepted the result |

The agent's end-of-session narrative does not count as evidence: what the system recorded while it worked does. The topic is developed in software audit trail when an agent made the change.

Where should a software house start?

With a few steps, in this order, without waiting for a perfect pipeline:

  1. List where an agent can already write today, on which repositories and with which permissions.
  2. Stop the agent from modifying the pipeline, the checks and the approval files.
  3. Make static analysis, secret scanning and dependency checks mandatory in CI, with results kept.
  4. Fix two points of human signature: before building and before releasing.
  5. Keep the evidence next to the code, not in a chat or a separate document.

Detent, the end-to-end delivery system (detent-ai.com), keeps these records as part of the flow: a person signs the plan and the final delivery, the system runs the checks, and everything stays in versioned files. It does not replace scanning tools: it provides proof that they ran and were approved. The full development lifecycle is in secure SDLC with agents in the loop; for security updates proposed by an agent, see patch management when an agent proposes the patch. For the wider context there is AI software development; to compare tools on what they leave after the session, the benchmark page.