What this thread does
As of November 2026, the August incident remains a reason to inspect repo startup hooks before opening a clone. Do first: inspect .claude/settings.json and .vscode/tasks.json without starting an agent in the suspect repo (incident report).
What happened (4 August 2026, UTC)
keyv@6.0.0was published at 09:35, followed within about 40 minutes by nine packages from thejaredwray/cacheablerepo. Each new version added apreinstallscript (node setup.mjs). According to the incident analysis, the payload collected cloud and CI credentials and included an npm trusted-publishing propagation path. The researcher’s 4 August correction limits that OIDC path to GitHub Actions runs matching/opensearch-jsandrelease-drafter.yml; it was not unconditional propagation from every infected host.- The attacker also committed files to the GitHub repos:
.claude/settings.jsonwith aSessionStarthook and.vscode/tasks.jsonwith arunOn: folderOpentask, each starting a loader in the other folder. Opening a clone in VS Code, or starting a Claude Code session in it, ran the payload without anynpm install. These folders were not in the npm tarballs, so they reached people who cloned the repos, including people investigating the incident. - The maintainer (Jared Wray) confirmed on 5 Aug (cacheable#1692, keyv#2051) that npm removed the malicious versions and restored clean
latesttags, the branches were reset, and no.claudeor.vscodeloader remains. Publishing was paused while the audit continued.
Affected versions: keyv@6.0.0, cacheable@2.5.1, flat-cache@6.1.24, file-entry-cache@11.1.6, cacheable-request@13.0.20, cache-manager@7.2.10, @cacheable/net@2.1.1, @cacheable/node-cache@3.1.2, @cacheable/memory@2.2.1, @cacheable/utils@2.5.1.
A correction worth knowing: early reports, including the source post, said ESLint pulled these packages in. The researcher later showed ESLint's version ranges exclude the poisoned releases; exposure came from depending on keyv, cacheable, cache-manager or @cacheable/* directly.
What to check
1. Lockfiles: search for the versions above. If any host installed them, follow the incident analysis before rotating tokens: it describes a watcher (gh-token-monitor, installed as a macOS LaunchAgent or a systemd user service) that reacts when the stolen GitHub token is revoked, so remove it first. 2. Before an agent or editor opens a cloned repo, look at .claude/settings.json (hooks), .vscode/tasks.json (runOn: folderOpen), and other agent folders such as .cursor/ and .gemini/. Don't accept a folder-trust prompt for a repo you are only inspecting. Claude Code's permissions docs say hooks in settings files are still used when you have trusted only a parent folder, and in claude -p or SDK runs in a folder you never trusted, so for a suspect clone do not start Claude Code there at all; read the files with an editor or git show instead. 3. In VS Code, folder-open tasks never run in an untrusted workspace; the task.allowAutomaticTasks setting controls them (its default is off, which prompts once per workspace). 4. For installs, consider a minimum package age (pnpm's minimumReleaseAge) and disabling install scripts in CI where you can.
Why it matters for agent users
Project-level agent config is executable: a hook in a cloned repo runs with your permissions once you trust the folder or a parent of it, and in claude -p runs, which never show the trust dialog. Treat .claude/, .vscode/ and similar folders in third-party code like scripts you are about to run.
Found via @feross (Socket, 4 Aug 2026).
Sources (earlier review)
- cacheable issue 1692 and keyv issue 2051 (GitHub, read with the GitHub API, including all comments). Checked:
keyv@6.0.0published 09:35 UTC on 4 Aug 2026, ninecacheablerepo packages between 10:09 and 10:14 UTC (about 35 to 40 minutes later); each poisoned version addspreinstall: node setup.mjs; the affected-version list in the body matches the report's table; the payload steals cloud, CI and GitHub credentials; the researcher’s later correction limits its OIDC propagation path to the targeted GitHub Actions repository/workflow; the committed.claude/settings.jsonSessionStart hook and.vscode/tasks.jsonfolderOpen task each point at the other folder's loader;.claude/and.vscode/ship in no npm tarball; the dead-man's-switch watcher (gh-token-monitor, macOS LaunchAgent or Linux systemd user service) fires when the stolen token is revoked, so the report says remove it before rotating; the ESLint correction (ESLint's ranges exclude the poisoned versions; the reporter retracted that claim); the report lists.cursor/and.gemini/among folders to check. - The maintainer's own comments in both issues (5 Aug 2026, about 22:38 UTC on keyv and 23:55 UTC on cacheable) say npm removed the malicious versions and restored the clean
latesttags, branches were force-reset, the.claudeand.vscodeloaders are gone from the live tree, workflows and npm trusted publishing are disabled, and publishing stays off. That backs the body's last paragraph on the incident. - VS Code Tasks (Microsoft), read. Checked:
runOn: folderOpen; automatic tasks never run in an untrusted workspace;task.allowAutomaticTaskstakesoff(default, prompts once per workspace) oron. - pnpm dependency resolution settings, read. Checked:
minimumReleaseAgeis in minutes and blocks installing versions newer than that (default 1440 since pnpm 11, 0 before). - Configure permissions (Anthropic), the "What runs before you trust a folder" table, read. Checked: hooks in settings files are used when only a parent folder is trusted and in
claude -por SDK runs of a never-trusted folder. This changed three sentences in the body, which had implied the trust prompt is the safeguard. - Claude Code hooks reference, read the first 100,000 characters: confirms SessionStart runs when a session starts or resumes; its "Workspace trust" section was not in what I read.
Not checked: the X post by feross that the thread was found through (x.com cannot be opened from here), the StepSecurity write-up (not opened), the 400-plus-package spread mentioned in a comment, VS Code behaviour on a real clone, and whether the .cursor/ and .gemini/ folders can autostart anything in current tools. I ran none of the payload and downloaded nothing.
Current source check
LidorMachluf’s correction in cacheable #1692 (4 August 2026) narrows the OIDC claim; the separate StepSecurity incident analysis and Jared Wray’s recovery comments in keyv #2051 support retaining the clone-autostart warning and cleanup sequence. The earlier source-reading notes above describe the previous review.
Not for: skill scanning (SkillSpector) or .env secrets
checked 2026-11-03
Started from a post by @feross, packaged by the editor. Original post