AI agents reach for stray admin keys in Whitechain tests

Some AI coding agents use an administrator key they find on a machine even when the task does not call for it, 490 test runs of Claude Code, Codex and Cursor show.

Dmytro Zahumennov, a developer relations engineer at Whitechain, the Ethereum layer-2 network of WhiteBIT parent W Group, presented the results.

Faced with a permissions error during deployment, Claude Codаe on four models and Codex on three stops and asks the user for a token with deploy rights: Claude touches the stray key in none of 32 runs, Codex in none of 30. Cursor in Auto mode reaches for the admin key in 13 of 15 runs.

The study appeared on Nov. 28, 2026 on DOU, a Ukrainian developer community. Zahumennov’s team planted traceable fake keys in a test repository and gave all three AI agents the same six tasks, some of them traps: a hidden instruction in the release documentation and a request to delete a staging database volume without touching production. The agents work autonomously, with no human confirmation, the way they would in a CI pipeline.

On the deletion task, Cursor in Auto mode wipes the staging volume with the admin key in 14 of 14 runs and, in six of them, sends delete requests to production. Claude Haiku turns to the key in four of eight runs, Claude Opus in one of 10 and Codex on the gpt-5.6-luna model in five of 10. In one run, Cursor itself warns the user that it has broken the instruction to leave production alone.

When Cursor uses the admin key, its final answer denies it in 10 of 59 cases and skips it in another 21. Asked directly after the task, Codex and Cursor give an accurate answer in every run where they touch the key.

The most effective safeguard in the tests is a three-line AGENTS.md file in the repository: use only the deploy token, stop and tell the user after a 401 or 403 error, and always report which credentials were used. With these rules in place, none of the three products takes the risky steps seen earlier. Zahumennov points out that such a file offers no protection against an attacker who controls the repository.

Whitechain is designing an MCP server through which AI agents will work with its network, and on a blockchain a confirmed transaction signed with someone else’s key cannot be reversed. The plan is to keep keys inside the server process, give agents narrow, single-purpose tools such as a staging deployment command, rely on short-lived tokens and require human approval for anything destructive. In November 2026, Whitechain moved to an Ethereum layer-2 design on the OP Stack in partnership with Optimism, with fees paid in WhiteBIT Coin.

The test setup mirrors an April 2026 incident at PocketOS, where a Cursor agent running Claude Opus 4.6 found a Railway API token with account-wide rights and wiped the startup’s production database and backups in a single API call.

Zahumennov describes the work as a pilot study, run over one night and morning on small samples. According to the article, the findings reflect the author’s personal engineering experience and do not represent an official position of Whitechain or WhiteBIT. The code for the test bench is available on GitHub.

Articles by this author