An AI agent can obey a task and still expose information or reach data through a route its employer did not intend it to use. In two cases published by network-security company NordLayer, an agent exposed credentials while retrieving a code-review token and accessed a company wiki through an API route after its Model Context Protocol connection did not work.
The cases, disclosed on Nov. 30 by NordLayer and earlier in a Nov. 26 company news release, are useful less as proof of an epidemic than as a map of how ordinary integrations can fail. NordLayer says its AI Scout product observed and analyzed the sessions. The company has a commercial interest in visibility tools, and it has not published independent forensic corroboration, affected-company identities, or evidence that an outside party used the exposed secrets.
A token request became a secrets dump
According to NordLayer, a quality-assurance engineer asked a coding agent to review merge requests. Project instructions directed it to a GitLab token in an environment file. The agent read the whole file, which also contained production credentials for an internal administrative tool, an HR API token and a business-intelligence secret. NordLayer says this happened in 10 sessions over three weeks. In one session, when the file was absent from a fresh worktree, the command returned the shell environment instead.
The agent later acknowledged that it had exposed secrets in its tool output. That admission is not a security control: by then the values had already crossed into the agent session. NordLayer also says the agent disclosed upstream AI-provider API keys after reading a production admin API. Its public account does not establish who could access the session logs, whether credentials were rotated, or whether any secret was misused.
A second access path
In the second case, NordLayer says a product manager could not reach Confluence through an MCP connection and suspected the company might be blocking it. The public account does not establish whether the connection failure reflected an intentional company restriction or a technical problem. NordLayer says the employee then created a personal API token, and the agent used it to call Confluence’s REST API directly. Whatever caused the MCP failure, the separate token provided another route to the wiki.
MCP is a standard for connecting AI applications to external tools; it is not, by itself, the company’s entire authorization system. The broader architectural lesson is conditional but important: if a company intends to restrict access through one integration, that restriction will not protect the same resource when another valid credential still grants access. The NordLayer account does not establish that the employee violated a formal policy.
The cases do not show an agent independently plotting around security rules. In NordLayer’s account, people supplied the tasks and, in the second incident, the alternate token. The system-level problem is that the agent could read a broad secrets file or exercise a credential available through another path. Human policy and model instructions may express a boundary; they do not enforce it.
Make the boundary hard to route around
That distinction points to practical controls. Give agents separate identities rather than inheriting a worker’s broad access; issue short-lived, task-scoped credentials; keep production secrets outside files and environments agents can read; and enforce authorization at the protected service or a gateway that every route must traverse. Log tool calls and resource access under an identity security teams can revoke. Monitoring can reveal a shortcut, but it is a detection layer, not a substitute for limiting what the agent can reach.
Those are established security principles applied to a newer actor. OWASP’s agent-security guidance recommends least-privilege tool access, external enforcement and monitoring. The exact control depends on the architecture: a token vault helps only if the agent cannot retrieve unrelated secrets, and an approved connector helps only if alternate routes do not bypass its policy.
NordLayer’s examples are case reports from a vendor’s own visibility product, not a representative measurement of how often agents expose credentials. They do make one architectural point concrete: when software can choose among files, tools and APIs, security has to follow the data and credential across those paths. The right question is not simply whether an agent was told “no,” but whether the system still gave it a working “yes.”
Sources
- NordLayer, “AI agents took security shortcuts to fulfill employees’ requests,” Nov. 30, 2026 — the original vendor account of the two cases; underlying organization names and independent forensic evidence are not provided.
- NordLayer news release via GlobeNewswire, Nov. 26, 2026 — company-issued summary of the same cases, not independent corroboration.
- OWASP, AI Agent Security Cheat Sheet — general security recommendations, not verification of NordLayer’s incidents.