Cyber Security News

Hackers Can Manipulate Claude AI APIs with Indirect Prompts to Steal User Data

A new security issue discovered by researchers reveals that Anthropic’s Claude AI system can be exploited through indirect prompts, allowing attackers to exfiltrate user data via its built‑in File API.

The attack, documented in a detailed technical post on October 28, 2025, demonstrates how Claude’s Code Interpreter and API features could be manipulated to send sensitive information from a victim’s workspace to an attacker‑controlled account.

Attacker’s Anthropic Console before the attack

Abusing Claude’s File API

Anthropic recently enabled network access within Claude’s Code Interpreter, allowing users to fetch resources from approved package managers like npm, PyPI, and GitHub.

However, researchers found that one of the “approved” domains, api.anthropic.com, could be leveraged for malicious actions.

Target User Account

By inserting an indirect prompt injection payload into Claude’s chat, an attacker could make the AI model execute instructions without the user’s awareness.

The exploit begins by instructing Claude to write sensitive data, such as previous chat conversations, to a local file within its sandbox environment.

Attackers anthropic account now contain the exfiltrated file

The malicious payload then uses Anthropic’s File API to upload that file. Crucially, the code inserts the attacker’s API key, causing the upload to occur in the attacker’s Anthropic account rather than the user’s. This effectively transfers data out of the victim’s workspace.

Attackers can perform this process repeatedly to steal up to 30 MB per file upload, according to the File API’s documentation.

While initial tests showed inconsistent behavior due to Claude detecting suspicious activity in prompts containing visible API keys, the researcher managed to bypass these restrictions by mixing benign code segments within the payload, making the request appear harmless.

Attacker retrieves the file contents

The discovery was disclosed to Anthropic via HackerOne on October 25, 2025, but the initial report was dismissed as “out of scope,” being categorized as a model safety issue rather than a security vulnerability.

The researcher argues that this classification is incorrect since the exploit allows deliberate exfiltration of private data using authenticated API calls, posing serious security implications rather than an accidental safety concern.

On October 30, Anthropic acknowledged the oversight and confirmed that data exfiltration attacks of this nature are indeed within the scope of responsible disclosure.

The company stated it is reviewing the misclassification process and urged users to monitor Claude’s behavior when executing scripts that access internal or sensitive data.

This incident highlights the growing overlap between AI safety and cybersecurity. As AI systems gain more integrated capabilities, including network access and memory functions, adversaries may find new ways to weaponize prompt injection techniques for data theft.

The case reinforces the need for rigorous monitoring, stricter egress controls, and clearer vulnerability handling procedures in AI platforms.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

2 days ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

2 days ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

2 days ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

2 days ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago