Pat-Tastrophe: How We Hacked Virtuals' $4.6B Agentic AI Ecosystem
An API response exposed a valid GitHub Personal Access Token that allowed access to a private repository. The repository's commit history contained active AWS, Pinecone, and OpenAI credentials, which could be used to modify AI agent character cards and data.
shlomie.uk
Published on shlomie.uk
A single AI agent in the cryptocurrency space has a market cap of $641M at the time of writing. It has 386,000 Twitter followers.
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, secrets were committed to a Git repository and later 'deleted' without rotating them, and a GitHub PAT was exposed in an API response.
Impact
An attacker could modify AI agent character cards and data, potentially manipulating market predictions and promoting a fraudulent token, though the platform claimed live agents use cached data and the PAT had only read access.
What the attacker needed
Access to the API response; no special privileges
The fix
The exposed credentials were revoked and rotated after disclosure.
How it was found
- Inspect an API response related to agent creation workflows and find a GitHub PAT.
- Use the PAT to access a private GitHub repository.
- Run trufflehog on the repository to find secrets in commit history.
- Test the discovered AWS, Pinecone, and OpenAI credentials to confirm they are active.
- Use the AWS keys to access an S3 bucket and modify a rejected contribution's character card.
- Confirm access to production character cards by making a minimal modification.
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.
A GitHub Personal Access Token is like a password that lets someone access GitHub repositories. The researchers found one in an API response, used it to read a private repository, and discovered that old commits still contained working cloud keys. Those keys could let an attacker change how AI agents behave.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.