TL;DR: A flaw in a Figma MCP server showed how AI-to-application channels can be turned into remote code execution, data exfiltration, and lateral movement, while Salt’s 2025 State of API Security report found 62% of organisations have already adopted GenAI for some or all API development. The security gap is not adoption itself, but the lack of mature identity and input-control assumptions around emerging AI agent pathways.
At a glance
What this is: This is an analysis of how an MCP server flaw turned an AI integration channel into an application compromise path, exposing a wider governance gap for AI agent access.
Why it matters: It matters because IAM, API security, and identity governance teams now have to treat AI-connected service paths as access-bearing identities, not just data transport.
By the numbers:
- 62% of organizations have already adopted GenAI for some or all of their API development.
- 56% now view Generative AI as a growing security concern.
- 47% cited the difficulty in understanding and securing AI-generated code itself.
- 15% are very confident in their ability to detect and respond to attacks that leverage AI.
👉 Read Salt's analysis of MCP server risk and AI-driven API attack paths
Context
MCP, or Model Context Protocol, is becoming the connective tissue between AI agents and enterprise applications, which means the protocol now carries identity and access risk as much as data exchange. In this case, a vulnerable MCP server showed how an apparently narrow integration layer can become a control point for remote code execution when input handling and execution boundaries are weak.
For IAM and security teams, the important shift is that AI integration paths are no longer passive plumbing. They are operational access channels that need governance for authentication, authorisation, input validation, and blast-radius control, especially when agents are allowed to trigger actions inside business applications. The starting posture described here is typical of fast-moving AI adoption, where security design follows integration rather than leading it.
The deeper problem is that organisations often treat agent-to-tool communication as a software engineering issue instead of an identity issue. Once an MCP server can act on behalf of an AI system, it inherits the trust expectations of that system and must be governed with the same discipline applied to other non-human identities.
Key questions
Q: What breaks when an AI integration server is treated like ordinary application plumbing?
A: The access model breaks first. An AI integration server often carries delegated authority, so treating it as ordinary plumbing ignores the privileges it can exercise inside connected systems. That leads to under-scoped reviews, weak input controls, and a false sense of separation between the AI system and the application it can manipulate.
Q: Why do MCP-style AI channels increase the risk of NHI misuse?
A: Because they rely on credentials, tokens, or service paths that can act on behalf of a system rather than a person. Once those paths are trusted to perform actions, any flaw in validation or scope can turn a legitimate integration into a privileged misuse path. The risk is governance, not just code quality.
Q: How can organisations tell whether an AI agent is operating outside its intended boundary?
A: Look for inconsistent classifications, premature tool calls, fabricated inputs, and responses that ignore structured guardrails. Those signals show the agent is optimising for task completion rather than respecting the workflow boundary. The safest response is to tighten the schema and review the tool path, not just rewrite the prompt.
Q: Who is accountable when an AI agent takes action through an MCP server?
A: The accountable party is the human or team that authorised the agent's access, but only if the organisation can prove that chain. Without immutable logs that connect the initiating identity to the tool call and final action, accountability becomes weak, and legal or compliance teams lose the evidence they need.
Technical breakdown
How MCP creates an AI-to-application trust boundary
MCP is a protocol layer that lets AI agents call tools and query data sources through a standard interface. That standardisation improves interoperability, but it also concentrates trust: the server becomes the place where requests are translated into application actions. If the server lacks strong input handling, scope checks, and execution isolation, it can become a privileged bridge rather than a safe integration layer. In practice, the security model must assume that every inbound parameter can influence an action, not just the business output. The failure mode is not the protocol itself, but the decision to trust the channel more than the identity and intent behind it.
Practical implication: treat MCP servers as access-bearing components and subject them to the same control review you would apply to privileged service accounts.
Why command injection in an AI integration layer is especially dangerous
Command injection occurs when attacker-controlled input is passed into a shell or execution context without sanitisation. In an AI integration server, that weakness is amplified because the input often looks legitimate at the protocol level, which can delay detection and make the traffic appear like normal agent activity. Once the backend executes the injected command, the attacker gains the ability to run arbitrary actions under the server’s privileges. This is a classic vulnerability pattern, but the consequence is broader here because the server is already designed to mediate trusted application access for AI systems.
Practical implication: enforce strict input validation, command allowlisting, and execution sandboxing on every AI-facing API path.
AI agent channels expand the non-human identity attack surface
When AI agents interact with enterprise tools, they do so through credentials, tokens, or delegated service paths that behave like non-human identities. That means the attack surface is not just the model prompt or the user interface, but the full chain of credentials and service permissions that enable action. A compromised MCP server can therefore become a beachhead for data exfiltration or internal movement because it is already trusted to act in the environment. This is why AI integration security and NHI governance are converging: the agent does not need to be malicious for the access path to be exploitable.
Practical implication: inventory AI-connected service accounts, tokens, and API paths as part of your NHI governance programme.
Threat narrative
Attacker objective: The attacker aims to turn a trusted AI integration path into control of the underlying server and use that access for exfiltration or further compromise.
- Entry occurred through a vulnerable MCP server API function that accepted attacker-controlled parameters for AI-driven data retrieval.
- Escalation followed when malicious command content was injected into the parameter and executed because backend input validation failed.
- Impact came from remote code execution, which could expose data, alter system files, or provide a beachhead for deeper movement under apparently legitimate AI traffic.
Breaches seen in the wild
- Meta AI Instagram Account Takeover — 20,225 Instagram accounts hijacked via compromised Meta AI support chatbot with overprivileged access.
- Replit AI Tool Database Deletion — Replit vibe coding AI assistant deletes live production database and creates 4,000 fake user records.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
AI integration is now an identity problem, not just an API problem: Once an MCP server can trigger actions on behalf of an AI system, it inherits the trust expectations of a non-human identity. That changes the governance question from "is the endpoint reachable" to "what authority does this path possess, and how is it constrained." Practitioners should stop treating MCP as a simple transport mechanism and start classifying it as an access-bearing control surface.
Input validation failure in an AI channel creates identity-level blast radius: This breach pattern worked because the server accepted data and converted it into execution without enough sanitisation. That is not only an application flaw, it is a governance gap because the AI access path was allowed to behave like a privileged operator. The practical consequence is that a single malformed parameter can inherit the privileges of the trusted integration and expand impact far beyond the original request.
AI agent access must be governed as a non-human identity lifecycle: The same discipline used for service accounts, API keys, and tokens now applies to agent-facing channels. If an AI integration can act, it needs ownership, scope review, and revocation logic, not just deployment oversight. This is where NHI governance and AI security merge, and practitioners need one control model that covers both the agent and the credential path it uses.
Ephemeral trust debt is the right concept for this class of risk: AI integrations often get approved quickly because they appear narrow and task-specific. The debt appears later when the path is reused, expanded, or connected to more sensitive systems without re-certification. That makes the risk cumulative rather than isolated, and teams need to recognise that each new AI channel increases the number of places where trust can silently outgrow intent.
Agentic capability does not reduce the need for least privilege, it makes the assumption harder to hold: The more capable the AI-to-tool path becomes, the less reliable static privilege assumptions are at provisioning time. If the server can invoke application actions dynamically, then least privilege cannot be defined only by role labels. Practitioners should treat this as a signal that their current entitlement model is too coarse for AI-mediated execution.
From our research:
- 62% of organisations have already adopted GenAI for some or all of their API development, according to Salt Security’s 2025 State of API Security report analysis.
- 56% now view Generative AI as a growing security concern, which shows the governance problem is already visible to security teams.
- That same report notes only 15% are very confident in their ability to detect and respond to attacks that leverage AI, a useful signal to pair with our analysis of AI agents as a new attack surface.
What this signals
AI integration is creating a new class of access-bearing services: teams that still separate API security from identity governance will miss how quickly protocol layers become privilege layers. The right operating model is to treat every AI-facing integration as part of the identity estate, with the same ownership and review expectations as other delegated access paths.
Ephemeral trust debt: this is the gap that appears when an AI channel is approved for one bounded use and then quietly becomes reusable for broader actions. Once that happens, the problem is not visibility alone. The programme needs lifecycle control, entitlement review, and explicit revocation points tied to the integration owner.
With 92% of organisations saying governing AI agents is critical yet only 44% having implemented policies to do so, according to SailPoint’s AI Agents report, most enterprises are still moving faster on adoption than on control design. That gap will keep showing up wherever AI paths can act on behalf of a business system.
For practitioners
- Classify MCP servers as privileged access paths Map every AI-facing API or protocol bridge to the business application it can influence, then assign an owner, scope, and review cadence as if it were a non-human identity with delegated authority.
- Harden AI integration inputs before execution Apply strict allowlisting, sanitisation, and command segregation to any parameter that can influence downstream shell, file, or application actions. Do not let data fields become execution triggers.
- Inventory AI-linked credentials and tokens List the service accounts, API keys, and delegated tokens used by AI agents and MCP servers, then track where each one can act and whether the access can be revoked independently.
- Review AI channels in NHI governance and recertification Fold AI integration paths into the same access review and lifecycle processes used for other NHIs, especially where the path can modify records, export assets, or reach internal systems.
Key takeaways
- MCP servers turn AI integrations into access-bearing trust boundaries, so they belong in identity governance as much as in API security.
- A command injection flaw in an AI-facing channel can escalate from a malformed parameter to remote code execution and broader internal compromise.
- Practitioners need ownership, lifecycle review, and input-hardening controls for every AI-linked service path before adoption widens further.
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, OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A1 | MCP abuse and tool misuse sit squarely in agentic application risk. |
| OWASP Non-Human Identity Top 10 | NHI-03 | The article centres on credentialed AI access and delegated non-human identity paths. |
| NIST CSF 2.0 | PR.AC-4 | The flaw shows weak access governance around system-to-system trust. |
| MITRE ATT&CK | TA0006 , Credential Access; TA0002 , Execution | Credentialed access and command execution are central to the described attack chain. |
| NIST SP 800-53 Rev 5 | AC-6 | Least privilege and privileged execution limits are directly implicated. |
Review AI-facing credentials for scope, ownership, and revocation, then apply least privilege to each integration.
Key terms
- 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.
- AI Integration Path: An AI integration path is the technical route an AI system uses to reach an enterprise application, typically through APIs, tokens, or service accounts. It becomes a governance object when it can modify data, trigger workflows, or access sensitive systems under delegated authority.
- Command injection: Command injection occurs when attacker-controlled data is inserted into a shell command and changes what the process executes. In AI tooling, that often happens through wrappers, plugins, or installation flows that turn paths or prompts into shell strings. The impact is privilege abuse through the process’s inherited authority.
- Ephemeral Credential Trust Debt: Ephemeral credential trust debt is the hidden risk that appears when short-lived tokens create a false sense of safety while permissions remain broad. The credential expires quickly, but the underlying blast radius stays large unless identity scope, revocation, and audit controls are also tightened.
What's in the full article
Salt's full analysis covers the operational detail this post intentionally leaves for the source:
- The exact API function pattern that made the MCP server vulnerable and why it mattered for AI retrieval workflows.
- The reported experiment details around command injection and remote code execution in the application layer.
- The broader API security findings from Salt's 2025 State of API Security report and how they frame AI adoption risk.
- The vendor's behavioural threat-protection framing for AI agent traffic and how it is positioned for API monitoring.
👉 Salt's full post covers the MCP attack chain, API weakness, and the broader AI security context.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an identity security programme, it is worth exploring.
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org