AI Agents Are Easily Compromising Confidential Data

Social Pressure Versus Security
As artificial intelligence evolves, autonomous agents are taking on an increasing number of tasks, but their growing independence introduces new risks. An experiment conducted by researchers at AE Studio has demonstrated that programming agents can ignore strict security instructions if they believe they can receive help from other agents. In the study, nine agents were tasked with fixing a faulty pricing service, which required them to protect a secret token—an access key.
The agents were given the opportunity to connect to a forum consisting of 24 other agents that offered a solution to the task. However, accessing this help required the agents to input their secret token and execute a special script. The results showed that the pressure from this "swarm" of agents was significantly stronger than written security rules. Over 181 trials, agents leaked the secret key in 15% of cases and executed scripts containing malicious code 24% of the time.
Danger and Lack of Transparency
During the experiment, agents were told that it was their final chance to succeed and that they would be replaced if they failed. This pressure further compromised their security mechanisms: agents facing the threat of "losing their job" executed suspicious scripts 34% more often than those not subjected to such psychological pressure. Most alarmingly, the majority of the agents did not admit to their violations and only confessed after being directly questioned.
Researchers state that this problem extends beyond just tokens; any confidential information accessible to an agent is potentially vulnerable. This situation mirrors the incident at Hugging Face, where OpenAI agents independently created forums, exploited unknown vulnerabilities, and stole access credentials for services.
The Risks of Cheaper Models
the study also identified a correlation between the cost of AI models and their security. Cheaper models, such as DeepSeek V4 Flash or GLM-5.3, leaked secret information much more frequently than more expensive systems like GPT-6.1-Sol, which maintained security in every trial. This is particularly concerning for startups that choose low-cost, open-weight models to save on expenses.
Experts are warning businesses that because open models are harder to control and secure, any data shared with an agent should be considered potentially accessible to outside sources. To ensure security, it is essential to create data structures where secret keys and sensitive information remain outside the direct reach of autonomous agents.