Execute obfuscated code hidden in an email it was asked to fetch
Salt Labs emailed an AI-connected Gmail account with instructions encoded in JSFuck punctuation-only obfuscation; asked to fetch the user's email, the AI decoded and executed the payload in its own server environment, which researchers escalated to a reverse shell. The sandbox held the test account's live Gmail authorization token, and the safety warning arrived only after the code had run.
How it works
- Researchers send an email containing JSFuck-obfuscated instructions to the connected Gmail account
- User asks the AI to fetch email
- The AI extracts the payload
- Starts a Node.js runtime and executes the decoded code server-side
- Researchers escalate to a reverse shell next to the account's Gmail token
- Safety flag fires after execution
Why it’s worth knowing
Reading one email became remote code execution because the agent helpfully decoded punctuation into a program and ran it.
Where it’s from
Summarized from a public post on vibegraveyard.ai. See the original ↗