TL;DR: AI-generated code, MCP servers, and autonomous agents are expanding the software attack surface faster than traditional AppSec controls can track, according to Xygeni’s 2026 comparison of AI security tools. Only 55% of AI-generated code was secure in Veracode’s analysis, while the post argues that AI asset discovery, agentic workflow protection, and supply-chain defense now need to sit alongside SAST and SCA.
At a glance
What this is: Xygeni argues that AI security tools in 2026 must cover AI-generated code, MCP servers, agents, and supply-chain threats because traditional AppSec no longer sees the full SDLC attack surface.
Why it matters: This matters because security and IAM teams now have to govern AI-linked code paths, tool calls, and dependencies as part of the production trust boundary, not as a separate innovation layer.
Context
AI security is now a governance problem as much as a detection problem. Once models write code, agents open pull requests, and MCP servers connect assistants to pipelines, the attack surface extends from developer intent into machine-driven execution paths. For identity and access teams, the key question is no longer only who can deploy software, but what non-human system is allowed to act inside the software delivery chain.
The article frames that shift through the limits of traditional AppSec. SAST, SCA, and DAST were designed for human-written code and known dependency risks, while AI-assisted development introduces generated code, autonomous package selection, and new trust relationships around agents and tool connectors. That creates a control gap that is especially relevant where software supply chain trust and machine identity overlap.
Key questions
Q: What breaks when AI tools are exposed through loosely governed MCP servers?
A: Loose governance lets model-driven tools cross from context retrieval into state-changing actions without enough oversight. That can expose sensitive data, trigger unauthorized system changes, or widen lateral movement paths. The failure is a control boundary mismatch between what the AI can ask for and what it can safely do.
Q: Why do AI coding agents increase supply-chain risk?
A: AI coding agents can choose tooling, install packages, and edit lock files in ways that may bypass the controls humans expect in a managed environment. That widens the blind spot around untracked software and makes package provenance harder to enforce. The practical response is to restrict agent permissions, inventory their workspaces, and review their install behaviour like any other privileged automation.
Q: How should security teams evaluate AI cybersecurity platforms for cloud-native environments?
A: Start by checking whether the platform ranks risk using exposure, identity reach, and data adjacency, not just severity scores. Then confirm it can inventory AI workloads and the secrets or service identities they depend on. A cloud-native platform should reduce uncertainty about reachable blast radius, not just produce more findings.
Q: What is the difference between traditional AppSec and AI security for the SDLC?
A: Traditional AppSec focuses on human-written code, known vulnerabilities, and established dependency risks. AI security adds the systems that now sit between people and code: models, agents, MCP servers, generated suggestions, and autonomous package actions. The difference is not only more coverage, but a different trust model, because the system itself becomes a security actor.
Technical breakdown
AI-generated code expands the application trust boundary
AI-generated code changes the security model because the source of a change is no longer a human reviewer with predictable intent. The real issue is not just insecure syntax, but the speed and scale at which flawed authentication logic, unsafe dependency choices, and weak input handling can enter the pipeline. Traditional SAST can still find some defects, but it was built around human coding patterns and usually lacks context about whether a block of code came from an assistant, a model, or an agentic workflow. That matters because remediation has to account for provenance, not just pattern matching.
Practical implication: teams need controls that classify and triage AI-generated changes before they merge, not after they reach branch protection or production.
MCP servers create a new control plane for tool access
MCP servers sit between AI assistants and the tools, files, and APIs they can reach, which makes them more than an integration detail. They become a control plane for delegated action, and that means inventory, policy enforcement, and behavioral monitoring all matter. If an MCP server is unapproved, over-permissioned, or hidden in a developer endpoint, it can widen access well beyond what the team intended. That is why this surface belongs in security architecture discussions, not just developer tooling reviews. The key risk is uncontrolled delegation from an AI interface into operational systems.
Practical implication: discover every MCP server in use, restrict which ones can connect to sensitive tools, and treat endpoint-level approval as part of access governance.
Agentic supply chain attacks bypass human review
Agentic development workflows change the threat model for dependencies because an AI agent can select, install, or act on a package without the pause that a human reviewer would normally impose. That makes poisoned packages, hallucinated dependency names, and short-lived malicious releases especially dangerous. The important mechanism is not merely package compromise, but the removal of the human checkpoint between suggestion and execution. When AI systems consume packages at machine speed, supply chain defense needs to move earlier than CVE-based detection and later than static allowlists alone. Behavioral detection at publication time becomes a practical control requirement.
Practical implication: pair dependency governance with pre-signature malware detection and block autonomous installs that have not passed policy checks.
Threat narrative
Attacker objective: The attacker aims to insert malicious code or dependencies into the software delivery process and use trusted AI workflows to reach production.
- Entry begins when AI assistants, agentic workflows, or MCP-connected tools are allowed into development pipelines without full inventory or endpoint control.
- Credential and tool abuse follows when those systems can reach APIs, repositories, or dependencies with more privilege than the task requires.
- Impact occurs when malicious code, poisoned packages, or unsafe tool actions are introduced into the SDLC and become part of production software.
Breaches seen in the wild
- Meta Muse agent hijack 2026: An undocumented Muse setting let local malware hijack Meta's personal AI agent, steal its authentication material and abuse user access.
- CoPhish OAuth phishing via Copilot Studio: Datadog showed Copilot Studio agents on a Microsoft domain can front OAuth consent phishing and forward stolen tokens; no victims reported.
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
AI security is now a delegated-access problem, not only a code-quality problem. Once agents can commit code, recommend packages, and invoke tools, the main governance issue becomes who or what is authorised to act inside the SDLC. That moves the conversation closer to identity, privilege, and trust boundaries than to classic application scanning. Practitioners should treat AI execution paths as governed actors, not just software features.
MCP creates a new identity-adjacent control layer for software delivery. The practical risk is not simply that MCP exists, but that it becomes a persistent bridge between AI systems and high-trust development assets. Inventory, approval, and endpoint enforcement are therefore governance controls, not optional hardening steps. Teams that cannot see their MCP estate cannot reliably prove least-privilege access across AI-linked workflows.
AI-generated code exposes a provenance gap that conventional AppSec does not close. Static findings are still useful, but they do not tell you whether a vulnerable pattern came from a human, a model, or an agent. That distinction matters because remediation, accountability, and policy enforcement differ by source. The named concept here is AI code provenance gap: the inability to trace which non-human actor introduced a risky change, leaving governance blind at the point of creation. Practitioners should make provenance visible before merge, not after release.
Pre-signature supply-chain defense is becoming a baseline control for AI-era development. Signature-based and CVE-led detection is too slow for packages published and removed within hours, especially when AI agents can consume them immediately. The field needs earlier behavioural judgement about malicious packages, dependency hallucination, and autonomous install actions. That makes supply-chain defense part of AI governance, not just AppSec hygiene.
From our research library:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
- Only 23% of IT leaders were very confident in their organisation's ability to manage security and governance for GenAI deployments, according to a 2025 Gartner survey of 360 IT leaders.
- Read next: MCP Security Guide
What this signals
AI code provenance will become a board-level governance question. Once generated code and agentic actions can enter the pipeline at scale, teams need to know which non-human system introduced each change and which control approved it. Without provenance, remediation is possible, but accountability is weak and repeatability is poor.
The real category shift is from scanning artifacts to governing delegated actions. That is why AI security cannot sit only inside SAST or SCA. Practitioners should expect future programmes to tie AI asset inventories, tool permissions, and supply-chain trust together under one operating model.
AI asset discovery is the starting point for every other control. If you cannot enumerate models, agents, MCP servers, and AI tools, you cannot prove policy coverage or scope risk accurately. The programme implication is straightforward: discovery must precede enforcement, and enforcement must precede autonomous use.
For practitioners
- Map AI assets across the SDLC Inventory models, agents, MCP servers, AI coding tools, and datasets across repositories, pipelines, and developer endpoints so hidden AI services are not outside policy scope.
- Require approval for MCP-connected tool access Define which MCP servers may reach source code, secrets, ticketing systems, and deployment tooling, and block unapproved endpoint integrations by default.
- Separate AI-generated changes from human-authored changes Tag commits and pull requests that originate from AI assistants or agents so reviewers can apply stricter checks to generated code, dependency changes, and workflow actions.
- Add pre-signature checks for AI-targeted packages Use behavioural malware detection and publication-time screening for dependencies that enter agentic workflows, especially where autonomous installs bypass manual review.
- Correlate AI findings with AppSec and pipeline risk Fold AI security findings into the existing SAST, SCA, secrets, and CI/CD view so teams can prioritise the change that creates the largest software delivery exposure.
Key takeaways
- AI security in 2026 is about governing the SDLC as a machine-augmented trust environment, not just scanning code for known flaws.
- MCP servers, agents, and generated dependencies create new delegation paths that traditional AppSec tools do not fully model.
- Security teams need inventory, provenance, and behavioural control before AI-driven workflows can be treated as production-safe.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10, OWASP API Security Top 10 and MITRE ATT&CK define the specific risk controls and attack patterns relevant to this term.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-06 — Insecure Cloud Deployment Configurations | MCP servers and AI tooling exposed in developer environments create misconfigured trust paths. |
| NHI-05 — Overprivileged NHI | Agents and MCP-connected services can reach tools with more privilege than the task requires. | |
| Recommendation — Map AI-connected services to NHI-06 and lock down any exposed deployment paths or integrations. Apply NHI-05 to reduce delegated access and remove excess permissions from AI-linked identities. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Agentic workflows can misuse delegated access and tool authority inside the SDLC. |
| Recommendation — Use ASI03 to constrain what agents can do, which tools they may call, and when they may act. | ||
| OWASP API Security Top 10 | API8 — Security Misconfiguration | MCP and pipeline integrations behave like sensitive APIs when exposed without policy controls. |
| Recommendation — Treat AI integration endpoints as API surfaces and harden configuration before allowing access. | ||
| MITRE ATT&CK | TA0006;TA0010 — Credential Access; Exfiltration | The article discusses credential theft and downstream impact through poisoned packages and MCP abuse. |
| Recommendation — Map AI supply-chain and MCP abuse to TA0006 and TA0010 to hunt for credential theft and data movement. | ||
Key terms
- AI Asset Inventory: A living register of every AI-related asset in an organisation, including models, agents, datasets, notebooks, endpoints, and embedded AI services. It links technical detail to ownership, data exposure, lifecycle status, and controls so governance can operate on facts rather than assumptions.
- MCP Server: An MCP server is a tool endpoint that connects an AI agent to external systems and data sources through Model Context Protocol. Because it extends what the agent can reach, it becomes part of the identity and access surface and must be reviewed like any other privileged connector.
- AI-Generated Code: AI-generated code is software produced or materially assisted by a model or coding agent rather than written entirely by a human developer. The security concern is not only whether the code contains flaws, but whether its provenance and review path are strong enough to support safe release.
- Agentic workflow: An agentic workflow is a sequence of tasks executed by an AI agent with some level of tool access and decision authority. In security terms, the workflow matters because it can span multiple systems, identities, and permissions, which makes attribution and revocation harder than with ordinary automation.
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, machine identity security, and secrets management. It helps practitioners align delegated access controls with the identity risks now emerging across software delivery.
Published by the NHIMG editorial team on August 19, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org