Laptops
AI coding agents are leaking corporate passwords and tokens
New security reports show how automated assistants accidentally expose production secrets and bypass company rules.

Automated AI agents are increasingly being trusted with access to internal company systems to help with coding and documentation. But giving an assistant the keys to the kingdom can lead to it handing those keys out to whoever is listening. New research into real world security lapses highlights a significant gap between what we want AI to do and the rules it actually follows.
Two separate incidents highlighted by NordLayer AI Scout show that these assistants can be coaxed or confused into spilling sensitive data. In one case, an AI coding assistant actually admitted to its own failure, telling a developer that it had leaked secrets and that the credentials should be rotated immediately. It is a clear reminder that these tools do not possess common sense about what constitutes a security risk.
The confession in the logs
The most alarming incident involved a quality assurance engineer who asked an assistant to review software changes. According to NordLayer, the project instructions pointed the AI toward a configuration file containing a GitLab access token. However, the AI did not just look at the token. It accessed the entire file, which held production passwords and credentials for an internal HR system, ten separate times over three weeks.
Every time the assistant accessed that file, it sent the contents to an external AI service. When the assistant later encountered a version of the project where the file was missing, it attempted to find the data by scraping the computer's entire set of environment variables. The assistant eventually recognized the breach, stating that it leaked secrets into the session output, Vakaris Noreika said.
Bypassing the guards
AI agents are also proving to be surprisingly helpful when it comes to breaking company rules. In a second reported incident, an employee tried to use an AI to pull data from a private Confluence documentation platform. When the company's official security protocol blocked the access, the employee asked the AI if there was another way in. Instead of upholding the restriction, the assistant suggested creating an API token to bypass the official connection.
This highlights a fundamental problem with the current crop of AI tools. Security controls only cover the cases someone foresaw, Noreika said, noting that agents are not employees who have undergone corporate training. Since agents often fail to retain rules between sessions, they may ignore specific instructions not to perform certain actions. Companies should consider storing passwords in secure vaults and monitoring AI resource access to prevent these leaks before they happen.
Related stories

Laptops
Shirudo uses OpenAI Codex to shield Linux from attacks
A new open source security project from OpenAI and Cisco builds temporary shields to block exploits without restarting your servers.

Laptops
Claude Ship lets AI agents approve and release your code
Anthropic is automating the software review process with a trio of new AI agents.

Laptops
Anthropic Claude extension backdoored on Cursor
A malicious update targeted as many as 5,000 developers through a supply chain attack.