TL;DR: Roughly half of MCP server configurations store credentials in plaintext, while one test deleted and hard-deleted 2,550 accounts in eight minutes after a single human instruction, according to Netwrix. The core issue is that AI agents inherit broad access faster than identity controls can observe, constrain, or recover from, so trust assumptions collapse in-session.
At a glance
What this is: This webinar-preview analysis shows how AI desktop agents and poorly protected MCP credentials can turn ordinary automation into rapid identity compromise.
Why it matters: It matters because IAM, NHI, and human identity programmes now need to govern how AI agents are authorised, how secrets are stored, and how fast abuse can spread.
By the numbers:
- 2,550 accounts deleted and hard-deleted in eight minutes.
- 79% of organisations have experienced secrets leaks, with 77% of these incidents resulting in tangible damage.
👉 Register for Netwrix's webinar on AI agents, MCP secrets, and identity risk
Context
AI desktop agents are changing the identity problem because they can act on data and tools at machine speed once they are connected to credentials and systems. The first control failure is not model quality. It is the assumption that access granted for convenience will remain understandable, reviewable, and recoverable once the agent starts executing.
For identity teams, the issue sits at the intersection of NHI governance and human oversight. Employees are already wiring agents into files, databases, and identity infrastructure, which means one mismanaged MCP configuration can become a broad access path rather than a narrow integration point.
This is not an abstract AI risk. It is a familiar identity failure pattern compressed into a shorter timeline, wider blast radius, and weaker accountability chain. In practice, that makes secret handling, authorisation scope, and auditability the controls that decide whether an AI workflow remains bounded or becomes a delegated compromise path.
Key questions
Q: How should security teams govern AI agents that use shared credentials?
A: Treat shared credentials as high-risk identity material, not just operational convenience. Give agents only task-scoped access, store secrets outside plaintext configs, and separate approval for destructive actions from approval for routine read access. The goal is to stop one secret from becoming a bridge into multiple systems.
Q: Why do AI desktop agents increase identity risk compared with normal automation?
A: They increase risk because they can combine broad access, tool use, and rapid execution in a single session. That compresses the time defenders have to notice misuse and makes standing privilege more dangerous. The control problem is not automation itself, but unchecked delegation with too much reach.
Q: What breaks when credentials are stored in plaintext for AI workflows?
A: Plaintext credentials break separation between configuration and access control. Anyone or anything that can read the file can reuse the secret, which means the secret can outlive the intended workflow and unlock unrelated systems. In practice, one exposed config can become a multi-system compromise path.
Q: Who is accountable when an AI agent deletes or changes accounts without review?
A: Accountability stays with the team that granted the access and defined the workflow, even if the agent executed the action. Governance must therefore assign owners for the secret, the permission scope, and the approval boundary. Without that, audit logs explain the event but do not clarify responsibility.
Background and context
Plaintext MCP credentials as an identity bridge
Model Context Protocol connects an AI system to tools and data sources, but the protocol itself does not secure the secrets used to authenticate those connections. When credentials sit in plaintext inside configs, the agent is not the only consumer. Anyone who can read the file, copy the token, or abuse the connected process can inherit access. That creates a delegated identity bridge from the agent to downstream systems such as source control, databases, and directory services. The architectural problem is not just exposure. It is that one shared secret can represent membership across multiple control planes at once.
Practical implication: treat every MCP configuration as an identity artefact and remove plaintext secrets from any file the agent can access.
Why AI desktop agents amplify standing privilege
Desktop agents are attractive because they sit close to the user and can act across local and cloud resources, but that proximity also expands the trust boundary. If an agent is handed broad permissions, it can move from query to action without a fresh approval checkpoint for each step. That is a classic standing privilege problem in a new form. The key difference is speed. A human operator may take minutes to misuse access, while an agent can chain actions before monitoring, review, or containment catches up. The result is not just faster execution. It is faster failure propagation.
Practical implication: scope agent permissions to the smallest task set possible and force separate authorisation for high-risk actions.
Audit logs do not fix short-lived abuse windows
Audit logging is still necessary, but it is not a compensating control when the damage occurs before the event is reviewed. In the example described by Netwrix, the account deletions were complete before the activity was obvious in logs. That is the core limitation of retrospective monitoring in AI-mediated identity abuse. Once a credential is reused by a high-speed workflow, the meaningful control points shift to pre-execution authorisation, secret hygiene, and blast-radius reduction. Logging explains what happened. It does not stop the delegated action path that made it possible.
Practical implication: pair logging with preventative controls that block secret reuse and limit destructive actions before execution.
NHI Mgmt Group analysis
Plaintext MCP credentials create identity blast radius, not just secret exposure. A credential sitting in a server config is not a passive leak when an AI agent can consume it directly. It becomes a reusable identity bridge into multiple systems, which means one error can collapse directory, application, and data boundaries at once. The practitioner lesson is to treat secret placement as a control-plane decision, not a convenience choice.
Standing privilege assumptions break when AI can act faster than governance cycles. Access review, certification, and manual exception handling were designed for access that persists long enough to be observed and corrected. That assumption fails when an AI agent can chain actions in minutes and finish the destructive sequence before a reviewer sees the artefact. The implication is that review-based governance cannot be the only line of defence for agent-driven workflows.
Identity blast radius is the right concept for AI desktop agents. The question is no longer whether an agent is allowed to use a secret. It is how many systems that single secret can unlock once the agent starts moving across tools, directories, and data stores. OWASP-NHI and Zero Trust both point to the same problem: excessive reach creates a wider failure domain than most teams model today. Practitioners should map blast radius before they connect the agent.
Human approval is not a durable control when execution is delegated to software. A human can authorise the first step, but the agent may complete the rest without additional checkpoints. That breaks the old delegation model in which accountability and action stayed temporally aligned. Security programmes need to recognise that the approval event is no longer the same thing as the execution event.
AI-mediated identity abuse collapses the gap between access and impact. In conventional NHI incidents, defenders sometimes have a narrow window to detect secret misuse before large-scale damage. Here, the window is much shorter because the same workflow that reads the secret can also execute the destructive action. The practical conclusion is that containment must move closer to secret origin and permission scope.
From our research:
- 79% of organisations have experienced secrets leaks, with 77% of these incidents resulting in tangible damage, according to the Ultimate Guide to NHIs.
- Only 5.7% of organisations have full visibility into their service accounts, which shows how often identity inventory still lags actual access exposure.
- For the broader control pattern, see 52 NHI Breaches Analysis for real-world cases where unmanaged credentials extended the attack path.
What this signals
Identity teams should expect AI agents to expose the weakest part of the programme first: secret placement. The practical boundary is no longer where a workflow begins, but where a credential can be copied, reused, or inherited by software. With 30.9% of organisations storing long-term credentials directly in code, per the Ultimate Guide to NHIs, the near-term work is removal and containment rather than more logging.
Identity blast radius is becoming a governance metric, not just an incident concept. If one MCP config can unlock GitHub, databases, and Entra ID, then the programme needs to measure how many systems any single secret or agent connection can reach. That is a far more useful planning signal than counting integrations alone.
Control design needs to assume agent-timed execution. Review cadences built around human-paced activity will continue to miss workflows that can complete in minutes. Teams should align with the NIST AI Risk Management Framework and use it alongside identity controls that limit reach before execution begins.
For practitioners
- Eliminate plaintext MCP secrets from shared configs Move credentials into managed secret stores and stop placing API keys, tokens, or service account material in files that an agent or desktop process can read directly.
- Split agent permissions by task and system Give the AI agent only the smallest set of actions needed for one workflow, then separate directory, file, and administrative permissions so one credential cannot unlock everything.
- Add pre-execution checkpoints for destructive actions Require explicit approval before bulk deletes, privilege changes, or directory-wide changes so the agent cannot complete high-impact operations in a single uninterrupted run.
- Inventory where agents touch identity infrastructure Map every place a desktop agent can reach Entra ID, GitHub, databases, or similar systems, then remove connections that are convenient but not operationally necessary.
- Test for blast-radius failure, not just secret leakage Run exercises that ask how many accounts or systems one plaintext secret could expose if an agent reused it, then fix the widest paths first.
Key takeaways
- AI desktop agents can turn weak secret handling into rapid identity compromise because the same credential can unlock multiple systems.
- Netwrix’s example shows how destructive actions can finish before logs become operationally useful, which shortens the defender’s response window.
- Security teams should reduce blast radius first by removing plaintext secrets, scoping permissions tightly, and forcing approval for destructive actions.
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 address the attack and risk surface, while NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 | Plaintext MCP secrets are an exposure and misuse problem. |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | Broad agent access conflicts with least-privilege access enforcement. |
| NIST AI RMF | Agentic workflows need governance over delegated actions and accountability. |
Assign ownership for agent actions, approval boundaries, and escalation rules in the governance function.
Key terms
- MCP credential: A credential used by an AI system to authenticate to tools and data sources through Model Context Protocol. In practice, it behaves like any other non-human identity secret and must be protected as access material, not as a configuration convenience.
- Identity blast radius: The amount of access or damage that one secret, account, or delegated workflow can create once it is reused or misused. For AI agents, blast radius matters more than raw access count because one credential can unlock several systems at machine speed.
- Standing privilege: Persistent access that remains available without just-in-time provisioning or a fresh approval boundary. In AI-driven workflows, standing privilege is especially risky because software can use it repeatedly, quickly, and without the natural pauses that human operators introduce.
- Delegated execution: A workflow where a human authorises an initial action but software completes the remaining steps using the granted access. The control challenge is that accountability, timing, and impact can separate after the first approval, making later actions harder to supervise.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
This post draws on content published by Netwrix: Your own AI is getting used to pwn you. Here is how to stop it. Read the original.
Published by the NHIMG editorial team on 2026-06-16.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org