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

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

Source: original post on News ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.