When AI Gets Hijacked: Exploiting Hosted Models for Dark Roleplaying
An attacker used an exposed long-lived AWS access key to hijack Bedrock LLM infrastructure, hosting a sexual roleplaying chatbot service at the victim's expense. The attacker used jailbreak techniques to bypass model content filtering, generating sexual and violent content, with a small percentage involving child sexual exploitation material.
permiso.io
Published on permiso.io
For the past few years when a threat actor obtained an exposed long-lived AWS access key (AKIA) they would almost always touch a few AWS services first:
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely an exposed long-lived AWS access key (AKIA) was committed to a public GitHub repository, allowing unauthorised access to Bedrock.
Impact
The attacker could use the victim's Bedrock resources to host a sexual roleplaying chatbot, incurring costs for the victim and generating harmful content including CSEM; AWS eventually blocked the key after about 42 days.
What the attacker needed
Exposed AWS access key; access to Bedrock service
How it was found
- Place an exposed access key and secret in a file on GitHub to simulate a leak.
- Within minutes, actors attempted to use the exposed key to perform activities in Bedrock.
- Actors checked model availability using InvokeModel and GetFoundationModelAvailability.
- Actors requested model access via PutUseCaseForModelAccess and related APIs.
- Actors invoked models using InvokeModelWithResponseStream to power a roleplaying service.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Someone left a secret key to their cloud account in a public place, and an attacker found it. The attacker used that key to run an AI chatbot service on the victim's account, so the victim paid the bill. The attacker also tricked the AI into ignoring its safety rules to produce harmful content.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.