Infostealers, the malware that gets onto a computer and takes passwords and cookies, have added the logins and settings files of AI coding tools such as Claude Code, Codex, Cursor and GitHub Copilot to their list of things to steal. SpyCloud’s research, published on October 30, says the stolen logs it recovered contained Claude Code’s login file and a Codex API key (SpyCloud). Gen Digital’s research, published on September 8, says AI tools were being added to stealers’ collection lists almost every day (Gen Digital).
We read both in the original. This article sets out what is being stolen, why “just change the password” is not enough, and what to do, in what order, if you suspect an infection. It is current as of December 1, 2026. Sources are given next to each statement.
A computer that stays signed in to AI tools holds a second set of keys, separate from your passwords. If malware takes them, changing a password may not stop the stolen keys from working. If you suspect an infection, work from a clean device: end the AI service sessions, replace the API keys, and replace the tokens for anything those tools connect to, in that order.
This is also not the discovery of a new hole. Nothing is wrong with the AI tools themselves. Malware that is already on a machine has simply added the places where those tools keep their files to its list. Preventing infection is the same job it has always been.
SpyCloud looked at real logs taken by two Windows stealers, WardenStealer and Aoki. In the WardenStealer logs it found the login file that Claude Code writes to disk. It holds the account’s access and refresh tokens, plus tokens for any connected MCP servers, which are the connections that let an AI tool use outside tools. The logs also had a settings file with user and machine identifiers, and CLAUDE.md, the instruction file Claude Code loads as standing guidance. From Codex CLI came an authentication file holding an OpenAI API key together with access and refresh tokens. From Claude Desktop came its configuration and a plan-usage history (SpyCloud).
Aoki collected everything into a folder called AISessions, with a subfolder each for ChatGPT, Claude Code, the Microsoft Store build of Claude Desktop, Codex, GitHub Copilot and Cursor. It also took the cookies for the web views that the desktop apps use internally. SpyCloud calls those the most dangerous item, because a live session cookie lets an attacker pick up a signed-in session where it was, without the password and without the multi-factor prompt that a fresh sign-in would trigger.
Gen Digital looks beyond logins. Local folders for Claude, Cline, Codex, Continue, Cursor, OpenCode and others also hold conversation histories, project records and account details, and those can contain pasted source code, internal hostnames and secrets. Gen Digital’s point is that an attacker gets the key and the context in one archive: whose door it opens and which projects are behind it.
It isn’t only Windows. Gen Digital says a macOS stealer, Djinn Stealer, collects data from Claude, Codex, Gemini, Cline, OpenCode and Kilo.
SpyCloud says outright that press coverage calling these “AI stealers” credits them with more novelty than the evidence shows. They are the same commodity malware-as-a-service stealers that have circulated for nearly a decade, pointed at a new directory. Gen Digital likewise says its research points to neither a vulnerability in an AI model or agent nor a new way of compromising a device.
What matters is how cheap the change is. According to Gen Digital, many stealers manage what they collect through collection rules that are delivered remotely, listing folders and file names. Once an operator learns where an AI tool keeps its files, adding one path can start collecting from machines that are already infected, with no need to rebuild or redistribute the malware, though this does not hold for every family. SpyCloud, citing Gen Digital, says the same thing happened with WardenStealer: collection for AI tools was added through individual rules at customers’ request, and came as standard in version 1.9, announced on September 29.
The numbers need to be read with what they count in mind.
SpyCloud first saw WardenStealer on August 3 and says it has recaptured more than 130,000 infections since (SpyCloud). That is the whole family’s infection count. WardenStealer also takes browser passwords, remote-access tools and game accounts, so it is not the number of people who had AI tool data stolen. Aoki was first seen on October 4, and no infection count has been published. In its October 15 report, Symantec says early Aoki builds did not touch AI files and that the capability is recent (per SpyCloud’s write-up).
Gen Digital says it saw more than 5,000 samples of a stealer called CallbackBeaver in a recent 30 days. Those are samples, not infected people. Another figure from the same research: in the first half of 2026, its telemetry recorded infostealer detections among more than 3.3 million unique protected users, with every month above 500,000. That covers all families, not only ones that go after AI tools, and Gen Digital notes that these are detections, not successful infections.
So how many people have had AI tool tokens stolen and abused is not in any report.
A saved password can be rotated by its owner, and a stolen cookie expires on a schedule the service controls. AI tool tokens differ a little. According to SpyCloud, the files that get taken hold OAuth access and refresh tokens, standing API keys, and the configuration of tools wired into source control, cloud accounts and build pipelines. Much of the access a stolen token carries can survive a password change and an MFA prompt.
Gen Digital adds a condition. An access token works until it expires. A refresh token can sometimes be exchanged for new access tokens, which extends the window of abuse. But the outcome depends on the token’s scope, its lifetime and the service’s own controls, so stealing a file does not guarantee lasting access. Even so, Gen Digital’s view is that the file can be as sensitive as a password store.
SpyCloud collected posts from Telegram and elsewhere showing stolen AI keys and plans being sold as priced goods. One catalog listed a one-month Codex API key carrying $100 of credit for $8.94, and a $100 Claude API token at the same price. $8.94 is about 9% of face value, a discount of about 91% (our calculation). A Russian-language shop offered Claude, ChatGPT and Grok subscriptions at 40% to 60% below list price, and another Telegram bot offered OpenAI and Anthropic access at up to 91% below. One service says it pays suppliers who upload keys a share of billings, 35% on Anthropic and AWS Bedrock Claude keys and 20% on OpenAI keys, paid daily.
Billing inference to someone else’s paid account is called LLMjacking. As a sense of the damage, SpyCloud cites Sysdig researchers’ 2024 estimate that a single abused account could run past $46,000 a day in charges. That is a past estimate, not a figure for this wave.
SpyCloud itself says it cannot confirm that everything being sold was taken by infostealers. Keys can also come from scanning source code, phishing or fraudulent sign-ups. What it can say with certainty is that AI accounts, keys and sessions each now carry a price, so the motive to steal them already exists in the market.
Claude Code’s official documentation says storage depends on the operating system. On macOS it is the encrypted Keychain. But when the Keychain rejects a write, for example when it is locked in an SSH session, Claude Code stores the login in ~/.claude/.credentials.json with file mode 0600. Linux uses that file. Windows uses %USERPROFILE%\.claude\.credentials.json and inherits the access controls of the user’s profile folder (Claude Code authentication). Codex caches its login on the machine, and the CLI and the IDE extension share it. It is kept either in a plaintext file, ~/.codex/auth.json, or in the OS credential store, and the setting cli_auth_credentials_store chooses between them. Setting it to keyring puts it in the OS store (OpenAI’s Codex authentication page).
The trouble with a file is that any program running as that user can read it. Gen Digital makes the same point about encryption: if the key sits next to the data, or the app unlocks everything for any process running as the user, a stealer can still get it. It asks product makers to use OS credential stores, keep less locally, and make tokens short-lived and narrow. For tools that let you choose where to store a login, as Codex does, you can pick the credential store yourself. Being in the macOS Keychain does not mean being safe. Whether macOS malware can read Keychain contents was not something these sources let us confirm.
The order matters. Gen Digital says that after a stealer infection, changing browser passwords alone is no longer enough: from a clean device, revoke AI-service sessions and replace the API keys and other credentials used by MCP connections. Adding the steps from the official help pages gives this sequence.
We have not confirmed the revocation steps for other tools such as Cursor and GitHub Copilot. Check each vendor’s official instructions.
SpyCloud lists the routes it sees: lures that tell you to paste and run a command on screen (ClickFix-style), malicious search ads, fake game cheats and trojanized installers. For Aoki, neither SpyCloud nor Symantec has pinned it to a single route. So nothing special is needed; ordinary anti-infostealer habits apply.
Restating Gen Digital’s advice: know what is stored on the machine and review your history settings. Where you can choose, use the OS credential store rather than a file (for Codex, the keyring setting above). Don’t paste passwords, private keys or customer data into a conversation, and if you do, rotate the secret and delete the retained conversation where you can. Give connected tools such as MCP servers only the permissions they need, use short-lived, narrowly scoped tokens, and keep personal, development and production access separate. Revoke connections you no longer use.
SpyCloud writes that a stolen CLAUDE.md or MCP configuration can describe the environment the tokens reach into. What follows is our own view: it is safer not to put secret values, or information that must not leave the company, in CLAUDE.md.
Both pieces of research come from companies that sell protection against infostealers. They are specific and consistent with each other, but the infection figures are what each company can see. SpyCloud also says it cannot confirm that all of the keys sold on underground markets come from infostealers. We did not read Symantec’s own report. We checked only what appears in SpyCloud’s write-up and in secondary coverage.
How Aoki reaches a computer is not established by either SpyCloud or Symantec. How many people have had AI tool data stolen and then abused has not been published.
We checked when a stolen token actually stops working only as far as the vendors’ help pages describe. We have not read OpenAI’s steps for revoking an individual API key, or the steps for Cursor and GitHub Copilot. And we could not confirm how effective the macOS Keychain is against infostealers.
If your team uses AI coding tools in production or day-to-day work, and you are unsure how to take stock of what is stored on each machine or what to do after an infection, please get in touch.
We are currently taking free consultations on security. Questions like "Is our site safe?" or "Where should we start checking?" are welcome.
