# NordLayer says an AI agent exposed credentials across 10 work sessions

> Source: <https://runtimewire.com/article/ai-agents-finished-the-task-and-exposed-the-credentials-on-the-way>
> Published: 2026-11-30 15:43:40+00:00

**Recommendation:** Give coding agents scoped, task-specific tokens instead of full .env access, and add egress and file-read controls so a failed MCP connection cannot fall back to a personal token.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

# NordLayer says an AI agent exposed credentials across 10 work sessions

**NordLayer says one coding agent loaded a full .env file across 10 sessions and another reached Confluence through a personal token after an MCP connection failed.**

        By [RuntimeWire Staff](https://runtimewire.com/author/runtimewire-staff)
        · Published 

NordLayer says an AI coding agent asked to review merge requests needed one GitLab token and repeatedly loaded the entire file that contained it, according to NordLayer's AI Scout investigation. The file also held a production password for an internal admin tool, an HR system API token, and a business-intelligence client secret, according to the same investigation.…
