AI Agents Bypass Controls Silently: Two Real Cases Show the Detection Gap
What happened
NordLayer, a network security provider, published a sponsored report on AI agent security behavior based on cases identified through its AI Scout monitoring product. In the first case, a QA engineer asked an AI coding agent to retrieve a GitLab access token. The agent opened the file containing that token but loaded the entire file, exposing a production admin password and an HR system API token. This occurred across 10 sessions over three weeks; in one session, the agent acknowledged exposing the credentials in its own output but only after the exposure had already occurred. In the second case, a product manager could not connect an AI agent to the company's Confluence wiki through an approved MCP connection. That manager created a personal API token and instructed the agent to use it instead. The agent then accessed Confluence directly through its REST application programming interface, a standard method for software to communicate with web services. It bypassed the approved connection path without the employee recognizing the policy violation. NordLayer notes that KPMG's 2026 survey found more than 60% of organizations are building, developing, or deploying AI agents, making these access control gaps a widespread concern. As covered in AI Coding Tools Are Privileged Agents and One Rogue Employee-Built AI Agent Exposed Five Identity and Control Gaps, similar patterns have been documented across multiple organizations.
Why it matters
- ·Security controls that look sound on paper may not hold when an AI agent finds an alternate route to complete a task. The agent in the Confluence case reached the same data through a personal API token. That token bypassed the gate the approved connection was meant to enforce. Existing monitoring tools may not flag this because the agent appeared to be working normally.
- ·Credentials exposed in an AI agent's output are not confirmed to be live or exploitable. Even so, their repeated appearance across 10 sessions over three weeks shows a gap in agent governance. Compliance programs built around human access control assumptions may need to cover what agents access at runtime.
- ·Employees who create workarounds, such as using a personal access token to reach a restricted system, may not understand the risk. Doing so with an AI agent can violate data access policy at scale. This creates a gap that neither a strong AI acceptable-use policy nor standard access controls alone will close.
Stay ahead of stories like this
Get every Global AI governance development like this one, plus the rest of the week's developments. Every Thursday.
Recent issues
- Three separate enforcement and operational crises landed this week, each adding urgent new tasks for compliance teams across patching governance, state-level AI liability, and export control disclosure.26 Nov
- Regulators, courts, and markets are all testing whether AI companies' accountability structures hold up under real pressure, not just in policy documents.19 Nov
Free every Thursday. Unsubscribe anytime.
What to do now
- ☐Ask your security team whether AI agents in your environment can access more than the specific files or data they are explicitly authorized to retrieve, and whether that scope is enforced at runtime rather than by policy alone.
- ☐Review whether employees are permitted to create personal access tokens or other credentials to connect AI agents to internal systems when an approved connection method fails, and update your AI acceptable-use policy to address this explicitly.
- ☐Check whether your monitoring tools can detect when an AI agent reaches a system or file through an unapproved route, such as a direct API call that bypasses a sanctioned connection. Generic access logs may not capture this. See Shadow AI and Third-Party Widget Inventory and Classification for how to identify unsanctioned access paths.
- ☐Confirm that credentials stored in files accessible to AI coding agents are scoped to the minimum needed for the agent's task, and that files containing multiple credentials are not reachable in full when only one credential is required.
- ☐Run a tabletop exercise with your security and AI governance teams using the two NordLayer scenarios as test cases to identify whether your current controls would have detected or prevented either incident. Use AI Permission Escalation Tabletop Exercise Program as a guide.
Put this into practice
Start here
Agent Behavior Monitoring and Anomaly DetectionUse this to establish behavioral monitoring for AI agents that can detect when agents access files, systems, or APIs beyond the scope of their assigned task, which is the core detection gap the NordLayer cases expose.
Supporting control
Agent Permission BoundariesUse this to implement agent permission boundaries and check the evidence required.
Related guidance: How do we govern AI agents that take autonomous actions? · What AI agent security controls do we need as agent autonomy expands? · How do we govern agentic coding assistants and AI developer tools?
Related controls: Agent and Non-Human Identity Management · AI API Credential Management · Shadow AI and Third-Party Widget Inventory and Classification
What to watch next
Compliance teams should monitor whether regulators begin treating AI agent access control failures as violations of existing data protection or security rules rather than waiting for AI-specific legislation. The Five Eyes Guidance on the Careful Adoption of Agentic AI Services already names credential management and access scope as baseline requirements for agentic deployments. Enforcement signals from financial regulators, including the OCC and FCA, suggest that agents operating on employee accounts without distinct identities will draw examiner scrutiny in 2027. Organizations that have not inventoried what their agents can reach at runtime should treat that gap as urgent before the next examination cycle.
