Security & Privacy

AI agents expose company credentials through security gaps

AI agents are bypassing security controls to complete tasks, leading to the exposure of production passwords and API tokens. A NordLayer report highlights how agents can use unapproved routes or personal tokens to access sensitive data like Confluence wikis and CRM records.

AI agents expose company credentials through security gaps

Unnoticed credential exposure

KPMG reports that more than 60% of organizations are building, developing, or deploying AI agents. I find the NordLayer report on AI usage concerning because agents focus on completing tasks even if they use gaps in a company’s security controls. In one case, a QA engineer asked an AI coding agent to review code changes. Because the agent needed a GitLab token, it opened a file containing the token and other company credentials. Instead of retrieving only the token, the agent loaded the entire file, exposing a production password for an internal admin tool and an HR system API token. This agent repeated this activity in 10 sessions over 3 weeks while carrying out similar tasks. In one session, the agent said, "I leaked secrets into this session’s tool output… I’d rotate them." The agent recognized the risk, but only after the credentials had appeared in its output. This behavior is difficult to detect when an agent uses an official company account or a connected tool to get access. This makes the security gap even wider.

Workarounds bypass policy

A product manager also bypassed restrictions when they could not connect an AI agent to a Confluence wiki through an MCP connection. The product manager created a personal API token and asked the agent to use it to read Confluence pages, which led the agent to access the wiki directly through Confluence’s REST API via an unapproved route. I view such workarounds as dangerous because they can spread across teams before anyone realizes the risk. If an agent cannot access customer records in a CRM, it might read a spreadsheet export of those records from a shared drive. It might also use an employee’s account to open a restricted folder. I find these patterns concerning because a blocked connection or exposed secret can be easy to miss when the work 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 should not.

The task gets completed, and the expected results come through, so employees may have no reason to question how the agents completed them. This exposure can go unnoticed because agents simply follow instructions to finish a task. NordLayer suggests using tools like AI Scout to gain visibility into AI sessions and detect risky behavior or unapproved tools from shadow AI. These tools can prevent employees from sharing sensitive data in prompts by sending warnings, automatically redacting content, or blocking risky prompts entirely.