TL;DR: 64% of developers now use agentic AI tools, with documentation, test generation, and code review emerging as the top use cases, according to Sonar’s State of Code Developer Survey, but effectiveness remains uneven and high-risk patching is still relatively rare. The security issue is not agent adoption itself, but the absence of deterministic verification as autonomous workflows scale.
At a glance
What this is: Sonar’s analysis says agentic AI has moved into everyday development work, but verification quality still lags behind adoption, especially for code review and vulnerability patching.
Why it matters: IAM, NHI, and application security teams should treat autonomous coding as a governance problem, because faster generation without deterministic verification shifts risk into production pipelines.
By the numbers:
- 64% of developers now use AI agentic tools, moving beyond simple assistants to autonomous agents capable of executing multi-step, goal-driven workflows.
- 68% of developers use agents for creating code documentation.
- 61% of developers use agents for automated test generation and execution.
- 57% of developers use agents for automated code review.
Context
Agentic AI coding changes the control problem in software delivery. A human no longer performs every step and then hands the result to a reviewer. Instead, systems can generate, test, review, and sometimes act on code with only partial human supervision, which makes deterministic verification more important than raw generation speed.
That matters because the security issue is not AI use itself but the gap between autonomous output and trustworthy release decisions. When code review, patching, and other high-risk workflows are delegated to agents, teams need controls that verify outcomes at machine speed rather than relying on human attention, especially where software pipelines intersect with identity, secrets, and privileged deployment actions.
Key questions
A: Unsafe or incomplete changes can move through the pipeline faster than humans can inspect them, creating a verification bottleneck rather than a productivity gain. The result is usually more downstream rework, higher release risk, and weaker confidence in production code. In practice, the control failure is not generation speed but the absence of automated gates that can stop bad output before it ships.
Q: Why do agentic coding workflows increase security risk even when developers trust the model?
A: Because trust in the model is not the same as control over the workflow. Once an agent can access repositories, tests, secrets, or deployment tools, the risk comes from permission scope and execution path, not just from code quality. A workflow can look efficient and still be unsafe if the organisation cannot prove what the agent did and why.
Q: How can security teams tell whether agentic code review is actually working?
A: They should look for repeatable, enforced validation outcomes rather than subjective approval rates. If the workflow still depends on a reviewer to catch subtle defects, hidden secrets, or policy violations, the control is not truly working. Strong verification leaves an audit trail, blocks unsafe changes automatically, and produces the same result for the same input.
Q: What should organisations do when autonomous coding starts touching production-critical systems?
A: They should treat the agent like a governed non-human identity with tightly scoped access, explicit approval boundaries, and auditable actions. Production-critical systems need stronger separation between generation and release, plus stricter checks for patches, deployment changes, and secret-bearing workflows. The goal is to keep autonomy bounded where the business impact of failure is highest.
Technical breakdown
Why agentic coding changes the verification model
Agentic coding differs from a copilot model because the system can pursue a goal across multiple steps instead of waiting for a prompt at each turn. That means a single workflow may generate code, run tests, inspect output, and iterate without a human reviewing every intermediate decision. The control challenge shifts from reviewing each suggestion to validating the trust boundary around the agent’s actions, inputs, and outputs. In practice, the important question is whether the workflow is deterministic enough to prove what happened and whether the final artefact can be tied back to a governed execution path.
Practical implication: treat agentic output as an automated change request and require auditable execution traces before code reaches merge or release.
Why code review is not the same as deterministic verification
Code review is a human judgement process, while deterministic verification is a repeatable control that produces the same result for the same input. Sonar’s data shows why this distinction matters: agents may help with review, but effectiveness is uneven, which means review quality depends on context and model behaviour. In security terms, review is advisory unless it is anchored to policy checks, test gates, and static or dynamic validation that can block unsafe changes. This is especially important when the agent can produce plausible but incomplete code that appears correct to a reviewer and still carries latent defects.
Practical implication: combine agent-assisted review with enforced policy gates, not just approval workflows, before code promotion.
How agentic AI creates hidden governance dependencies in software pipelines
Once agents contribute directly to development work, the pipeline inherits new governance dependencies. The organisation now depends on the agent’s identity, its permissions, its tool access, and the integrity of the context it uses to make decisions. That is an identity and access problem as much as a coding problem, because an over-scoped agent can touch repositories, CI systems, secrets, or deployment paths beyond what the task requires. The technical risk grows when human oversight is assumed to be the backstop, but the workflow is fast enough that humans only see the finished output, not the risky path it took to get there.
Practical implication: scope agent permissions tightly, separate tool access from human access, and log every action the agent can take.
Threat narrative
Attacker objective: The end state is not a single breach but a weaker software supply chain where unsafe changes, hidden logic errors, or exposed secrets can reach production faster than teams can verify them.
- Entry occurs when developers introduce agentic AI into everyday coding workflows and allow it to generate or modify code with broad task context.
- Credential or policy exposure can follow when the agent is given access to repositories, CI systems, secrets, or deployment tools beyond the immediate task scope.
- Escalation happens when incorrect or unverified output moves through review gaps and becomes part of production code or operational automation.
- Impact appears as unreliable code, slower remediation cycles, and a verification bottleneck that shifts risk from development time into release and operations.
Breaches seen in the wild
- tj-actions/changed-files compromise 2025: A stolen bot token let attackers poison tj-actions/changed-files so pipelines printed their CI/CD secrets to public logs (CVE-2025-30066).
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Verification is becoming the primary control plane for agentic coding. The article shows that generation is outpacing confidence, especially where code review is involved. When autonomous tools can produce useful output faster than humans can inspect it, the decisive question becomes whether the organisation has machine-enforced validation that is independent of the model’s output. Practitioners should treat verification as the real security boundary, not a post-hoc quality step.
Agentic AI turns software delivery into an identity and permission problem. Once an agent can act across repositories, tests, and deployment tools, its identity becomes part of the software supply chain. The governance gap is not just code correctness but authorisation scope, because a broad permission set lets an agent create downstream risk even when the original prompt was benign. Security teams should govern agent identity the same way they govern other non-human identities.
Deterministic checks are now more valuable than subjective confidence. The survey’s uneven effectiveness results show why teams cannot rely on a human sense that an agent’s answer looked plausible. A repeatable validation layer is more defensible than a workflow that depends on the reviewer noticing every flaw. For practitioners, the message is simple: reduce trust in the output and increase trust in the control that validates it.
Named concept: verification bottleneck. This is the condition where code generation accelerates faster than the organisation’s ability to prove correctness, security, and release readiness. The bottleneck is not only operational friction, it is also a governance failure because unsafe or incomplete changes accumulate in the queue behind human review. Teams should design controls that make verification scalable before they expand agent use further.
Agentic coding exposes a broader governance assumption: human review will always remain the final backstop. That assumption breaks once agents can produce and refine large volumes of code in a single session. If review is not machine-enforced, human oversight becomes partial and delayed, which is too weak for high-throughput delivery. Practitioners should redesign oversight around control points that execute at the same speed as the agent.
From our research library:
- Only 13% of organisations feel extremely prepared for the reality of agentic AI despite the majority racing toward autonomous adoption, according to the 2026 Infrastructure Identity Survey.
- A Harris Poll survey of more than 300 technology decision-makers found that 86% expect agentic AI to deliver positive ROI, yet fewer than half had AI governance policies in place.
- Read next: Agentic AI Security Guide
What this signals
Verification bottleneck: agentic coding shifts the limiting factor from code generation to proof of correctness, which means release governance now depends on machine-enforced checks rather than reviewer attention. Teams that keep treating review as a human-only task will find that autonomy increases throughput faster than assurance can keep up.
The practical consequence is that policy, testing, and access control need to converge around the agent’s execution path. If the workflow can write, test, and submit code, it is already part of the software supply chain, so the programme has to govern it as such.
The adoption signal is clear: only 13% of organisations feel extremely prepared for the reality of agentic AI despite the majority racing toward autonomous adoption, according to the 2026 Infrastructure Identity Survey. That gap is especially relevant for software teams because the first failure often appears as unverified change, not as a visible security incident.
For practitioners
- Implement deterministic verification gates Require automated policy, test, and security checks to pass before agent-generated code can merge or deploy, regardless of reviewer confidence.
- Scope agent permissions as non-human identities Assign each coding agent the minimum repository, CI, and deployment access needed for the task, and separate those permissions from human developer access.
- Log the agent execution path Capture prompts, tool calls, test results, and code diffs so teams can reconstruct how an agent reached a change and detect unsafe patterns.
- Prioritise high-risk workflows for human sign-off Keep vulnerability patching, production changes, and release-critical logic under stricter approval and validation than documentation or low-impact generation tasks.
Key takeaways
- Agentic AI is moving into everyday development work, but the central governance challenge is proving correctness before code reaches production.
- The problem is not that agents can generate code, it is that review alone does not scale to the pace and volume of autonomous workflows.
- Teams need deterministic verification, tightly scoped agent permissions, and auditable execution trails if they want productivity without widening software risk.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Agentic coding turns tool access and execution rights into a governance issue. |
| ASI02 — Tool Misuse | The article focuses on agents using build, test, and review tools in ways that need control. | |
| Recommendation — Restrict agent identity and privilege so autonomous coding workflows cannot exceed task-scoped access. Constrain which tools an agent can call and verify every high-impact tool action before release. | ||
| NIST AI RMF | MANAGE — AI Risk Management and Monitoring | The article is about governing autonomous AI behaviour in production workflows. |
| Recommendation — Build monitoring and escalation controls for agentic workflows into the AI risk management programme. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Agentic coding depends on tightly governed permissions to repositories and pipelines. |
| Recommendation — Apply least-privilege access rules to agent identities and review their entitlements regularly. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | The threat model includes agents or workflows reaching beyond intended access scope. |
| Recommendation — Map agentic pipeline abuse to credential access and lateral movement tactics in your detection and review plans. | ||
Key terms
- Agentic AI: Autonomous AI systems capable of planning, deciding, and taking actions, including calling APIs, writing code, and orchestrating other agents, with minimal human oversight. Agentic AI introduces new NHI risks as agents must authenticate to external services.
- Deterministic Verification: A verification method that produces the same enforced result every time when the required proof is present, instead of relying on human judgement or probabilistic signals. It is useful for high-blast-radius access changes because it removes discretion from the decision point.
- Verification Bottleneck: The point where code generation outpaces the organisation's ability to review and validate what is being produced. In AI-assisted development, this bottleneck shifts security from creation speed to assurance capacity, making automated checks and disciplined review essential.
- Non-Human Identity (NHI): A digital identity assigned to a non-human entity such as a software application, service account, API key, bot, machine, or AI agent that enables it to authenticate and interact with systems without direct human involvement. NHIs now outnumber human identities in most enterprises by 25 to 50 times.
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and agentic AI identity. It helps practitioners build the control foundations needed when autonomous systems start acting inside delivery pipelines.
Published by the NHIMG editorial team on August 20, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org