Vulnerability Management – Securing the AI Attack Surface: Why Blind AI Adoption Expands Your Risk
Shrink your AI attack surface before attackers find it: lessons from Langflow and LiteLLM, AIBOMs, non-human identity controls and an OWASP-mapped plan.
- vulnerability-management
- ai-security
- aibom
- non-human-identities
- owasp
- supply-chain-security
- vmdr
Most organizations did not decide to build an AI attack surface. It grew one workflow builder, one LLM gateway and one MCP server at a time, usually faster than the security program could register who owned each piece. The business case for AI is real, and slowing adoption is rarely the right answer. The harder question for a VM team is whether security practices are arriving early enough, because the incidents of the past eighteen months show that AI tooling is now being exploited like any other internet-facing software, and once an attacker is inside a component that holds every model key and cloud credential, the response is already a recovery exercise.
This post looks at how blind adoption blurs the scope of a security program, what Langflow and LiteLLM teach as learning events, why an AI bill of materials (AIBOM) matters, how to harden the non-human identities that AI systems run on, and how to fold all of it into an existing VM program. As always, adapt the suggestions to your own environment and risk appetite.
How Blind Adoption Blurs the AI Attack Surface
A traditional VM program has a reasonably clear scope: endpoints, servers, network devices, cloud workloads, containers and applications, each with an owner and a patch path. AI components slip between those categories:
- Agent and workflow frameworks (Langflow, Flowise, LangChain-based services) are often stood up by a data or product team as a prototype that quietly becomes production.
- LLM gateways and proxies such as LiteLLM sit between applications and model providers and hold provider API keys, routing rules and usage logs.
- MCP servers give agents tools, and some run as local processes launched from a configuration string.
- Vector databases, notebooks and experiment trackers are frequently deployed with default settings by people who do not think of themselves as running infrastructure.
- Shadow AI, meaning tools staff adopt without approval, never reaches the inventory at all.
The result is a set of questions nobody owns. Is a Python package in a notebook image an application dependency or a platform component? Who patches the gateway: the platform team, the data science team or the vendor of the managed service? Which scanner covers a container that only runs during a training job? When those answers are unclear, findings either are not raised or are raised and then sit unassigned, which is exactly the exposure debt pattern described in the exposure debt metrics post.
The scale is no longer small. Google Threat Intelligence Group (GTIG) tracked 2,076 AI-related CVE disclosures between January 2025 and August 2026, with more than 1,500 of them in January to August 2026 alone. Orchestration and agent frameworks accounted for 782 of the 2026 disclosures, and inference and serving infrastructure, including LiteLLM, vLLM and Ollama, for 212, with GTIG noting that nearly a quarter of those serving flaws stem from unauthenticated API endpoints or server-side request forgery. GTIG also stresses that only a handful of the 2,076 have been confirmed as exploited in the wild. That is the useful framing for prioritization: high volume, a small exploited subset, and that subset concentrated in components that are exposed and highly privileged.
Learning Events: Langflow and LiteLLM
Both projects are widely used because they are useful, and both maintainers published advisories and fixes. The point is what the incidents teach.
Langflow: from an unauthenticated endpoint to MCP configuration
CVE-2025-3248 allowed a remote, unauthenticated attacker to execute code through Langflow’s /api/v1/validate/code endpoint in versions before 1.3.0, which was released on March 31, 2025. CISA added it to the KEV catalog on May 5, 2025, and Trend Micro later reported a campaign using it to deliver the Flodrix botnet.
In October 2026, The Hacker News reported exploitation of CVE-2026-105740 (CVSS 9.9), which affects versions before 1.9.0. Langflow’s advisory explained that any authenticated user, including non-admin accounts, could add an MCP server using the stdio transport, and the supplied command would run on the server. It added a detail every reviewer should note: “Unlike custom component code which is visible in the flow editor, MCP server configs are stored in project settings and are not visible during normal flow review.” Previdian’s honeypots recorded 1,423 exploitation attempts from 27 IP addresses starting September 19, 2026, and in one sequence the attackers authenticated with a common username and password before going straight to the MCP endpoint.
Lessons: “authenticated” is not a mitigating factor when default or weak credentials are in use, and agent configuration is executable content. Treat MCP server definitions like code: review them, restrict who can add them and monitor changes to them.
LiteLLM: a gateway is a credential vault
LiteLLM shows two different paths into the same high-value component.
- Vulnerability: CVE-2026-42271 affected versions 1.74.2 to before 1.83.7. Per the GitHub advisory, two MCP preview endpoints would spawn a supplied stdio command on the proxy host, and they “were gated only by a valid proxy API key, with no role check.” CISA added it to KEV on June 8, 2026. A CSA research note describes Horizon3.ai research chaining it with a Starlette host header flaw (CVE-2026-48710) for unauthenticated execution, which is why the fix requires upgrading both LiteLLM and Starlette.
- Supply chain: on March 24, 2026, LiteLLM 1.82.7 and 1.82.8 were published to PyPI with malicious code. Datadog Security Labs linked it to a wider campaign and advised treating any host or CI job that installed them as “a full-credential exposure event.” On October 21, 2026, a compromised 1.107.0 release followed. Microsoft’s analysis reports that, according to the maintainers, stolen developer GitHub credentials were used to alter the release workflow, and that the payload ran through Python startup hooks, so “investigators should not start Python or pip inside a suspect environment.”
Lessons: a component’s blast radius is defined by the secrets it holds, not by its CVSS score. Package presence on a developer laptop or CI runner is in scope, not just the production gateway. And the supply chain attack itself started with a non-human identity problem: publishing and workflow credentials.
Why an AIBOM Is Central to AI Stack Security
You cannot scan, patch or revoke what you have not listed. An SBOM covers the software packages in an AI system; an AIBOM extends it to the parts that are specific to AI. A practical AIBOM records:
- Models: name, version, source, hash, license and where they are served.
- Datasets: training, fine-tuning and retrieval sources, with provenance and sensitivity.
- Frameworks and runtimes: orchestration, serving, ML libraries and their versions.
- Tools and plugins: MCP servers, connectors and the commands or endpoints they invoke.
- Configuration: system prompts, guardrail settings and model routing.
- Identities: which keys, tokens and service accounts each component uses.
The standards are maturing. CycloneDX introduced machine learning BOM support in version 1.5, and SPDX 3.0 includes AI and dataset profiles. In May 2026, CISA and G7 partners released SBOM for AI minimum elements guidance, building on the G7’s June 2025 shared vision. The guidance states that the AI elements are “in addition to the general SBOM minimum elements” and are not mandatory.
For a VM program, the AIBOM is what makes the GTIG numbers actionable. When the next Langflow or LiteLLM advisory lands, the AIBOM answers which teams run it, which versions, whether the vulnerable feature is enabled and which credentials need rotating. Several platforms now generate AI inventories from cloud and code: Microsoft Defender for Cloud’s AI security posture management, Wiz AI-SPM, Tenable AI Exposure and Qualys TotalAI are examples, and these are vendor capabilities to evaluate against your own estate, not a ranking.
What the Surveys Say About Readiness
Two recent surveys put numbers on the gap between adoption and control.
IBM’s 2026 Cost of a Data Breach report found that security incidents involving shadow AI “more than doubled to 43% this year from 20% last year,” with an average cost of USD 5.39 million. AI-related breaches grew to 21% from 13%. Among organizations that had one, 92% lacked proper AI access controls, and only 40% of organizations reported using access controls on AI models and data. Most breached organizations (68%) lacked AI governance to manage AI or detect shadow AI, and only 19% said their governance and security teams coordinated. IBM’s summary: “AI adoption is outpacing oversight.”
On identities, the Cloud Security Alliance’s State of Non-Human Identity and AI Security survey, commissioned by Oasis Security, found that 78% of organizations lack documented policies for creating or removing AI identities, 79% rated their confidence in preventing NHI-based attacks as low or moderate, and 24% take more than 24 hours to rotate or revoke a credential after a potential exposure.
Read together, the surveys and the incidents describe the same thing: the weak point is rarely the model. It is access control, ownership and credentials around it.
Hardening Non-Human Identities in the AI Attack Surface
Every agent, gateway, MCP server and pipeline runs as something: a service account, an API key, an OAuth client or a workload identity. The OWASP Non-Human Identities Top 10 (2025) lists the failure modes, from improper offboarding and secret leakage to long-lived secrets, overprivileged NHIs and human use of NHIs. Applied to AI systems:
- Give every agent its own identity. No shared keys between agents, environments or teams, so you can revoke one without breaking ten.
- Scope to the task. An agent that summarizes tickets does not need write access to the ticketing system. Map tool permissions explicitly.
- Prefer short-lived credentials. Use workload identity federation or token exchange where the platform supports it, and set expiry on the keys that remain.
- Keep secrets out of configs and prompts. Store provider keys in a secrets manager, not in environment files baked into images or notebook cells.
- Assign an owner and a lifecycle. Every AI identity gets a named human owner, a creation record and a review or expiry date.
- Authenticate MCP and tool calls. Require authentication on MCP endpoints, restrict who can register new servers and allowlist stdio commands where they are used at all.
- Keep a human in the loop for high-impact actions. Payments, production changes, data deletion and external messages should require approval, with the request shown in plain terms.
- Practice rotation. If rotating every key a gateway holds takes days, that is the number to fix before the next supply chain incident.
Mapping Controls to the OWASP AI Lists
The OWASP Top 10 for LLM Applications 2025 and the OWASP Top 10 for Agentic Applications 2026 give a shared vocabulary for risk reviews. This compact mapping links the main entries to controls a VM and platform team can own:
| Risk (OWASP ID) | Practical control |
|---|---|
| Prompt Injection (LLM01), Agent Goal Hijack (ASI01) | Treat retrieved content as untrusted; limit what an agent can do after reading it |
| Sensitive Information Disclosure (LLM02), System Prompt Leakage (LLM07) | Keep secrets out of prompts; apply data classification to RAG sources |
| Supply Chain (LLM03), Agentic Supply Chain Vulnerabilities (ASI04) | AIBOM, pinned and hash-verified dependencies, provenance checks, internal mirrors |
| Data and Model Poisoning (LLM04), Memory & Context Poisoning (ASI06) | Dataset provenance in the AIBOM; write controls on vector stores and agent memory |
| Improper Output Handling (LLM05), Unexpected Code Execution (ASI05) | Sandbox code execution; never pass model output or configs straight to a shell |
| Excessive Agency (LLM06), Tool Misuse and Exploitation (ASI02) | Least-privilege tool scopes; approval for high-impact actions |
| Identity and Privilege Abuse (ASI03) | Per-agent identities, short-lived credentials, NHI ownership and offboarding |
| Vector and Embedding Weaknesses (LLM08) | Authentication and tenancy controls on vector databases; scan them like any datastore |
| Unbounded Consumption (LLM10), Cascading Failures (ASI08) | Rate limits, budgets and circuit breakers at the gateway |
| Insecure Inter-Agent Communication (ASI07), Rogue Agents (ASI10) | Authenticated agent-to-agent channels; behavior monitoring and a kill switch |
| Misinformation (LLM09), Human-Agent Trust Exploitation (ASI09) | Show sources and proposed actions clearly before a human approves |
A Practical Program for AI Stack Security
None of this needs a separate program. It needs the existing VM program to extend its scope deliberately. In an ideal world, a phased rollout might look like the sequence below. It is an illustrative example, not a prescription; each enterprise should adjust the order, depth and pace to its own risk appetite, tolerance and resourcing.
- Inventory. Discover AI components across cloud accounts, clusters, code repositories, package manifests and SaaS sign-ins. Include developer and CI environments, since the LiteLLM supply chain incidents reached them.
- AIBOM. Generate and store AIBOMs for production AI systems in CycloneDX or SPDX, linked to owners and to the identities each component uses.
- Scanning and remediation targets. Bring AI frameworks, gateways and MCP servers under authenticated and container scanning, and give exposed, KEV-listed AI components the same treatment as other internet-facing software. The tiers in the BOD 26-04 remediation SLAs post and the context factors in the context-aware prioritization post apply directly.
- NHI hardening. Apply the identity controls above, starting with the gateways and orchestration servers that hold the most keys.
- Guardrails and monitoring. Log tool calls and MCP configuration changes, restrict egress from AI hosts and alert on unusual credential use.
- Governance. Set an approval path for new AI tools that is faster than the shadow route, and review it with both the governance and security teams.
Metrics That Show Progress
- Share of AI components with a named owner and a current AIBOM
- Share of AI hosts and images under authenticated or container scanning
- Time to remediate KEV-listed AI stack vulnerabilities on exposed components
- Time to rotate all credentials held by a gateway, measured in an exercise
Wrapping Up
AI adoption will keep growing because the business value is real. The organizations that do it safely are not the ones that slow it down; they are the ones that put AI components into the inventory, the AIBOM, the scan scope and the identity program from the first prototype. Langflow and LiteLLM are useful reminders that attackers already treat the AI stack as ordinary, exploitable infrastructure. The defensive work is ordinary too, and the earlier it starts, the less of it happens mid-incident.
About the author
Vulnerability Management @ Philips. Writing on cybersecurity, security automation, and the inner life — from Bengaluru, building in public since 2014.
Connect on LinkedIn →Related posts
- Vulnerability Management – Context-Aware Vulnerability Prioritization to Pay Down Exposure Debt
Context-aware vulnerability prioritization uses reachability, deployment and threat evidence so VM teams fix what is exploitable first and shrink exposure debt.
- VMDR Strategies for the Negative Patch Cycle: Handling AI-Assisted Attacker Frameworks
When AI compresses attacker timelines below traditional patch cycles, vulnerability management programs must shift from pure remediation toward continuous detection, response, compensating controls, and a strong human-centered security culture.
- Operationalizing VMDR – Part 4: Vulnerability Scanner Placement, Reach and Proving Coverage
Vulnerability scanner placement that reaches every segment: firewall paths, cloud, branches, sizing and safe OT scanning, plus how to prove coverage is real.