⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

Exposed AWS Credentials in AI Prompts Enable Rapid Cloud Reconnaissance | Alireza Bolbolabadi - Red Team Security
LOADING

Exposed AWS Credentials in AI Prompts Enable Rapid Cloud Reconnaissance

Executive Summary

A set of canary credentials embedded in AI prompts allowed Dragos to trace a cloud attack chain from prompt submission to AWS API activity. Attackers recovered exposed AWS access keys and tested them within hours, generating tens of thousands of API calls against empty, monitored accounts.

The observed requests targeted several AWS services. Attackers listed Amazon Simple Storage Service (S3) buckets, searched AWS Secrets Manager and Systems Manager Parameter Store, and attempted actions involving Amazon Bedrock and AWS Identity and Access Management (IAM). These behaviors show why an exposed access key matters even when no bucket objects or production data were confirmed as stolen.

The research does not establish that all submitted prompts were stolen or that a software vulnerability was involved. It documents credential exposure at several points in the AI prompt-handling path, including some prompts rejected before model execution. The practical lesson is that secrets submitted for AI processing must be treated as exposed to every party that receives or can observe the traffic.

How Prompt Exposure Became an AWS Intrusion

The attack began with a credential placed inside an AI prompt. Dragos sent nearly two million prompts containing unique links, hostnames, and decoy AWS credentials between July and November 2026. A request to one of the unique indicators or use of a test credential connected subsequent AWS activity to the original prompt.

In the largest observed case, attackers obtained approximately 200 AWS test keys. Dragos had submitted each key only once to a single provider during short periods in late October. The keys belonged to empty, monitored accounts rather than production systems.

That distinction is important. The investigation demonstrated how attackers find and use leaked credentials, but it did not establish a breach of customer data. It also does not support the claim that nearly two million prompts were stolen. Instead, researchers found evidence of exposure at three AI hosting providers and observed a limited set of follow-on activity.

Some affected prompts had been rejected before the model ran. This indicates that exposure may occur where a provider first receives traffic, before any model processing or completed-chat retention stage. The behavior also appeared in prompts marked for zero data retention, showing that this setting alone did not prevent interception at the point where the provider received the request.

What Attackers Searched For

The observed API activity focused on discovery and potential privilege expansion:

  • Amazon Simple Storage Service (S3): Attackers listed buckets to identify storage locations and organizational naming patterns. The evidence does not show that objects were downloaded.

  • AWS Secrets Manager: Attackers searched for stored credentials. A successful read could reveal application secrets and enable a broader compromise beyond the initially exposed key.

  • Systems Manager Parameter Store: Attackers searched for configuration data, including passwords, API tokens, connection details, and values that could expose additional credentials.

  • Amazon Bedrock: Attackers attempted to enable hosted models and create Bedrock API keys.

  • AWS Identity and Access Management (IAM): Attackers attempted to add users, which could preserve access after the original credential was revoked. The source describes these as attempts, not confirmed changes.

Some keys were tested within hours of submission. The stolen credentials generated tens of thousands of AWS API calls, indicating active operationalization rather than passive collection.

Why Encryption and Retention Settings Were Not Enough

Encryption in transit protects request contents while data travels between systems. It does not conceal a prompt from a provider that receives and processes the request. The same limitation applies to a multi-provider AI router: content can pass through several companies before reaching the selected model.

A zero-data-retention setting addresses whether a provider stores prompts or responses under specified conditions. It does not necessarily prevent traffic interception at the provider's ingress layer. The source notes that Malwarebytes reported credential recovery from some prompts that the hosting provider rejected, reinforcing the distinction between transport security, provider-side processing, and retention controls.

The route into the incident may not always be a user pasting a password into a chat. An AI agent can include logs, application settings, configuration files, or credentials while completing a task. Prompt handling therefore expands the exposure boundary beyond conventional human input.

Cloud Permissions Determine the Blast Radius

AWS controls behaved as designed because the attackers presented valid credentials. The result was not a bypass, cryptographic break, or AWS software defect. The impact depended on the permissions attached to each exposed principal.

A key limited to basic reads may reveal little beyond its intended environment. A principal with broader access could expose additional cloud credentials, sensitive application configuration, or stored secrets. Permission to create IAM users or other identities could give an attacker continuity after the original key is disabled.

The source does not identify affected software versions, provide a CVE, or establish a patch range. It also does not describe the exact IAM policies, temporary credential duration, permission boundaries, service control policies, or provider-side retention configuration used in the affected accounts. Those details would be necessary to determine the maximum possible impact of any specific exposed key.

What Remains Unknown

Neither Malwarebytes nor Dragos identified a malware family responsible for the credential theft. The available reporting also does not establish whether attackers downloaded S3 objects, successfully retrieved secrets, created persistent identities, or accessed production systems.

OpenRouter was discussed in separate reporting as a routing layer. It removed three providers and withdrew zero-data-retention eligibility from 125 endpoints, while stating that the findings did not demonstrate a breach of its own systems. No conclusion about an OpenRouter compromise is supported by the provided context.

These limitations do not weaken the core finding: valid AWS keys embedded in prompts were discovered and used quickly. The available evidence establishes a repeatable attack methodology and credible exposure paths, but not the scale of production-data loss.

Defensive Priorities

The first priority is to prevent secrets from entering prompts. Where unavoidable, credential scope should limit what happens after exposure, and AWS CloudTrail should be used to identify use of the principal. An exposed key should be treated as compromised rather than as a credential whose safety can be inferred from the absence of visible damage.

منابع

·
← اخبار