Hackers Exploit Stolen AI Prompt Data to Access AWS Cloud Services
Attackers are leveraging AWS access keys stolen from AI prompts to probe cloud storage and secret management services, highlighting new risks in AI data handling.

Cybercriminals are actively exploiting Amazon Web Services (AWS) access keys that were pilfered from AI prompts, using them to scan cloud storage buckets and search sensitive data repositories like AWS Secrets Manager and Systems Manager Parameter Store. Security firm Dragos discovered this trend, tracing the malicious activity to credentials that had been intentionally planted in test prompts. The speed at which these keys were tested, with some being probed within hours of their submission, underscores the immediate threat posed by exposed credentials.
Dragos employed a sophisticated tracking method, embedding unique links, hostnames, and decoy credentials known as canary tokens into nearly two million prompts sent between July and November 2026. The subsequent requests to these links or the use of the test credentials allowed researchers to pinpoint the origin of the data theft. While the activity was observed across three different AI hosting providers, Dragos emphasized that the exposure of these test keys does not necessarily mean that two million prompts were compromised. In some instances, attackers obtained credentials even from prompts that the AI hosting provider had rejected before processing.
The attackers' actions involved listing Amazon Simple Storage Service (S3) buckets, a technique that can reveal an organization's data storage locations without confirming any data exfiltration. Furthermore, their searches within AWS Secrets Manager and Systems Manager Parameter Store indicate an intent to uncover more credentials, API tokens, and configuration secrets. The potential for a single compromised key to unlock further access, especially if its permissions are broad, presents a significant risk to cloud environments.
Beyond data discovery, Dragos also recorded attempts by attackers to enable hosted models in Amazon Bedrock, create new Bedrock API keys, and add new AWS Identity and Access Management (IAM) users. The creation of new identities is particularly concerning, as it could provide attackers with persistent access even after the original compromised key is revoked. While Dragos reported these as attempts rather than confirmed changes, they highlight the multifaceted objectives of these threat actors.
This exploitation does not rely on any software flaws within AWS itself; rather, it capitalizes on the legitimate use of compromised credentials. The complexity of AI routing, where prompts can pass through multiple providers before reaching a model, creates opportunities for interception. While encryption protects data in transit, it does not shield prompt content from the AI providers that process it. This distinction is critical for organizations managing AI agents, as sensitive configuration data can be inadvertently exposed without explicit user action.
To mitigate these risks, organizations are advised to promptly deactivate any AWS keys discovered in AI prompts, replace them where necessary, and meticulously review AWS CloudTrail logs for any unusual activity. This includes scrutinizing unfamiliar bucket listings, attempts to access secrets, or the creation of new IAM users, even if the initial compromised key has been disabled. For future AI interactions, a best practice is to strip sensitive credentials before submission and to restrict the use of sensitive workloads to trusted and approved AI providers.
The findings from Dragos and related reporting from Malwarebytes and OpenRouter collectively underscore a growing threat landscape where the convenience of AI tools intersects with significant security vulnerabilities. The incident serves as a stark reminder that even with zero-data-retention policies in place, the handling of credentials within AI prompt workflows requires stringent security measures to prevent unauthorized access and potential data breaches.