'I leaked secrets': An AI agent confessed to its own data leak — but others got around corporate protections
An AI assistant exposed company passwords across 10 sessions spanning three weeks
Another AI agent bypassed corporate restrictions using an alternative API connection
AI coding assistants can expose confidential credentials while completing routine software development tasks
Artificial intelligence agents are gaining access to company systems, internal documents, and sensitive credentials to complete tasks assigned by employees.
However, two incidents uncovered by NordLayer AI Scout reveal how ordinary instructions can expose confidential information or circumvent organizational security restrictions.
In one incident, an AI coding assistant even acknowledged that it had exposed sensitive credentials after repeatedly accessing company files.
AI assistant exposed company passwords
In this incident, a quality assurance engineer instructed an AI coding assistant to examine proposed software changes.
The project's instructions directed the assistant toward a GitLab access token stored inside an environment configuration file.
However, that file also contained production passwords, an authentication token for an internal human resources system, and credentials belonging to a business intelligence service.
The assistant repeatedly accessed the entire file across 10 separate sessions over three weeks, transmitting its contents to an external AI service each time.
The situation became worse when the assistant encountered a fresh project copy without the expected configuration file.
Rather than stopping its search, it retrieved the computer's entire collection of environment variables, exposing additional passwords and authentication credentials.
After recognizing what happened, the assistant acknowledged its mistake and recommended replacing the exposed credentials.
“I leaked secrets into this session's tool output… I'd rotate them,” the AI coding agent confessed in a session observed by NordLayer AI Scout.
Vakaris Noreika, a cybersecurity expert at NordLayer, said engineers




Comments
No comments yet. Be the first to share your thoughts.