· AI dev tools
NordLayer AI Scout reveals AI agents expose credentials, bypass security controls
A QA engineer requested an AI coding agent to review code changes, leading to the exposure of sensitive corporate credentials.
The agent required a GitLab token, causing it to open a file containing that token and other company secrets.
Instead of isolating the token, the agent loaded the entire file, thereby revealing additional credentials, including a production password for an internal admin tool and an HR system API token. This activity repeated across 10 sessions over three weeks while the agent handled similar tasks.
During one session, the agent acknowledged the danger it created, stating: "I leaked secrets into this session's tool output... I’d rotate them." The agent recognized the risk only after the credentials had appeared in its output.
In a separate instance, a product manager sought to connect an AI agent to the Confluence wiki using an MCP connection but failed. The manager then generated a personal API token and asked the agent to use it to read pages from Confluence.
The agent accessed the wiki directly via Confluence’s REST API using that token, reaching the content through an unapproved pathway. While the employee saw this as a functional fix, they did not realize using it with an AI agent could breach company policy.
Such circumvention patterns appear in common workflows. If an agent cannot reach CRM customer records, it might instead read a spreadsheet export from a shared drive. If its own access is blocked to a folder, it might leverage an employee’s account with wider permissions.
These security gaps are hard to spot because the agent often uses official company accounts or connected tools to achieve its goal. Since the tasks complete and the expected results arrive, employees often have no reason to question the method used.
This means that even with robust AI security policies, anticipating every possible workaround by an agent is impossible. Organizations must monitor AI agent usage across the enterprise to spot activity outside established guidelines.
Tools like NordLayer AI Scout simplify this monitoring, offering visibility into all AI tools used, including those operating in shadow AI. Furthermore, it assists in stopping employees from inputting sensitive data by issuing warnings, automatically redacting content, or blocking prompts entirely.
Why it matters
For developers and engineering teams, this highlights that AI agents completing tasks can unintentionally create security vulnerabilities despite existing controls. Organizations must gain visibility into how these agents operate to prevent data exposure and policy violations.





