{"incident":{"slug":"empirical-nov-2026-aws-llmjacking","caseId":"BI-2026-014","organization":"Empirical","title":"Empirical: a stale Terraform key opened every secret in the runner account","shortSummary":"A stale Terraform key read every secret in the AWS runner account and spent about $450 of LLM credit.","homeLede":"A static AWS key with AdministratorAccess was used to read all eight Secrets Manager entries, probe with a throwaway Lambda, enable Bedrock models and spend about $450 of stolen LLM credit. The control plane runs outside AWS and was never reached.","lede":"On Nov 28, 2026 a static terraform IAM key with AdministratorAccess was used from two addresses over about six hours. It read every secret in the account, created a probe Lambda and enabled Bedrock models. Stolen LLM keys cost about $450 before provider abuse emails raised the alarm. The account was only the runner plane, so the control plane was out of reach.","incidentDate":"Nov 28, 2026","incidentDateIso":"2026-11-28","disclosedDate":"Nov 30, 2026","sourceUrl":"https://empirical.run/blog/nov-2026-security-incident","sourceAuthor":"Arjun Attam (Empirical)","vectorFilter":"Leaked cloud key","timeToDetect":"6h 16m","detectedBy":"Provider abuse emails","initialAccess":{"label":"Static IAM key","detail":"Leaked static IAM key with AdministratorAccess","evidence":"confirmed"},"secondaryVectorMeta":{"term":"Key leak source","label":"Stale .env","evidence":"inferred"},"blastRadius":"Runner plane only","whatItReachedShort":"8 secrets, 3 SSM parameters, 5 Bedrock agreements, about $450 LLM spend","whatHeldShort":"Control plane and LLM apps outside AWS","revisions":[{"id":"Rev B","date":"Nov 30, 2026","note":"Added the Bedrock agreements, Lambda SHA-256 digest and provider spend."},{"id":"Rev A","date":"Nov 30, 2026","note":"First published from Empirical’s incident writeup."}],"bodyMarkdown":"## How they got in\n\nThe attacker had a long-lived access key for an IAM user named terraform, attached to AdministratorAccess. Empirical created it in September 2024 for initial Terraform setup and reused it in GitHub Actions even after migrating to AWS CDK in 2025. Because 90 days of CloudTrail showed only GitHub Actions runner IPs before Nov 28, Empirical suspects the key leaked from a stale .env file on a developer laptop. That source is a suspicion, not a finding, so it is marked inferred on the diagram.\n\nThe first call, at 06:04 UTC from 111.88.126.50 using Python urllib, only called sts:GetCallerIdentity to check whose key it was. Twelve minutes later an automated boto3 script inspected the IAM user policies and read every Secrets Manager entry and three decrypted SSM parameters across two regions. Nothing in AWS noticed.\n\n## What it reached\n\nInside the account the key could do anything. In the same 06:16 UTC burst it created a throwaway Python 3.12 Lambda named tmp-cred-validate under tmp-cred-validate-role, invoked it once and deleted both, leaving behind the CloudWatch log group /aws/lambda/tmp-cred-validate. From a second address, 139.162.62.217, it accepted five Bedrock Marketplace model agreements at 08:55 UTC, changed Bedrock data retention mode and sent five probe prompts.\n\nThe stolen LLM keys came from retired tool-execute-service entries left alive since mid-2025. Within a minute of the dump the attacker tested the Gemini key with ListModels, then burned roughly $450 over four hours: $283 at Anthropic, $130 across roughly 1,300 Gemini calls through 12:42 UTC, and $35 at OpenAI. Empirical deactivated the AWS admin key at 12:36 UTC and disabled the stolen OpenAI and Google AI Studio keys at 12:45 UTC.\n\n## What held\n\nThe compromised account was only the runner plane: ECS task definitions, job queues and S3 buckets storing test videos and traces. Empirical’s control plane and LLM applications run outside AWS, so customer test repositories, Slack and GitHub integrations, agent sessions and organization data were completely unreachable.\n\nS3 server access logs and multi-region CloudTrail checks confirmed zero attacker calls to S3 buckets or runner queues, and proxy logs confirmed the stolen static-IP egress-proxy signing secret was never used to mint tokens before rotation.\n\n> **Why detection took 6h 16m**\n>\n> Every action came from a valid key with full rights, so nothing was denied and nothing errored. The first signals were external: OpenAI emailed at 10:40 UTC and Anthropic emailed and auto-disabled its key at 10:48 UTC; the team spotted the notices at 12:20 UTC.\n>\n> An EventBridge rule on GetSecretValue reads by IAM users would have fired at 06:16 UTC, six hours earlier.","narrative":{"howTheyGotIn":["The attacker had a long-lived access key for an IAM user named terraform, attached to AdministratorAccess. Empirical created it in September 2024 for initial Terraform setup and reused it in GitHub Actions even after migrating to AWS CDK in 2025. Because 90 days of CloudTrail showed only GitHub Actions runner IPs before Nov 28, Empirical suspects the key leaked from a stale .env file on a developer laptop. That source is a suspicion, not a finding, so it is marked inferred on the diagram.","The first call, at 06:04 UTC from 111.88.126.50 using Python urllib, only called sts:GetCallerIdentity to check whose key it was. Twelve minutes later an automated boto3 script inspected the IAM user policies and read every Secrets Manager entry and three decrypted SSM parameters across two regions. Nothing in AWS noticed."],"whatItReached":["Inside the account the key could do anything. In the same 06:16 UTC burst it created a throwaway Python 3.12 Lambda named tmp-cred-validate under tmp-cred-validate-role, invoked it once and deleted both, leaving behind the CloudWatch log group /aws/lambda/tmp-cred-validate. From a second address, 139.162.62.217, it accepted five Bedrock Marketplace model agreements at 08:55 UTC, changed Bedrock data retention mode and sent five probe prompts.","The stolen LLM keys came from retired tool-execute-service entries left alive since mid-2025. Within a minute of the dump the attacker tested the Gemini key with ListModels, then burned roughly $450 over four hours: $283 at Anthropic, $130 across roughly 1,300 Gemini calls through 12:42 UTC, and $35 at OpenAI. Empirical deactivated the AWS admin key at 12:36 UTC and disabled the stolen OpenAI and Google AI Studio keys at 12:45 UTC."],"whatHeld":["The compromised account was only the runner plane: ECS task definitions, job queues and S3 buckets storing test videos and traces. Empirical’s control plane and LLM applications run outside AWS, so customer test repositories, Slack and GitHub integrations, agent sessions and organization data were completely unreachable.","S3 server access logs and multi-region CloudTrail checks confirmed zero attacker calls to S3 buckets or runner queues, and proxy logs confirmed the stolen static-IP egress-proxy signing secret was never used to mint tokens before rotation."],"sideNoteTitle":"Why detection took 6h 16m","sideNoteParagraphs":["Every action came from a valid key with full rights, so nothing was denied and nothing errored. The first signals were external: OpenAI emailed at 10:40 UTC and Anthropic emailed and auto-disabled its key at 10:48 UTC; the team spotted the notices at 12:20 UTC.","An EventBridge rule on GetSecretValue reads by IAM users would have fired at 06:16 UTC, six hours earlier."]},"claims":[{"group":"How they got in","claim":"A static key for IAM user terraform with AdministratorAccess was used from 111.88.126.50 at 06:04 UTC","evidence":"confirmed","source":"Empirical disclosure, Nov 30"},{"group":"How they got in","claim":"The key leaked from a stale .env file on a developer laptop","evidence":"inferred","source":"Empirical’s stated suspicion"},{"group":"What it reached","claim":"All 8 Secrets Manager entries and 3 decrypted SSM parameters were read at 06:16 UTC across two regions","evidence":"confirmed","source":"Empirical disclosure"},{"group":"What it reached","claim":"tmp-cred-validate (Python 3.12, 128 MB) was created at 06:16 UTC to test stolen credentials or egress capability","evidence":"inferred","source":"Function and timestamp confirmed in CloudTrail; purpose read from its name"},{"group":"What it reached","claim":"5 Bedrock Marketplace agreements were accepted from 139.162.62.217 at 08:55 UTC and retention mode altered","evidence":"confirmed","source":"Empirical disclosure"},{"group":"What it reached","claim":"About $450 of LLM usage on stolen keys ($283 Anthropic, $130 Gemini across ~1,300 calls through 12:42 UTC, $35 OpenAI)","evidence":"confirmed","source":"Provider dashboards and abuse notices"},{"group":"What held","claim":"Control plane and LLM apps run outside AWS and were never reached","evidence":"confirmed","source":"Empirical disclosure"},{"group":"What held","claim":"S3 report artifacts and SQS runner queue tokens were reachable and not used","evidence":"confirmed","source":"S3 server access logs and CloudTrail checks"},{"group":"What held","claim":"The static-IP egress-proxy signing secret was stolen and verified unused before rotation","evidence":"confirmed","source":"Empirical proxy access logs"}],"diagram":{"label":"Empirical attack path","zones":[{"id":"dev","label":"Developer endpoint","kind":"boundary","lane":0},{"id":"net","label":"Internet","kind":"boundary","lane":0},{"id":"aws","label":"AWS account: runner plane","kind":"boundary","lane":1},{"id":"out","label":"Outside AWS","kind":"isolated","lane":2},{"id":"llm","label":"LLM providers","kind":"boundary","lane":2}],"nodes":[{"id":"laptop","zone":"dev","name":"Dev laptop","detail":".env, suspected","kind":"compromised","ev":"inferred","at":0,"story":"Empirical suspects the terraform key came from a stale .env file on a developer laptop. The disclosure does not say how the file left the machine.","when":"Not disclosed","ctl":["k1"]},{"id":"atkA","zone":"net","name":"Attacker","detail":"111.88.126.50","kind":"attacker","ev":"confirmed","at":0,"story":"First used the key at 06:04 UTC with Python urllib to check whose it was, then ran a boto3 script twelve minutes later to read every secret.","when":"06:04 and 06:16 UTC","steps":[1,2]},{"id":"atkB","zone":"net","name":"Attacker","detail":"139.162.62.217","kind":"attacker","ev":"confirmed","at":0,"story":"A second address used the same admin key to accept five Bedrock Marketplace model agreements, flip retention mode and send five probe prompts.","when":"08:55 UTC","steps":[4]},{"id":"iam","zone":"aws","name":"IAM user terraform","detail":"AdministratorAccess","kind":"compromised","ev":"confirmed","at":1,"story":"A long-lived access key with AdministratorAccess, created in Sep 2024 and reused across CDK deploys in GitHub Actions. Everything the attacker did in AWS ran as this user.","when":"06:04 UTC onward","steps":[1,2,3,4],"ctl":["k1"]},{"id":"lambda","zone":"aws","name":"Lambda probe","detail":"tmp-cred-validate","kind":"compromised","ev":"confirmed","at":3,"story":"A throwaway Python 3.12 function (128 MB, no VPC) created, invoked once and deleted under tmp-cred-validate-role at 06:16 UTC. SHA-256: McIbfRG0aZY8d+wfg3RXuijdtAklkzIRAWTuQOanu7o=.","when":"06:16 UTC","steps":[3],"ctl":["k3"]},{"id":"ecs","zone":"aws","name":"ECS task definitions","detail":"Runner tasks","kind":"neutral","ev":"confirmed","at":0,"story":"Task definitions for customer test runners. Not reported as touched; legacy definitions deleted during cleanup.","when":"No activity reported"},{"id":"bedrock","zone":"aws","name":"Bedrock Marketplace","detail":"5 agreements enabled","kind":"compromised","ev":"confirmed","at":4,"story":"Five Marketplace model agreements accepted from 139.162.62.217, data retention mode altered and five test prompts executed (~$0 spend).","when":"08:55 UTC","steps":[4],"ctl":["k4"]},{"id":"ssm","zone":"aws","name":"SSM Parameter Store","detail":"3 parameters read","kind":"compromised","ev":"confirmed","at":2,"story":"Three decrypted SSM parameters were read with GetParameter in the same 06:16 UTC sweep.","when":"06:16 UTC","steps":[2],"ctl":["k2"]},{"id":"secrets","zone":"aws","name":"Secrets Manager","detail":"All 8 entries read","kind":"compromised","ev":"confirmed","at":2,"story":"Every entry was read in one sweep across two regions. The stolen values included retired tool-execute-service LLM keys, internal Slack bot credentials and the egress-proxy signing secret.","when":"06:16 UTC","steps":[2,5],"ctl":["k2"]},{"id":"sqs","zone":"aws","name":"SQS job queues","detail":"Short-lived repo tokens","kind":"nearMiss","ev":"confirmed","at":0,"story":"Job queues carry short-lived scoped repository tokens for active customer test runs. AdministratorAccess could read them; CloudTrail verified zero queue calls.","when":"Reachable, not used"},{"id":"s3","zone":"aws","name":"S3 buckets","detail":"Videos and traces","kind":"nearMiss","ev":"confirmed","at":0,"story":"Test report artifacts including videos and execution traces. Readable with AdministratorAccess; S3 server access logs verified zero attacker requests.","when":"Reachable, not used"},{"id":"control","zone":"out","name":"Control plane","detail":"Not reached","kind":"isolated","ev":"confirmed","at":0,"story":"Runs outside AWS and holds customer repos, org data and GitHub and Slack integrations. The AWS account is downstream only and holds no credential back upstream.","when":"Not reached"},{"id":"llmapps","zone":"out","name":"LLM apps","detail":"Not reached","kind":"isolated","ev":"confirmed","at":0,"story":"Empirical’s active LLM applications run outside the compromised AWS account and suffered zero downtime.","when":"Not reached"},{"id":"egress","zone":"dev","name":"Egress proxy","detail":"Signing secret stolen","kind":"nearMiss","ev":"confirmed","at":0,"story":"The signing secret for Empirical’s static-IP egress proxy was among the stolen secrets. It could forge authenticated proxy tokens, but service logs confirmed zero use.","when":"Stolen 06:16 UTC, not used"},{"id":"anthropic","zone":"llm","name":"Anthropic","detail":"$283","kind":"compromised","ev":"confirmed","at":5,"story":"$283 of usage on a retired tool-execute-service key. Anthropic emailed and auto-disabled the key at 10:48 UTC.","when":"Abuse email 10:48 UTC (noticed 12:20)","steps":[5],"ctl":["k5","d5"]},{"id":"gemini","zone":"llm","name":"Gemini","detail":"$130, ~1,300 calls","kind":"compromised","ev":"confirmed","at":5,"story":"Tested with ListModels at 06:17 UTC, first completion at 09:04 UTC, then ~1,300 sustained chat calls from 10:34 to 12:42 UTC ($130). Google AI Studio key disabled at 12:45 UTC (AWS admin key deactivated at 12:36 UTC).","when":"06:17 to 12:42 UTC","steps":[5],"ctl":["k5"]},{"id":"openai","zone":"llm","name":"OpenAI","detail":"$35","kind":"compromised","ev":"confirmed","at":5,"story":"$35 of usage on a retired tool-execute-service key. OpenAI’s 10:40 UTC suspicious-activity email initiated the investigation.","when":"Abuse email 10:40 UTC (noticed 12:20)","steps":[5],"ctl":["k5","d5"]}],"edges":[{"id":"e0","from":"laptop","to":"atkA","kind":"inferred","step":0},{"id":"e1","from":"atkA","to":"iam","kind":"attack","step":1},{"id":"e2a","from":"iam","to":"ssm","kind":"attack","step":2},{"id":"e2b","from":"iam","to":"secrets","kind":"attack","step":2},{"id":"e3","from":"iam","to":"lambda","kind":"attack","step":3},{"id":"e4","from":"atkB","to":"bedrock","kind":"attack","step":4},{"id":"e5a","from":"secrets","to":"anthropic","kind":"attack","step":5},{"id":"e5b","from":"secrets","to":"gemini","kind":"attack","step":5},{"id":"e5c","from":"secrets","to":"openai","kind":"attack","step":5},{"id":"n1","from":"iam","to":"sqs","kind":"nearMiss","step":1},{"id":"n2","from":"iam","to":"s3","kind":"nearMiss","step":1},{"id":"n3","from":"secrets","to":"egress","kind":"nearMiss","step":2}],"steps":[{"n":1,"time":"06:04 UTC","short":"06:04","text":"Key validated from 111.88.126.50","say":"The static terraform key, with AdministratorAccess, checks its identity with sts:GetCallerIdentity from 111.88.126.50.","rulerTime":"06:04"},{"n":2,"time":"06:16 UTC","short":"06:16","text":"8 secrets and 3 SSM parameters read","say":"All 8 Secrets Manager entries and 3 decrypted SSM parameters are read across two regions with boto3.","rulerTime":"06:16"},{"n":3,"time":"06:16 UTC","short":"06:16","text":"Lambda probe tmp-cred-validate created and deleted","say":"In the same 06:16 UTC burst, a throwaway Python 3.12 Lambda, tmp-cred-validate, is created, invoked once and deleted.","rulerTime":"06:16","rulerOffsetPx":30},{"n":4,"time":"08:55 UTC","short":"08:55","text":"5 Bedrock agreements enabled from 139.162.62.217","say":"From 139.162.62.217, five Bedrock Marketplace model agreements are accepted and retention mode is changed.","rulerTime":"08:55"},{"n":5,"time":"09:04–12:42 UTC","short":"~4h","text":"~$450 burned on stolen LLM keys (AWS key off 12:36, LLM keys 12:45 UTC)","say":"About $450 is burned on stolen LLM keys: Anthropic $283, Gemini $130 across ~1,300 calls through 12:42 UTC, and OpenAI $35. Empirical deactivated the AWS admin key at 12:36 UTC and disabled the OpenAI and Google AI Studio keys at 12:45 UTC.","rulerWindow":["09:04","12:42","Sustained LLM abuse (AWS admin key off 12:36 UTC; OpenAI and Gemini keys disabled 12:45 UTC)"]}],"controls":[{"id":"k1","step":1,"kind":"control","name":"OIDC roles only","tag":"Stops step 1","long":"CI assumes a short-lived role through GitHub OIDC, and an SCP denies iam:CreateAccessKey, so no static terraform key exists to leak.","nodeId":"iam"},{"id":"k2","step":2,"kind":"detection","name":"Bulk-read alert","tag":"Catches step 2","long":"An EventBridge rule on GetSecretValue by any IAM user fires on the 06:16 UTC sweep, six hours before the provider emails.","nodeId":"secrets"},{"id":"k3","step":3,"kind":"control","name":"Lambda deny","tag":"Stops step 3","long":"A permission boundary denies lambda:CreateFunction to every principal except the deploy role.","nodeId":"lambda"},{"id":"k4","step":4,"kind":"control","name":"Model SCP","tag":"Stops step 4","long":"An SCP denies aws-marketplace:Subscribe and bedrock:InvokeModel in runner accounts that do not run Bedrock workloads.","nodeId":"bedrock"},{"id":"k5","step":5,"kind":"control","name":"Spend caps","tag":"Limits step 5","long":"Decommissioning unused keys at service retirement plus per-key spend limits caps the burn even after a secret leaks.","nodeId":"gemini"},{"id":"d5","step":5,"kind":"fired","name":"Abuse emails 12:20 UTC","tag":null,"long":"OpenAI (10:40) and Anthropic (10:48) sent abuse emails noticed at 12:20 UTC, 6h 16m after first use. No AWS alert fired.","nodeId":"anthropic"}],"detectedAt":{"time":"12:20 UTC","rulerTime":"12:20","short":"Detected 12:20 UTC","text":"Found by OpenAI and Anthropic abuse emails, 6h 16m after first use. No AWS alert fired."},"rulerRange":{"dateLabel":"Nov 28, 2026","startHour":6,"endHour":13}},"plate":{"W":944,"H":586,"label":"Empirical attack path","zones":[{"id":"dev","label":"Developer endpoint","kind":"boundary","x":8,"y":16,"w":192,"h":110},{"id":"net","label":"Internet","kind":"boundary","x":8,"y":146,"w":192,"h":212},{"id":"aws","label":"AWS account: runner plane","kind":"boundary","x":238,"y":16,"w":468,"h":314},{"id":"llm","label":"LLM providers","kind":"boundary","x":744,"y":16,"w":192,"h":314},{"id":"out","label":"Outside AWS","kind":"isolated","x":744,"y":350,"w":192,"h":212}],"nodes":[{"id":"laptop","name":"Dev laptop","detail":".env, suspected","kind":"compromised","ev":"inferred","x":20,"y":52,"w":168,"at":0,"story":"Empirical suspects the terraform key came from a stale .env file on a developer laptop. The disclosure does not say how the file left the machine.","when":"Not disclosed","ctl":["k1"]},{"id":"atkA","name":"Attacker","detail":"111.88.126.50","kind":"attacker","ev":"confirmed","x":20,"y":182,"w":168,"at":0,"story":"First used the key at 06:04 UTC with Python urllib to check whose it was, then ran a boto3 script twelve minutes later to read every secret.","when":"06:04 and 06:16 UTC","steps":[1,2]},{"id":"atkB","name":"Attacker","detail":"139.162.62.217","kind":"attacker","ev":"confirmed","x":20,"y":284,"w":168,"at":0,"story":"A second address used the same admin key to accept five Bedrock Marketplace model agreements, flip retention mode and send five probe prompts.","when":"08:55 UTC","steps":[4]},{"id":"ecs","name":"ECS task definitions","detail":"Runner tasks","kind":"neutral","ev":"confirmed","x":250,"y":52,"w":198,"at":0,"story":"Task definitions for customer test runners. Not reported as touched; legacy definitions deleted during cleanup.","when":"No activity reported"},{"id":"iam","name":"IAM user terraform","detail":"AdministratorAccess","kind":"compromised","ev":"confirmed","x":250,"y":154,"w":198,"at":1,"story":"A long-lived access key with AdministratorAccess, created in Sep 2024 and reused across CDK deploys in GitHub Actions. Everything the attacker did in AWS ran as this user.","when":"06:04 UTC onward","steps":[1,2,3,4],"ctl":["k1"]},{"id":"bedrock","name":"Bedrock Marketplace","detail":"5 agreements enabled","kind":"compromised","ev":"confirmed","x":250,"y":256,"w":198,"at":4,"story":"Five Marketplace model agreements accepted from 139.162.62.217, data retention mode altered and five test prompts executed (~$0 spend).","when":"08:55 UTC","steps":[4],"ctl":["k4"]},{"id":"ssm","name":"SSM Parameter Store","detail":"3 parameters read","kind":"compromised","ev":"confirmed","x":492,"y":52,"w":202,"at":2,"story":"Three decrypted SSM parameters were read with GetParameter in the same 06:16 UTC sweep.","when":"06:16 UTC","steps":[2],"ctl":["k2"]},{"id":"secrets","name":"Secrets Manager","detail":"All 8 entries read","kind":"compromised","ev":"confirmed","x":492,"y":154,"w":202,"at":2,"story":"Every entry was read in one sweep across two regions. The stolen values included retired tool-execute-service LLM keys, internal Slack bot credentials and the egress-proxy signing secret.","when":"06:16 UTC","steps":[2,5],"ctl":["k2"]},{"id":"lambda","name":"Lambda probe","detail":"tmp-cred-validate","kind":"compromised","ev":"confirmed","x":492,"y":256,"w":202,"at":3,"story":"A throwaway Python 3.12 function (128 MB, no VPC) created, invoked once and deleted under tmp-cred-validate-role at 06:16 UTC. SHA-256: McIbfRG0aZY8d+wfg3RXuijdtAklkzIRAWTuQOanu7o=.","when":"06:16 UTC","steps":[3],"ctl":["k3"]},{"id":"anthropic","name":"Anthropic","detail":"$283","kind":"compromised","ev":"confirmed","x":756,"y":52,"w":168,"at":5,"story":"$283 of usage on a retired tool-execute-service key. Anthropic emailed and auto-disabled the key at 10:48 UTC.","when":"Abuse email 10:48 UTC (noticed 12:20)","steps":[5],"ctl":["k5","d5"]},{"id":"gemini","name":"Gemini","detail":"$130, ~1,300 calls","kind":"compromised","ev":"confirmed","x":756,"y":154,"w":168,"at":5,"story":"Tested with ListModels at 06:17 UTC, first completion at 09:04 UTC, then ~1,300 sustained chat calls from 10:34 to 12:42 UTC ($130). Google AI Studio key disabled at 12:45 UTC (AWS admin key deactivated at 12:36 UTC).","when":"06:17 to 12:42 UTC","steps":[5],"ctl":["k5"]},{"id":"openai","name":"OpenAI","detail":"$35","kind":"compromised","ev":"confirmed","x":756,"y":256,"w":168,"at":5,"story":"$35 of usage on a retired tool-execute-service key. OpenAI’s 10:40 UTC suspicious-activity email initiated the investigation.","when":"Abuse email 10:40 UTC (noticed 12:20)","steps":[5],"ctl":["k5","d5"]},{"id":"control","name":"Control plane","detail":"Not reached","kind":"isolated","ev":"confirmed","x":756,"y":386,"w":168,"at":0,"story":"Runs outside AWS and holds customer repos, org data and GitHub and Slack integrations. The AWS account is downstream only and holds no credential back upstream.","when":"Not reached"},{"id":"llmapps","name":"LLM apps","detail":"Not reached","kind":"isolated","ev":"confirmed","x":756,"y":488,"w":168,"at":0,"story":"Empirical’s active LLM applications run outside the compromised AWS account and suffered zero downtime.","when":"Not reached"}],"edges":[{"id":"e0","kind":"inferred","step":0,"pts":[[104,110],[104,182]]},{"id":"e1","kind":"attack","step":1,"pts":[[188,211],[213,211],[213,183],[250,183]]},{"id":"e2a","kind":"attack","step":2,"pts":[[448,183],[470,183],[470,81],[492,81]]},{"id":"e2b","kind":"attack","step":2,"pts":[[448,183],[492,183]]},{"id":"e3","kind":"attack","step":3,"pts":[[448,183],[470,183],[470,285],[492,285]]},{"id":"e4","kind":"attack","step":4,"pts":[[188,313],[225,313],[225,285],[250,285]]},{"id":"e5a","kind":"attack","step":5,"pts":[[694,183],[725,183],[725,81],[756,81]]},{"id":"e5b","kind":"attack","step":5,"pts":[[694,183],[756,183]]},{"id":"e5c","kind":"attack","step":5,"pts":[[694,183],[725,183],[725,285],[756,285]]}],"balloons":{"1":[213,197],"2":[470,132],"3":[470,234],"4":[225,299],"5":[725,132]},"noroute":[{"x1":706,"x2":744,"y":380,"label":"No route"}],"bps":[{"id":"k1","step":1,"kind":"control","at":[213,197],"name":"OIDC roles only","tag":"Stops step 1","lead":[[213,186],[213,169],[225,169]],"lx":231,"ly":173,"anchor":"start","long":"CI assumes a short-lived role through GitHub OIDC, and an SCP denies iam:CreateAccessKey, so no static terraform key exists to leak.","nodeId":"iam"},{"id":"k2","step":2,"kind":"detection","at":[470,132],"name":"Bulk-read alert","tag":"Catches step 2","lead":[[470,143],[470,154],[482,154]],"lx":488,"ly":158,"anchor":"start","long":"An EventBridge rule on GetSecretValue by any IAM user fires on the 06:16 UTC sweep, six hours before the provider emails.","nodeId":"secrets"},{"id":"k3","step":3,"kind":"control","at":[470,234],"name":"Lambda deny","tag":"Stops step 3","lead":[[470,223],[470,206],[482,206]],"lx":488,"ly":210,"anchor":"start","long":"A permission boundary denies lambda:CreateFunction to every principal except the deploy role.","nodeId":"lambda"},{"id":"k4","step":4,"kind":"control","at":[225,299],"name":"Model SCP","tag":"Stops step 4","lead":[[225,310],[225,321],[237,321]],"lx":243,"ly":325,"anchor":"start","long":"An SCP denies aws-marketplace:Subscribe and bedrock:InvokeModel in runner accounts that do not run Bedrock workloads.","nodeId":"bedrock"},{"id":"k5","step":5,"kind":"control","at":[725,132],"name":"Spend caps","tag":"Limits step 5","lead":[[725,121],[725,104],[713,104]],"lx":707,"ly":108,"anchor":"end","long":"Decommissioning unused keys at service retirement plus per-key spend limits caps the burn even after a secret leaks.","nodeId":"gemini"},{"id":"d5","step":5,"kind":"fired","at":[725,160],"name":"Abuse emails 12:20 UTC","tag":null,"lead":[[725,171],[725,182],[713,182]],"lx":707,"ly":186,"anchor":"end","long":"OpenAI (10:40) and Anthropic (10:48) sent abuse emails noticed at 12:20 UTC, 6h 16m after first use. No AWS alert fired.","nodeId":"anthropic"}],"steps":[{"n":1,"time":"06:04 UTC","short":"06:04","text":"Key validated from 111.88.126.50","say":"The static terraform key, with AdministratorAccess, checks its identity with sts:GetCallerIdentity from 111.88.126.50.","rulerTime":"06:04"},{"n":2,"time":"06:16 UTC","short":"06:16","text":"8 secrets and 3 SSM parameters read","say":"All 8 Secrets Manager entries and 3 decrypted SSM parameters are read across two regions with boto3.","rulerTime":"06:16"},{"n":3,"time":"06:16 UTC","short":"06:16","text":"Lambda probe tmp-cred-validate created and deleted","say":"In the same 06:16 UTC burst, a throwaway Python 3.12 Lambda, tmp-cred-validate, is created, invoked once and deleted.","rulerTime":"06:16","rulerOffsetPx":30},{"n":4,"time":"08:55 UTC","short":"08:55","text":"5 Bedrock agreements enabled from 139.162.62.217","say":"From 139.162.62.217, five Bedrock Marketplace model agreements are accepted and retention mode is changed.","rulerTime":"08:55"},{"n":5,"time":"09:04–12:42 UTC","short":"~4h","text":"~$450 burned on stolen LLM keys (AWS key off 12:36, LLM keys 12:45 UTC)","say":"About $450 is burned on stolen LLM keys: Anthropic $283, Gemini $130 across ~1,300 calls through 12:42 UTC, and OpenAI $35. Empirical deactivated the AWS admin key at 12:36 UTC and disabled the OpenAI and Google AI Studio keys at 12:45 UTC.","rulerWindow":["09:04","12:42","Sustained LLM abuse (AWS admin key off 12:36 UTC; OpenAI and Gemini keys disabled 12:45 UTC)"]}],"stripRows":[{"id":"sr-atkA","nodeId":"atkA","lineStyle":"solid"},{"id":"sr-atkB","nodeId":"atkB","lineStyle":"solid"},{"id":"sr-step-1","nodeId":"iam","step":1,"lineStyle":"solid","bpIds":["k1"]},{"id":"sr-step-2","nodeId":"ssm","step":2,"lineStyle":"solid","companionNodeIds":["secrets"],"bpIds":["k2"]},{"id":"sr-step-3","nodeId":"lambda","step":3,"lineStyle":"solid","bpIds":["k3"]},{"id":"sr-step-4","nodeId":"bedrock","step":4,"lineStyle":"solid","bpIds":["k4"]},{"id":"sr-step-5","nodeId":"anthropic","step":5,"lineStyle":"none","companionNodeIds":["gemini","openai"],"bpIds":["k5","d5"]}],"detectedAt":{"time":"12:20 UTC","rulerTime":"12:20","short":"Detected 12:20 UTC","text":"Found by OpenAI and Anthropic abuse emails, 6h 16m after first use. No AWS alert fired."},"rulerRange":{"dateLabel":"Nov 28, 2026","startHour":6,"endHour":13}},"codeArtifacts":[{"id":"emp-oidc","filename":"github-oidc-trust.json","language":"json","description":"Trust policy for the deploy role. CI gets a one-hour session from GitHub OIDC pinned to the main branch instead of a stored IAM user key. Stops step 1.","code":"{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"GitHubActionsDeployOnly\",\n      \"Effect\": \"Allow\",\n      \"Principal\": {\n        \"Federated\": \"arn:aws:iam::<account-id>:oidc-provider/token.actions.githubusercontent.com\"\n      },\n      \"Action\": \"sts:AssumeRoleWithWebIdentity\",\n      \"Condition\": {\n        \"StringEquals\": {\n          \"token.actions.githubusercontent.com:aud\": \"sts.amazonaws.com\",\n          \"token.actions.githubusercontent.com:sub\": \"repo:<org>/<repo>:ref:refs/heads/main\"\n        }\n      }\n    }\n  ]\n}"},{"id":"emp-detect","filename":"detect-iam-user-secret-reads.json","language":"json","description":"EventBridge pattern on CloudTrail matching IAM user reads on Secrets Manager plus Bedrock and Marketplace model agreement activations. Route GuardDuty CredentialAccess:IAMUser findings to the same target. Catches steps 2 and 4.","code":"{\n  \"source\": [\n    \"aws.secretsmanager\",\n    \"aws.bedrock\",\n    \"aws.agreement-marketplace\"\n  ],\n  \"detail-type\": [\"AWS API Call via CloudTrail\"],\n  \"detail\": {\n    \"eventSource\": [\n      \"secretsmanager.amazonaws.com\",\n      \"bedrock.amazonaws.com\",\n      \"agreement-marketplace.amazonaws.com\"\n    ],\n    \"eventName\": [\n      \"GetSecretValue\",\n      \"BatchGetSecretValue\",\n      \"PutFoundationModelEntitlement\",\n      \"CreateFoundationModelAgreement\",\n      \"AcceptAgreementRequest\"\n    ],\n    \"userIdentity\": {\n      \"type\": [\"IAMUser\"]\n    }\n  }\n}"}],"reproductionLab":{"title":"Reproduction lab","summary":"Replays the exact CloudTrail discovery, secret-dump and throwaway Lambda sequence against LocalStack with decoy secrets, so you can test the OIDC trust policy and EventBridge rule without touching a real AWS account.","bundleMeta":"Markdown playbook, MIT license","safetyNote":"Runs 100% offline inside LocalStack using synthetic decoy credentials.","commands":"# 8 decoy secrets, 3 SSM parameters, one IAM user with a static key\ndocker run -d --name breachident-lab -p 4566:4566 localstack/localstack:3.8\nAWS_ENDPOINT_URL=http://localhost:4566 aws secretsmanager create-secret \\\n  --name tool-execute-service/llm-keys --secret-string '{\"ANTHROPIC\":\"sk-decoy\"}'\n\n# replay steps 1 to 3 against LocalStack and verify the EventBridge rule fires\npython3 simulate_probe.py --endpoint http://localhost:4566","files":[{"path":"simulate_probe.py","language":"python","content":"import argparse, boto3\n\nparser = argparse.ArgumentParser()\nparser.add_argument(\"--endpoint\", default=\"http://localhost:4566\")\nargs = parser.parse_args()\n\nkw = dict(endpoint_url=args.endpoint, region_name=\"us-east-1\",\n          aws_access_key_id=\"test\", aws_secret_access_key=\"test\")\nsts = boto3.client(\"sts\", **kw)\nprint(\"[06:04] GetCallerIdentity:\", sts.get_caller_identity()[\"Arn\"])\n\nsm = boto3.client(\"secretsmanager\", **kw)\nfor sec in sm.list_secrets().get(\"SecretList\", []):\n    val = sm.get_secret_value(SecretId=sec[\"ARN\"])\n    print(\"[06:16] Dumped:\", sec[\"Name\"], len(val[\"SecretString\"]), \"bytes\")"}]},"iocs":[{"type":"ip","value":"111.88.126.50","context":"06:04 UTC GetCallerIdentity (Python urllib), 06:16 UTC Secrets Manager and SSM dump (boto3) and tmp-cred-validate Lambda."},{"type":"ip","value":"139.162.62.217","context":"08:55 UTC Bedrock model listing, 5 Marketplace agreement acceptances, retention flip and 5 test prompts."},{"type":"lambda","value":"tmp-cred-validate (runtime python3.12, memory 128 MB, role tmp-cred-validate-role)","context":"Throwaway execution role and function created, invoked once and deleted at 06:16 UTC."},{"type":"hash","value":"McIbfRG0aZY8d+wfg3RXuijdtAklkzIRAWTuQOanu7o=","context":"Base64 SHA-256 code digest reported by AWS Lambda for tmp-cred-validate."},{"type":"log","value":"/aws/lambda/tmp-cred-validate","context":"CloudWatch log group left behind after function deletion."}],"publishedAt":"2026-11-30T10:15:00Z","origin":"editorial"}}