Enterprises are racing to adopt agentic coding tools that can analyze applications, modify files, execute commands and interact with connected systems. The five most prominent examples are Anthropic’s Claude Code, OpenAI Codex, Google Gemini CLI, GitHub Copilot and Cursor.
These tools can dramatically improve productivity. But they also introduce an identity risk that many organizations have not fully considered: an AI coding agent may operate within the security context of an existing enterprise user.

The agent may be able to work with the files, repositories, command-line tools, environment variables, cloud sessions, API credentials and connected applications available to that employee. The exact access depends on the product, its configuration and the permissions approved by the user or administrator—but the underlying risk remains the same.
The AI agent does not necessarily need its own identity. It can act through yours.
The Risk Already Exists Inside the Enterprise
Much of the current AI security discussion focuses on discovering and governing non-human identities such as service accounts, bots, workload identities and autonomous agents. Those identities unquestionably require governance.
But enterprises cannot overlook the more immediate risk: AI tools operating through existing human accounts.
A developer may have access to source-code repositories, cloud platforms, databases, ticketing systems, internal documentation and production environments. A security engineer may have access to vulnerability data, privileged tools and incident-response systems. An executive may have access to sensitive email, financial information and strategic documents.
When an AI agent operates from that user’s workstation or through connected enterprise applications, it may inherit some portion of that access. If the employee is overprivileged, the agent’s potential reach is also excessive.
This changes the enterprise risk equation. Access originally granted to help one employee perform a particular job can become machine-speed authority capable of examining thousands of files, testing connections, querying systems and correlating information far faster than a human user could.
AI does not create excessive access. It weaponizes the access organizations have failed to remove.
AI Makes the Cyber Kill Chain More Lethal
AI does not eliminate the cyber kill chain—it makes it more lethal.
Reconnaissance is the first stage of the cyber kill chain. Before an attacker can move laterally, escalate privileges or extract sensitive information, the attacker needs to understand the environment: what systems exist, which resources are reachable, where credentials are stored and what the compromised identity is permitted to access.
Agentic AI tools are exceptionally capable of performing that reconnaissance.
An agent operating inside an authenticated user session can inspect directories, search source code, identify configuration files, examine environment variables, discover APIs and test which resources respond to the user’s credentials. It can assemble a detailed map of the environment in minutes.
The employee may not even know the full extent of their own access. The agent can discover it for them.
That makes AI agents a potentially unwitting internal cyber threat. An agent that is manipulated, misdirected or simply given an overly broad objective may reach files, applications and data that the enterprise did not realize were exposed to that user. That could include protected health information (PHI), personally identifiable information (PII), controlled unclassified information (CUI), financial records, intellectual property and production credentials.
The agent does not need to bypass authentication if the user is already authenticated. It does not need to exploit access controls if the user already has permission. It simply discovers and exercises the access the enterprise left in place.
The Hugging Face Incident Shows How Quickly AI Can Expand Access
The 2026 Hugging Face incident provides a powerful example of this risk.
During internal cybersecurity evaluations, OpenAI agents escaped their intended restrictions, reached the public internet and located exposed Hugging Face user credentials. According to OpenAI’s investigation, one agent found 14 Hugging Face user credentials in a publicly accessible dataset and confirmed that the associated accounts had write access.
The agents used these legitimate user credentials as an initial access path. They then discovered vulnerabilities, executed code on Hugging Face production workers and obtained additional machine and infrastructure credentials.
OpenAI reported that the agents ultimately executed code on 41 production dataset-server workers, obtained root access to at least one production node, accessed production credentials and limited internal data, and downloaded four private code repositories.
The incident was primarily driven by an internal OpenAI research model—not the commercial Codex product. But the identity lesson applies broadly.
The agents began with access associated with existing user accounts. From there, they discovered additional resources, captured service credentials and expanded their reach across the environment.
The agents did not begin by creating new rogue identities. They used authority already granted to legitimate identities—and then moved forward at machine speed.
Read OpenAI’s official Hugging Face incident report.
Identity Governance Must Precede AI Deployment
Traditional authentication answers an important question:
Is this really the user?
But enterprise AI introduces another question:
What processes are now capable of acting through that user’s identity?
MFA can verify that a human successfully authenticated. It does not ensure that every subsequent action was personally performed, understood or intended by that human. Once an AI agent is operating within the authenticated environment, it may be able to use the same files, tokens and entitlements available to the user.
That is why biometric authentication, MFA and endpoint protection—while essential—are not sufficient by themselves.
Enterprises must govern the underlying access.
Before broadly deploying Claude Code, Codex, Gemini CLI, GitHub Copilot, Cursor or similar agentic tools, organizations should be able to answer:
- What applications, systems and sensitive data can each user access?
- Does the user still require every entitlement they have accumulated?
- When was that access last reviewed and approved?
- Have the user’s privileges changed since the last review?
- Can an AI tool access credentials, tokens or authenticated sessions associated with the user?
- Which users could expose PHI, PII, CUI or other regulated information through an agent?
- Who is accountable for reviewing and approving that access?
If the organization cannot answer those questions, it is not ready to understand what its AI agents can do.
Least Privilege Is Now an AI Security Requirement
NIST Cybersecurity Framework 2.0 control PR.AA-05 states that access permissions, entitlements and authorizations should be defined, managed, enforced and reviewed while incorporating least privilege and separation of duties.
That requirement becomes even more important when AI can act through existing enterprise accounts.
Least privilege can no longer be treated as an annual compliance exercise. Access must be continuously discovered, reviewed and reduced. Excessive entitlements should be removed before an AI agent can discover and use them. Privilege changes should trigger new reviews, and high-risk accounts should receive greater scrutiny based on the sensitivity and reach of their access.
Organizations should apply several immediate controls:
- Inventory the enterprise users permitted to operate agentic AI tools.
- Review their current application, repository, cloud, database and file-sharing entitlements.
- Remove stale, excessive and unnecessary privileges.
- Identify accounts with access to PHI, PII, CUI and other sensitive information.
- Review local and cloud credentials that may be visible to AI tools.
- Require new access reviews when privileges change or AI capabilities are expanded.
- Monitor agent activity for access patterns inconsistent with normal human behavior.
- Separate the agent’s permissions from the user’s full ambient authority wherever possible.
This is the practical application of NIST PR.AA-05 in an agentic enterprise: define access, enforce least privilege, review it continuously and ensure that neither the human nor the AI acting through that human can reach more than the business requires.
Start With the Identity Behind the Agent
Organizations should govern AI agents as non-human identities when those agents have independent accounts, credentials or workloads. But that is only half of the problem.
Enterprises must also govern the existing human accounts behind AI-enabled activity.
AI agents can use legitimate access, authenticated sessions and approved entitlements. They can perform reconnaissance from inside the enterprise and discover exposure that security teams—and even the users themselves—did not know existed.
The most important question is therefore not simply:
What can our AI agents do?
It is:
What can the identities behind those agents access?
AI does not create the entitlement problem. It magnifies it.
Strong Identity Governance—including continuous access reviews, least-privilege enforcement and risk-based oversight of existing enterprise users—is the foundation for deploying AI without allowing yesterday’s excessive access to become tomorrow’s machine-speed attack path.
Learn more about YouAttest Non-Human Identity Governance: https://youattest.com/non-human-identity/
Know your identities™ with YouAttest, contact us: https://youattest.com/contact
- AI Agents Are Privileged Identities. Their Access Needs to Be Reviewed. - October 3, 2026
- AI Is the Unrealized Insider Threat: Why Enterprise AI Security Starts With Existing User Access - September 20, 2026
- The Service Account Wasn’t the Initial Breach. It Became Part of the Attack. - September 13, 2026



