BUYING · LESSON 6 OF 10 · 9 SEP 2026 · 3 MIN

Updated 11 Oct 2026

How does AI-generated code fit into application security posture?

Coding agents write code, install packages and call tools on developer machines before any scanner runs. A posture view needs to see those agents, control what they can do and keep secrets out of their reach. We score this as discovery, policy and audit, and secret handling.

By The Posture Desk · Reviewed by the Posture Desk editors · Last updated 2026-10-11

What changes when agents write code?

A developer using a coding agent delegates work: the agent reads files, runs shell commands, installs dependencies and calls MCP servers to reach other systems. Much of this happens on the developer's machine, before a commit exists. Scanners that start at the repository see the result, not the actions that produced it.

OWASP's Top 10 for LLM Applications calls the underlying risk excessive agency: an agent with more functionality, permissions or autonomy than its task needs. The practical answer is not to ban agents but to show them the right path, not just block the wrong one.

Which three controls do we score?

  • Discovery: knowing which agents, models, MCP servers, skills and plug-ins are in use, and keeping an inventory the security team can act on.
  • Policy and audit: allowing, steering or blocking what agents run, install and call, resisting being switched off, and keeping evidence of what happened.
  • Secret handling: keeping credentials out of prompts, tool calls, agent memory and the files agents can read.

Where do controls run?

Vendors take different routes. Legit Security built VibeGuard 2.0 as a desktop app on the developer endpoint rather than a plugin, with anti-tampering so agents or users cannot switch it off. Backslash Security also works at the endpoint and states audit evidence for frameworks such as the EU AI Act and SOC 2. Cycode enforces guardrails through IDE hooks; OX Security sends security guidance to the agent before it writes code; Snyk's Evo can steer or block agent activity on its Enterprise plan.

Endpoint controls see every agent on a machine at once. IDE controls see what happens inside one editor. Ask which route a vendor uses and what happens when a developer starts an agent the vendor does not support.

Source: Legit Security blog: what we learned building VibeGuard 2.0 · read 11 Oct 2026

Source: Backslash Security homepage · read 11 Oct 2026

Source: Cycode blog: AI governance, AIBOM and MCP enforcement · read 11 Oct 2026

Source: OX Security docs: VibeSec · read 11 Oct 2026

Source: Snyk Evo Agentic Development Security · read 27 Sep 2026

How should this feed the rest of ASPM?

Agent controls are most useful when their output joins the same queue as everything else: an agent that tried to install a malicious package, a secret an agent nearly exposed, an MCP server outside policy. Ask whether these events appear as findings next to code and cloud issues, and whether they carry the same business context.

What should you ask a vendor?

  • Which coding agents, IDEs and command-line tools do you discover, and how do you find ones you do not support?
  • Can a developer or an agent switch your control off, and what do you record if they try?
  • Where are policies set, and can they differ by team or repository?
  • What happens to a secret an agent tries to read or send?
  • Do agent events appear in the same queue as other findings?

Next lesson

Lesson 7: How ASPM is priced: committers, contributors and marketplace bundles

Related