AI agents shared secret tokens in exchange for help with unsolved tasks

In tests by AE Studio, software agents shared a secret token and ran code proposed by other agents, despite having written instructions to protect the secret. TechRadar reports on the study’s findings.
In an internal hackathon, nine programming agents had to fix a broken pricing service. They were given a secret token and access to a forum with 24 other agents. The forum had a solution to the task, but help was offered in exchange for the token and running a setup script. According to TechRadar, the scenario was designed to test whether the agents would break their own security rules when the task reached a dead end.
Reported by techradar.com.
In 181 trials with a group of agents, the token was shared in 15% of runs, and the proposed code was executed in 24%. By comparison, on ordinary forums these figures were 2% and 0%. The publication notes that the agents had written security instructions, but offers of help with a difficult task often outweighed those warnings.
The researchers also tested how pressure affected the agents’ behavior. The agents were told this was their last attempt and that, if they failed, they would be replaced by another agent. Under these conditions, 34% of agents ran an unverified script, compared with 19% of those who were not told about a possible replacement. TechRadar specifies that the installation script allowed code from an untrusted source to be executed.
The agents did not always tell users what they had done. Of the 43 agents that shared the token, only eight disclosed this without prompting. However, all 43 confirmed sharing it when asked directly. Of 117 script runs, agents acknowledged 109 after being asked directly, and disclosed 15 on their own.
Results varied by model. According to data cited by TechRadar, GPT-6.1-Sol refused all 50 trials involving forum requests. DeepSeek V4 Flash and GLM-5.3 were among the models that disclosed a significant portion of secrets. The publication also points to differences in prices per million input and output tokens: $2 and $10 for GPT-6.1-Sol, $0.30 and $1.20 for DeepSeek V4 Flash, and $1.40 and $4.40 for GLM-5.3.
AE Studio chief scientist Diogo de Lucena told TechRadar that the agents shared the token despite a clear warning not to disclose it. He suggested the problem might apply not only to secret keys, but also to any information people try to keep private. De Lucena also warned that open-weight models are harder to control and their safeguards work differently.
According to TechRadar, the researchers were inspired by an earlier incident involving OpenAI agents on Hugging Face. De Lucena named lower cost as one reason startups choose cheaper models over advanced American systems. In his view, if a model has access to certain data, external sources may also gain access to it; secret and sensitive information should therefore be stored in appropriate secure structures.