On Saturday, November 28, 2026, our AWS account was compromised using a leaked IAM user key. An attacker used it to read secrets, including LLM API keys from Anthropic, Google and OpenAI. These were used for API calls for about 4 hours, until the keys were disabled.

Given how we use AWS in our architecture — only as a runner plane, downstream of our control plane — the risk to customer data was limited. Based on AWS audit logs, our understanding is that no customer data was compromised, and no action is needed from our customers.

In this post we outline what happened, the impact of the incident, and our remediation steps. The attack was focused on accessing LLM API keys, and it seems the demand for cheap LLM usage is making every team with an LLM API key a target.

Email from OpenAI flagging suspicious activity on our API key
The OpenAI email that triggered our investigation (time in IST)

Timeline

All times are UTC, November 28, 2026 unless noted. We’ve inferred attacker actions from AWS CloudTrail’s 90-day event history, and Gemini-related actions from GCP Cloud Monitoring.

TimeWhoEvent
Sep 2024usAn admin IAM user and access key were created for Terraform, and this key was also configured in GitHub Actions secrets for CI/CD
Mid-2025usServices hosted in AWS that used LLM APIs were retired, but their Secrets Manager entries, and the LLM API keys in them, were left in place
Aug–Nov 2026—90 days of CloudTrail: the key was used only from CI runners
Nov 28, 2026, 06:04attackerGetCallerIdentity calls from 111.88.126.50 (Python urllib), most likely to check that the key works
06:16attackerInspected the key’s own IAM user and policies; ListSecrets and SSM DescribeParameters in two regions. GetSecretValue on all 8 Secrets Manager entries and 3 decrypted SSM GetParameter calls (boto3); throwaway Lambda + role created and deleted
06:17attackerStolen Google Gemini key tested with a ListModels call
08:55attackerFrom 139.162.62.217, with the same admin key: listed Bedrock models, accepted 5 Marketplace model agreements, changed Bedrock data retention mode, sent one small prompt to 5 models
09:04attackerFirst Gemini completion
10:34–12:42attackerSustained Gemini chat traffic: about 1,300 successful calls
10:40OpenAIEmail from OpenAI about suspicious activity on an OpenAI key
10:48AnthropicEmail from Anthropic about suspicious activity on an Anthropic key and its auto-deactivation
12:20usWe noticed the above emails and started investigating. From the labels on these flagged keys, we realized all compromised keys were saved in AWS Secrets Manager
12:36usFound CloudTrail logs showing the admin key reading every secret from an unknown IP, and deactivated the admin key
12:39GoogleEmail from GCP Billing Anomaly Alerts: unusual cost spike on Gemini API
12:45usDisabled stolen keys in OpenAI and Google’s AI Studio (the Anthropic key was already disabled by Anthropic)
12:56usReplaced and deactivated the AWS keys used by our control plane as a precautionary measure
13:03usDeployed GitHub OIDC provider and roles, and moved all workflows to OIDC
13:20–17:05usRotated every other exposed credential
17:20usCustomer-data checks complete, and legacy IAM users, stacks, roles and task definitions deleted

Incident discovery and impact

Our investigation started as a result of emails from OpenAI and Anthropic flagging suspicious activity on two leaked keys. OpenAI’s email asked us to “review API key activity”, while Anthropic disabled the key themselves. Both of these leaked keys were labeled tool-execute-service, which was the name of an old service hosted in AWS, and that pointed us to investigate AWS CloudTrail.

The leaked LLM API keys were created in early 2025, and were not used by our code after mid 2025, when the services that used them were retired. We confirmed this from LLM provider dashboards: these keys did not have any recent usage until this incident. Deactivating these keys did not cause any downtime.

The attacker also enabled AWS Bedrock on our account (by accepting Marketplace model agreements), and was able to make small API calls to probe access.

This looks like a case of our API keys being resold or used to run someone else’s LLM traffic. We incurred about $450 of LLM usage (broken down as Anthropic $283, Google $130, and OpenAI $35; AWS Bedrock was ~$0).

In total, the leak involved 8 Secrets Manager entries and 3 SSM parameters, with several key-value pairs in some entries. Most of what they held was already inactive. The following credentials were still active, and have all been either revoked or rotated:

  • 3 LLM API keys
  • 2 credentials for an internal Slack bot (access token and webhook URL). This Slack bot had chat:write scope for an alerts channel
  • 1 signing secret for our static IP egress-proxy. Tokens minted with this secret would provide authenticated access to this proxy service. We verified with service logs that no such forged tokens were used
  • 1 internal write-only telemetry service key
  • 1 Rollbar post-only server key

The leaked key

