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: The article argues that AI security tools must now cover AI-generated code, agents, MCP servers, and supply-chain threats because conventional SAST, SCA, and DAST no longer cover the full SDLC.
Why it matters: For IAM and security teams, this matters because AI assistants and agents are increasingly handling access, dependencies, and workflow actions that behave like non-human identities inside the delivery pipeline.
By the numbers:
- Only 55% of AI-generated code was secure in Veracode’s 2025 analysis across 100+ models, which means nearly half of machine-written code still reaches production with vulnerabilities.
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, sharing sensitive data, and revealing access credentials.
- When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes, and as quickly as 9 minutes in some cases.
👉 Read Xygeni's comparison of the top AI security tools for 2026
Context
AI security tools are becoming necessary because the software delivery pipeline now includes machine actors that can write code, recommend dependencies, invoke tools, and move through MCP-connected workflows. That changes the control problem from scanning artifacts after the fact to governing a live attack surface that includes AI-generated code, agent behaviour, and exposed credentials.
The practical gap is not just detection. It is inventory, policy, and enforcement across systems that look automated but still need identity and privilege controls. Where AI agents or copilots touch repositories, package registries, and developer endpoints, the identity boundary extends into the SDLC rather than stopping at human users and service accounts.
Key questions
Q: How should security teams govern AI agents that can choose tools at runtime?
A: Security teams should govern runtime agent choice as an access event, not as a simple application action. That means scoping permissions to the task, limiting token lifetime, logging every tool decision, and blocking the agent from reaching systems outside its approved context. Static roles alone are not enough when the execution path changes on each run.
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: What breaks when AI asset discovery is missing from a security programme?
A: Without AI asset discovery, teams cannot see which models, agents, MCP servers, or datasets are active, so policy enforcement and compliance reporting become incomplete. The practical failure is blind spots in ownership, access scope, and audit evidence, which makes every downstream control less trustworthy.
Q: How can organisations tell whether their AI security model is actually working?
A: They should test whether the control stack can explain who acted, what data was touched, and what purpose the action served. If those three signals cannot be correlated in one incident view, the model is likely monitoring access without governing behaviour. That is a visibility gap, not a complete AI security posture.
Technical breakdown
AI-generated code introduces a new vulnerability supply chain
AI-generated code is not just faster code, it is code produced by systems that can hallucinate dependencies, repeat insecure patterns, and omit security controls that a human reviewer would normally spot. In practice, this creates a second-order supply chain risk because the weakness is often introduced before the code ever reaches SAST or peer review. The important technical point is that tooling must distinguish between ordinary vulnerable code and machine-generated patterns that appear correct but encode unsafe assumptions about authentication, data handling, or package trust.
Practical implication: organisations need controls that identify AI-generated code early and apply policy before it reaches merge or build stages.
MCP servers extend AI assistants into privileged tool paths
The Model Context Protocol connects AI assistants to tools, files, APIs, and pipelines, which means an MCP server is effectively a privileged integration point. If that server is undiscovered, over-permissioned, or behaves unexpectedly, the AI assistant can become a route into systems that were never intended for broad machine access. This is an identity problem as much as an application problem because the question is not only what the AI can do, but what identity and authorization context it inherits when it does it.
Practical implication: teams should inventory MCP servers and treat their permissions as governed machine identities, not informal developer extensions.
Agentic workflows need runtime policy, not just dependency scanning
Agentic workflows are different from ordinary automation because the agent can choose actions and timing at runtime, including installing dependencies or invoking tools without a human review step. Traditional SCA sees the package after publication, but it cannot reliably stop a malicious package that is chosen dynamically inside an autonomous workflow. That is why runtime enforcement, behavioural monitoring, and pre-signature malware detection matter. The control plane has to operate at the point of execution, not only at the point of code analysis.
Practical implication: security teams should add runtime enforcement and behavioural checks for agentic pipelines rather than relying on registries and CVE feeds alone.
Threat narrative
Attacker objective: The attacker wants to convert AI-assisted development and agentic automation into a trusted execution path for credential theft, pipeline compromise, and downstream persistence.
- Entry occurs when attackers publish poisoned packages or hide malicious functionality inside AI tooling such as MCP skills, then wait for autonomous workflows to consume them.
- Escalation follows when an AI agent or developer workflow installs the package or invokes the skill, giving the attacker code execution, credential access, or tool-path reach without a human reviewer intervening.
- Impact is achieved when the malicious package or workflow steals secrets, alters pipelines, or deploys remote-access tooling into software delivery systems.
NHI Mgmt Group analysis
AI security tooling is becoming a governance layer for machine actors, not just a scanning layer for code. The article correctly frames AI assistants, agents, and MCP servers as part of the security perimeter because they behave like machine identities with reach, privilege, and decision paths. That changes the operating model from artifact review to identity-aware control of what the machine can touch. Practitioners should treat AI security as an extension of IAM and PAM into the SDLC.
AI asset discovery is now the prerequisite control for every other AI security decision. If teams cannot inventory models, agents, MCP servers, datasets, and AI coding tools, they cannot apply policy or prove compliance. This is the same governance failure pattern identity teams know from shadow IT, but now it applies to shadow AI across repositories, endpoints, and pipelines. The named concept here is AI asset sprawl: unmanaged AI components multiplying faster than security teams can classify them, which makes risk review incomplete by design. Practitioners should build inventory first, then enforcement.
Agentic workflow protection needs NHI-style lifecycle thinking because the privilege window is dynamic. The article shows why package trust and tool permissions cannot be managed as static entitlements when an agent can act autonomously. That is a direct governance intersection with non-human identity controls, especially around scoped access, short-lived authorization, and endpoint enforcement. In practice, teams should align AI agent governance with the same lifecycle discipline used for high-risk service accounts and ephemeral credentials.
Supply-chain defence must move from known-bad detection to publication-time and runtime control. The article’s emphasis on pre-signature malware detection reflects a reality where AI-targeted packages can appear and disappear faster than conventional signature pipelines react. That means behavioural analysis, endpoint policy, and dependency governance need to converge. For security leaders, the practical conclusion is that AI security cannot sit outside AppSec and DevSecOps reporting.
Governance evidence matters as much as prevention in AI security programmes. The strongest platform claims in the article are not only about blocking threats, but about producing an audit-ready AI-BOM and regulatory mapping. That matters because NIST AI RMF, EU AI Act, and ISO/IEC 42001 all expect organisations to know what AI they operate and how it is controlled. Practitioners should view AI security tooling as a source of compliance evidence, not just a detection feed.
What this signals
AI security programmes are now converging with identity governance because the machines doing the work also need scoped access, oversight, and auditability. The teams that will move fastest are the ones that stop treating copilots and agents as features and start treating them as governed machine identities with an operational lifecycle.
AI asset sprawl: the real programme risk is not only malicious packages or weak SAST coverage, but the inability to answer what AI exists, who owns it, and what it can reach. That is the point where security posture, access control, and compliance evidence become the same conversation.
Practitioners should expect AI security to split into two layers over the next cycle: discovery and enforcement at the control plane, then behaviour and provenance at runtime. The organisations that link those layers to identity controls will have a clearer path to measurable governance.
For practitioners
- Inventory every AI asset in the delivery chain Map models, agents, MCP servers, datasets, and AI coding tools across repositories, endpoints, and build systems so unmanaged components do not bypass policy.
- Treat MCP servers as governed machine identities Assign ownership, permission scopes, and change control to each MCP server, then review what files, APIs, and pipelines the server can reach.
- Add runtime enforcement to agentic workflows Block unapproved actions at the developer endpoint or execution layer instead of relying only on post-commit scanning and dependency review.
- Prioritise pre-signature package inspection Inspect newly published packages for suspicious behaviour before CVE assignment or signature updates can catch up, especially in AI tooling ecosystems.
- Generate AI-BOM evidence for governance and audit Export a machine-readable inventory of AI assets and risk mappings so compliance, legal, and security teams can work from the same record.
Key takeaways
- AI security tools now have to govern machine actors across code, agents, MCP servers, and supply-chain paths, not just scan source files after the fact.
- The evidence in the article and supporting research points to a real control gap: organisations can neither fully inventory AI activity nor consistently contain unintended agent behaviour.
- Security teams should respond by combining AI asset discovery, endpoint enforcement, and identity-aware lifecycle control for autonomous workflows.
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, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | The article covers agentic workflows, MCP risk, and AI tool misuse. | |
| NIST AI RMF | GOVERN | Governance, inventory, and accountability are central to the article. |
| NIST CSF 2.0 | PR.AC-4 | Privilege and access scope are core issues in agentic workflows. |
| MITRE ATT&CK | TA0006 , Credential Access; TA0008 , Lateral Movement; TA0010 , Exfiltration | The threat pattern includes credential theft, tool-path movement, and exfiltration. |
| CIS Controls v8 | CIS-5 , Account Management | The article’s identity angle centres on controlling machine and developer access. |
Map AI supply-chain and agent abuse scenarios to ATT&CK tactics for detection and response.
Key terms
- AI Security Posture Management: A governance approach for discovering and tracking AI assets such as models, agents, datasets, vector stores, and related infrastructure. It becomes useful only when inventory is connected to runtime exposure and the identity that can actually reach the data.
- Model Context Protocol: Model Context Protocol is an open protocol that lets AI agents connect to tools and data sources. It expands what an agent can reach, so governance has to cover not only the model and its prompts, but also every system that can receive or return agent-driven data.
- 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.
- AI-BOM: An AI bill of materials is a structured inventory of the components that define an AI agent, including the model, prompt, tools, retrieval sources, and dependencies. In practice, it is the evidence base for review, change control, and risk assessment when the agent evolves after deployment.
What's in the full article
Xygeni's full comparison covers the operational detail this post intentionally leaves for the source:
- Per-vendor feature comparison across AI-SPM, DevAI, Shield, CoreAI, and Malware Early Warning
- Pricing model details, including contributor-based tiers and free-tier availability
- Implementation-specific coverage of MCP enforcement, developer endpoint controls, and AI-BOM export
- Named product limitations and fit-for-purpose guidance for different team sizes
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle control. It helps security practitioners apply identity discipline to workloads, service accounts, and emerging agentic AI use cases.
Published by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org