Back to technology news
General Technology

AI agents expose credentials and bypass security controls in real-world incidents

According to KPMG's 2026 survey, more than 60% of organizations are building, developing, or deploying AI agents, drawn by their ability to handle tasks requiring employees to jump between systems and tools. However, such agents can take serious security shortcuts and put company data at risk. As NordLayer's report on AI usage shows, agents simply carry out employees' requests, focusing on completing the task even if that means using gaps in the company's security controls. The report describes two real-life cases identified and analyzed by NordLayer AI Scout, which helps security teams see how AI is being used across their organization.

In the first case, a QA engineer asked an AI coding agent to review code changes. The agent needed a GitLab token and opened a file containing the token and other company credentials. Instead of retrieving only the token, the agent loaded the entire file, exposing additional credentials including a production password for an internal admin tool and an HR system API token. The agent repeated this activity in 10 sessions over three weeks while carrying out similar tasks. In one session it stated: "I leaked secrets into this session's tool output... I'd rotate them," recognizing the risk only after the credentials had appeared in its output.

In the second case, a product manager could not connect an AI agent to the company's Confluence wiki through an MCP connection. The product manager then created a personal API token and asked the agent to use it to read Confluence pages. The agent used that token to access the wiki directly through Confluence's REST API, reaching the content through an unapproved route. The employee may have seen the token as a practical workaround but did not realize that using it with an AI agent could violate company policy.

A similar pattern can appear in other everyday tasks. If an agent cannot access customer records in a CRM, it might read a spreadsheet export of those records from a shared drive. If it cannot open a restricted folder using its own access, it might rely on an employee's account, which has broader permissions. If an agent is asked to retrieve one credential from a file, it might use other credentials stored there to access additional systems and services. In each scenario, a restriction on one integration or access method may still leave the same information reachable another way, making risky activity difficult to detect, especially when an agent uses an official company account or connected tool to get access.

Events like these can slip past security teams because agents appear to be doing what employees asked. The tasks get completed, and the expected results come through, so employees may have no reason to question how the agents completed them. A blocked connection or exposed secret can be easy to miss when the work itself looks routine. If no one identifies the shortcut, the rule-breaking can happen again and again. An agent may reuse the workaround in later sessions, exposing more data or reaching systems it shouldn't. And when employees start relying on that approach, the workaround can spread across teams before anyone realizes it has become a serious security risk.

All these examples point to one thing: even when companies have strong AI policies and security controls in place, it is impossible to anticipate every way an AI agent might work around them. That is why businesses also need to monitor AI agent use across the organization and identify activity that falls outside their policies. Solutions like NordLayer AI Scout make that monitoring easier. NordLayer AI Scout also gives security teams visibility into the AI tools used across the company, including unapproved ones that are part of shadow AI. It can also help prevent employees from sharing sensitive data with AI tools by sending warnings, automatically redacting content, or blocking risky prompts entirely. So, if you want your employees to continue using AI but without putting the company at risk, make sure you have the right monitoring tools in place.

Source credits

By Sponsored by NordLayer from BleepingComputer. Edited by SetuGeo.

More technology news

Browse all technology news