AI coding agents have moved from autocomplete to active participants in software development. They write code, pick dependencies, call tools and open pull requests, often with very little human review in between. AI can also be used to analyze code and surface vulnerabilities. And while AI is a part of the answer, it’s not a reliable solution on its own.
The analysts are sounding the alarm
Gartner’s latest AI Executive Brief, “Agentic AI Security and Influence Risks Outpace Governance,” puts it bluntly: agentic risks may equal or exceed the value agents deliver. Adoption is already well ahead of the controls. In Gartner’s 2027 CIO and Technology Executive Survey of 2,002 CIOs and technology executives, 37% said their enterprises already employ AI agents, while governance remains immature.
The market is reacting. Banks have moved to bar customer agents from acting in their systems, citing the risks of a malfunction. Meanwhile, vendors are racing to build safer sandboxes for agent development and deployment.
The brief’s central advice is that organizations should apply at least the same level of security, risk management and controls to agents that they apply to human employees and software. One line in the guidance captures the spirit of it well: people can sometimes be trusted, but agents must be controlled stringently.
The same capability cuts both ways
AI is getting very good at finding vulnerabilities. Gartner points to Anthropic’s announcement of new flaws discovered in common, widely used software. That is genuinely useful for defenders, but the same capability is available to attackers. If your only line of defense is an AI model reasoning about your code, you are in an arms race with adversaries using similar models, and the winner is whoever moves faster.
Probabilistic checks give probabilistic answers
Large language models are probabilistic. Ask the same question twice and you can get two different answers. That is fine for drafting an email, but it is a weak foundation for a security gate. A security control that might flag an injection flaw today and miss it tomorrow cannot be the basis of a compliance attestation, a release policy or an audit trail. Gartner also cautions that overly generalized guardrails create a false sense of security; as the brief memorably puts it, typing “don’t hack pls” is not a guardrail.
Humans in the loop can be swayed too
The usual answer is to keep a human in the loop. But Gartner highlights research from Anthropic showing that highly skilled users were persuaded by an agent’s analysis to follow its argument toward a particular conclusion. If an AI reviewer confidently tells a developer that a code change is safe, the human checkpoint may simply rubber-stamp it. That is why Gartner recommends testing human-in-the-loop resiliency, not just cybersecurity.
Where SAST fits: the deterministic backbone
SAST is consistent; the same code produces the same findings every time. Deterministic program analysis is still the basis for mature appsec programs. Policy gates, as well as auditors, require repeatability.
Deterministic SAST doesn’t share the blind spots or the persuasion risk of the model that generated the code. Every finding traces back to a specific rule, a specific line and a specific weakness category, so teams can explain why a build passed or failed. And it is impartial, examining the code itself and not whether a senior engineer, a junior developer or an autonomous agent wrote it.
Gartner calls out “invisible chains of accountability across humans, agents, models, and platforms” as one of the core risks of agentic AI. A deterministic scan, enforced by policy, is one of the clearest ways to make that chain visible again.
Better together: AI and SAST, not AI or SAST
None of this argues against using AI in security. AI-driven analysis can surface business logic issues and novel patterns, and AI-assisted remediation can help teams keep pace with the volume of findings that agentic development creates. Gartner itself warns organizations to prepare for a flood of new vulnerability discoveries and to set response-time goals for handling them.
The winning approach layers the two. Let AI accelerate writing and fixing code. Let deterministic SAST verify the result, enforce policy and produce the evidence trail. Use AI to move fast; use SAST to know that what you shipped is actually safe.
What security leaders should do now
- Keep deterministic static analysis as a required gate for all code, including code written by AI agents.
- Treat agent-generated code with at least the same scrutiny and controls you apply to human-written code.
- Use AI-assisted remediation to keep up with volume, but verify every fix with an independent scan before it ships.
- Test your human review checkpoints, not just your tooling, to make sure reviewers can catch agent errors.
- Govern the points where agents connect to your systems, such as APIs and MCP servers, which Gartner identifies as vulnerable interconnection points.
The bottom line
AI is changing how software gets built, and it will change how software gets secured. But asking AI to be the sole judge of its own output is like asking a student to grade their own homework. In the agentic era, the need for an independent, deterministic check doesn’t go away. It becomes more important than ever. That is why you still need SAST.
To deliver an innovative hybrid SAST offering blending the best deterministic and AI SAST technology, we’ve partnered with DryRun Security. Here is a webinar where you can learn more about DryRun and the hybrid offering.