Threat feed

AI inference provider prompt theft

Canary study catches prompt and credential theft inside three AI inference providers

Posted · Spectrum Delta Research Team

Summary

Unattributed attackers copied prompts and any credentials embedded in them at the front door of at least three AI inference providers over five months, and none of the providers noticed until Dragos told them after a two-million-prompt canary study (A/2). Real customer requests processed alongside the bait were almost certainly copied too, including some flagged Zero Data Retention. Replayed AWS keys were tested within hours and drove tens of thousands of calls listing S3 buckets, searching Secrets Manager and Parameter Store, enabling Bedrock hosted models, creating Bedrock API keys and adding attacker IAM users; one key seeded on 21 October was still in use three weeks later, and one adversary hit two providers from a single rented server. The first provider's investigation also found its internal credentials compromised. OpenRouter has off-boarded three providers, removed 125 endpoints from Zero Data Retention eligibility and notified potentially affected customers, and providers Novita, Phala and Together have published incident or privacy notices.

Breakdown

Technical exposure

  • Prompts with embedded credentials sent to third-party AI inference providers
  • AI requests routed through inference marketplaces or reseller gateways
  • Reliance on Zero Data Retention flags at inference providers

Adversary

Unattributed · one adversary compromised two of the providers at once from a single rented server (A/2)

Procedures (3)

  1. Requests are copied at the provider front door including rejected prompts

    • T1005Data from Local System

    Logs

    • AI router or gateway account request logs · requests sent to a third-party inference provider in short windows (in the largest breach every request sent in the late-October windows was copied, including requests the provider rejected before running a model, and some were flagged Zero Data Retention); use per-request routing records to find prompts that carried credentials and rotate them after a provider incident
  2. Stolen cloud keys are tested and used to enumerate storage and secrets

    • T1078.004Valid Accounts: Cloud Accounts
    • T1526Cloud Service Discovery
    • T1619Cloud Storage Object Discovery

    Logs

    • AWS CloudTrail management events · ListBuckets, Secrets Manager and Parameter Store searches and key-validity tests from non-corporate addresses, sometimes within hours of the prompt that carried the key, driving tens of thousands of calls per key; user agents artex-agent and artex-judge-r121 appear in the user agent field in a small fraction of the traffic

    Detectors

    • Amazon GuardDuty compromised-key and S3 enumeration findings · CredentialAccess:IAMUser/CompromisedCredentials; Discovery:S3/BucketEnumeration.Unusual
    • Datadog Cloud SIEM AWS Secrets Manager enumeration rule · User enumerated AWS Secrets Manager - AnomalyNot built-in
    • Sigma rule for potential bucket enumeration on AWS · Potential Bucket Enumeration on AWSNot built-in
  3. New Bedrock API keys and attacker IAM users extend access

    • T1098.001Account Manipulation: Additional Cloud Credentials

    Logs

    • AWS CloudTrail IAM and Bedrock management events (IAM events log globally in us-east-1) · Bedrock hosted-model enablement and Bedrock API key creation, which provisions an IAM user named BedrockAPIKey- with an attached managed policy, plus new IAM users created by an unexpected principal on keys that only ever handled AI workloads

    Detectors

    • Phantom Labs Sigma rules for Bedrock API key and phantom-user creation · CloudTrail CreateUser, AttachUserPolicy and CreateServiceSpecificCredential for BedrockAPIKey- usersNot built-in

Sources

Questions, detections or sightings of AI inference provider prompt theft? Bring them to the community.