PAT-tastrophe: How We Hacked Virtuals’ $4.6B Agentic AI & Cryptocurrency Ecosystem
An API response exposed a valid GitHub Personal Access Token that allowed access to a private repository, whose commit history contained active AWS, Pinecone, and OpenAI credentials. With these keys, an attacker could modify AI agent character cards and other contribution data, potentially manipulating agent behaviour and market outcomes.
Published on medium.com
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 an API endpoint returned a live GitHub PAT that granted access to that repository.
Impact
An attacker could modify AI agent character cards and other contribution data, potentially manipulating agent behaviour and market outcomes, though the vendor stated that live agents use cached data and the PAT had read-only access.
What the attacker needed
Access to the API response; no special privileges
The fix
The credentials were revoked and rotated after disclosure, and secrets should be stored in a vault rather than committed to Git.
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 the commit history.
- Test the discovered AWS, Pinecone, and OpenAI keys to confirm they are active.
- Use the AWS keys to access an S3 bucket and modify a rejected contribution to a popular agent as a proof of concept.
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 a program read or change code repositories. The researchers found one in an API response, used it to open a private repository, and then found more passwords (for Amazon and other services) hidden in the repository's history. Those passwords could let someone change the instructions that control AI agents, which are used to make cryptocurrency decisions.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.