The leaked key belonged to an IAM user called terraform with AdministratorAccess. It was created in September 2024 when our AWS account was new and we were setting it up with Terraform. Soon after creation, the key was also added to our GitHub Actions secrets.

Over 2025, we retired our early services in AWS and moved away from Terraform to CDK, but usage of the terraform key in our CI/CD remained and grew. All later CI/CD workflows that deployed to AWS reused this credential. As of November 28, 2026, none of our production code relied on the IAM user, but all of our GitHub Actions workflows that deployed to AWS did.

We are not certain how this key was leaked. There is no evidence of a leak from the GitHub Actions pipelines. Our monorepo is private and has no forks. We found no sign of a compromised third-party action or npm package in our AWS workflows. In 90 days of AWS CloudTrail, the key was used only from CI runners (matched against GitHub Actions IPs) until 06:04 on November 28, 2026.

Our best guess, albeit unconfirmed, is that it was leaked from a developer’s machine that had the key sitting in an old .env configuration. We’ve asked everyone who worked on Terraform to check their machines.

Customer data

We use this AWS account for compute and storage resources. Test runs, triggered by our customers, run on compute resources, similar to a CI/CD platform. These runs generate report artifacts (videos, traces) which are stored in AWS S3. This runner plane is downstream of our control plane and LLM apps, which do not run on AWS.

Given this architecture, none of the following are stored in this AWS account: test code repos managed by Empirical, and their environment variables, Slack and GitHub integration credentials, agent sessions, and team or organization data, including member details. While a test run is in progress, its runner holds a scoped, short-lived token that it uses to fetch the repo. CloudTrail shows no calls from the leaked key to our queues, where such a token could have been picked up.

The risk to customer data was limited to stored report artifacts, and to ensure they were not compromised, we checked:

  • CloudTrail event history from the leaked key, in every region, from 06:00 until we deactivated it. Apart from our own CI/CD calls, the key’s activity matches the timeline above: read-only calls on IAM, secrets and Bedrock, 5 small Bedrock invocations, and three changes, all since undone: a throwaway role and Lambda function (deleted), the 5 Marketplace agreements (terminated) and the Bedrock retention change (reverted).
    • The Lambda function ran once, under a new role that could only write its own logs, and hence it couldn’t read S3 or secrets.
    • No IAM users, keys, policy versions, role trust policies or resource policies were changed. The only temporary credentials issued were the ones Lambda gave that function, and they were scoped to writing that function’s CloudWatch logs.
  • S3 server access logs on our S3 buckets for report artifacts: we were able to confirm that every S3 request in the logs came from our own services, AWS itself, or our own investigation. There were no requests from the attacker’s IPs or the stolen admin key.

Based on this, our understanding is that no customer data was impacted.

Remediation

  • GitHub Actions uses OIDC, not long-lived keys. The trust policies pin the token’s sub claim to our repository: the deploy role to refs/heads/main, a second role to pull_request events.
  • No admin users in IAM. The leaked IAM key and all other old admin users have been deleted. The long-lived AWS keys that remain belong to single-purpose users: our control plane service (scoped to its queues, logs and buckets), one upload bucket, and cost reporting (read-only).
  • Unused secrets and keys deleted. We’ve removed the Secrets Manager entries and SSM parameters left behind by retired services, and deleted other unused API keys from Anthropic and OpenAI.
  • Moving away from .env files on developer machines (in progress). Our AWS access uses short-lived SSO sessions, but for local development we rely on .env files that include real LLM API keys. We’ve rotated those keys, and are replacing the files with Infisical for runtime injection and audit logging.
  • Faster threat detection (planned). We only detected this incident because OpenAI and Anthropic alerted us, more than four hours after the key was first used. We will explore tools like Amazon GuardDuty to catch this kind of activity ourselves.

We’re sorry about this. The overscoped AWS key should never have existed, and our CI/CD should have relied on GitHub OIDC from the get-go.

If you have any questions about this incident, please feel free to write to us at hey@empirical.run.

Appendix: Indicators of compromise

  • IP addresses
    • 111.88.126.50
    • 139.162.62.217
  • Throwaway Lambda function
    • Function name: tmp-cred-validate (python3.12, handler index.handler, 128 MB, 60s timeout, no env vars, no VPC)
      • Code SHA-256: McIbfRG0aZY8d+wfg3RXuijdtAklkzIRAWTuQOanu7o= (base64, as Lambda reports it)
    • Execution role: tmp-cred-validate-role, trusts lambda.amazonaws.com, only AWSLambdaBasicExecutionRole attached
    • Role session name: tmp-cred-validate
    • Leftover: CloudWatch log group /aws/lambda/tmp-cred-validate