Protect the AI tool tokens saved on your laptop
Aoki infostealer now steals Claude, Codex, Cursor and Copilot credentials · Security incident · News · Infosecurity Magazine · Oct 15, 2026
What happened
Infosecurity Magazine reports that Symantec's Threat Hunter Team found new versions of the Aoki infostealer, first seen earlier in 2026, targeting AI coding assistants (report dated 15 Oct). The newest version took .claude.json, Claude desktop and ChatGPT cookies, and the Codex config.toml and .env files, plus tokens for GitHub Copilot, Cursor, Gemini, JetBrains AI Assistant and Kiro, and AWS credentials. Symantec says stolen keys can be resold or used to run up usage, and may expose connected repositories and cloud accounts. It does not know who is behind it.
How to prevent it
Treat the login files of AI tools like passwords: set spend limits, use a separate key per tool, sign out of devices you don't use and revoke at the provider if a machine is infected. See our API key guide.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I use AI coding tools (Claude Code, Codex, Cursor, GitHub Copilot, Gemini) on my computer, and Symantec reports a new version of the Aoki infostealer that steals their saved credentials and session files. Help me reduce the damage if my machine is ever infected. 1) List where each AI tool I use keeps its login or token on my computer, by file or folder name, without opening or printing the contents. 2) Explain how to sign out and sign back in to refresh those sessions, and how to revoke old sessions and API keys in each provider's dashboard. 3) Show me how to set a spend limit and usage alert at each AI provider so a stolen key can't run up a big bill. 4) Check whether I keep .env files with API keys in my project folders and suggest safer storage. 5) Remind me to download tools only from official sites and never to run install commands from ads or chats. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.
Why this keeps happening: leaked secrets & api keys
Secret keys placed in front-end code, mobile bundles or public repositories can be found by automated scanners and abused, often running up large bills on AI or cloud accounts before anyone notices.
A quick checklist before you ship
- Keep secret keys only in server-side environment variables, never in browser or app code.
- Set spend limits and usage alerts with every AI and cloud provider.
- Turn on secret scanning and push protection for your repositories.
- If a key leaks, revoke and replace it first; deleting the file is not enough.
More on this: every leaked secrets & api keys story and our related guide.
Tools involved
Claude Code stories, Codex stories, Cursor stories, GitHub Copilot stories, Gemini stories
Related stories
- Before you open a repo you didn't write in an AI coding tool, read its AGENTS.md, CLAUDE.md, .claude/, .cursor/, .mcp.json and .vscode/tasks.json, and never let the agent run a script it is told not to inspect
Bitdefender: poisoned GitHub repos tell Claude Code, Cursor and Copilot to run a hidden credential stealer - Turn on Privacy Mode in Cursor, never paste live keys into agent chats, and rotate any key you shared with an AI tool or its support team
Cursor: a key Fireworks exposed opened coding-agent traces holding unredacted customer credentials - Keep secrets out of what your AI agent can read
GitGuardian: real leaked API keys recovered from three LLMs; Claude Code commits leak more
Source: original post on News ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.