← Startup Signals
6 min readUpdated 2026-10-15Issue 6

A poisoned npm release that punishes you for revoking the stolen token. The order of your response is the whole defence.

Most incident guidance starts with revoking the leaked token. Here that is the trigger. What StepSecurity found, the order it recommends, and why a valid provenance attestation did not help.

ByKarthik KumarCafiyn Innovations
At a glance
Package
tensorlake on npm, version 0.5.144
First malicious commit
7 October 2026, 01:20 UTC, to main, under a maintainer name
Published to npm
8 October 2026, 01:12 UTC, by the repository release workflow
Runs at
Install time, through a preinstall hook. Skips CI
The trap
gh-token-monitor checks the stolen token every 60 seconds for up to 24 hours and deletes the home directory if it is rejected
Provenance
Valid npm attestation. It says where the package was built, not that it is safe
Registry today
npm no longer lists 0.5.144. Latest listed is 0.5.151

What happened, in order

StepSecurity reports that someone pushed malicious files straight to the main branch of tensorlakeai/tensorlake under a maintainer name, at 01:20 UTC on 7 October. Seven more commits followed over the next few hours, tweaking the payload and adding a preinstall line to package.json, and none of them went through a pull request. At 01:12 UTC on 8 October the repository release workflow published tensorlake 0.5.144 to npm, started under the same maintainer identity. The files in the npm package match the files on main.

The sources we read do not say how the commits were pushed, meaning whether a maintainer account, a token or something else was used. We are not going to guess. What they do establish is that the release came from the project repository and its release workflow.

What the install does

When the package is installed, the preinstall hook runs setup.mjs. It skips itself on CI, so developer machines are the target. It downloads the Bun runtime and uses it to run an obfuscated 856 KB file that StepSecurity decoded without running.

The payload goes after GitHub and npm tokens, cloud keys, Kubernetes and Vault secrets, SSH keys, saved browser logins, and configuration files for AI tools including Claude, Cursor and Windsurf. The data is encrypted and sent to a public GitHub repository the malware creates in the account of the victim, described as "Shai-Hulud: Here We Go Again", or to a domain it controls.

It then tries to spread. With a stolen npm token it downloads the packages that token can publish, adds itself, bumps the version and republishes them. With a stolen GitHub token it commits .claude/settings.json and .vscode/tasks.json files to the repositories it can reach under a fake claude@users.noreply.github.com author with the message "chore: update dependencies", so the payload runs again when someone opens the project in Claude Code or VS Code.

The trap, and why the order matters

If the malware has a GitHub token, it installs a small service called gh-token-monitor. Every 60 seconds, for up to 24 hours, the service checks the token against the GitHub API. If GitHub rejects it, the service runs rm -rf ~/ on Linux and macOS, or deletes the user profile with PowerShell on Windows. StepSecurity puts it plainly: the obvious first move, revoking the token, is what sets it off.

That reverses the usual advice. StepSecurity says that if you installed 0.5.144, you should not revoke any tokens yet. Back up anything you cannot lose, remove the monitor, and only then rotate credentials.

  • Check whether you have it: run npm ls tensorlake and look in lockfiles for 0.5.144, and consider whether you cloned or pulled the repository main since 7 October and ran npm install in typescript/.
  • Look for the folder ~/.config/gh-token-monitor/. If it exists, open the token file inside to see which GitHub token it holds, then stop and remove the service. On Linux the files are under ~/.config/gh-token-monitor, ~/.local/bin/gh-token-monitor.sh and ~/.config/systemd/user/gh-token-monitor.service. On macOS there is a launch agent called com.user.gh-token-monitor.plist.
  • Only then rotate: GitHub and npm tokens, cloud keys, SSH keys, Kubernetes and Vault credentials, secrets in .env files, AI tool keys and passwords saved in the browser.
  • Check for spread: new public repositories on your account with the Shai-Hulud description, commits from claude@users.noreply.github.com, and .claude or .vscode files you did not add.

Provenance did not help, and install scripts did the damage

The release carries a valid npm provenance attestation, because it really was built from the project repository. StepSecurity is direct about what that means: "The attestation says where a package was built. It doesn't say the code is safe." A policy that trusts provenance alone would have let this through.

The delivery mechanism was an install script. StepSecurity notes that setting ignore-scripts=true in .npmrc stops install hooks like this one. The tradeoff is that some legitimate packages need their install scripts, so turn it on, find what breaks, and allow those packages deliberately.

What to do

  1. 1Run npm ls tensorlake and search lockfiles for 0.5.144 across every repository and CI cache.
  2. 2If it was ever installed, do not revoke the GitHub token first. Back up what you need, remove gh-token-monitor, then rotate.
  3. 3Rotate every credential the machine could reach, including AI tool keys and browser saved passwords.
  4. 4Search your GitHub account for the Shai-Hulud repository description and for commits from claude@users.noreply.github.com.
  5. 5Set ignore-scripts=true in .npmrc and allow install scripts per package.
  6. 6Pin tensorlake to 0.5.143 if you must use it, as StepSecurity suggests, and treat newer releases with care until the maintainers publish an incident note.

Common questions

Is it safe to revoke the stolen GitHub token?

Not first. StepSecurity says the malware installs a monitor that deletes the home directory if GitHub rejects the token, so the monitor has to be removed before the token is revoked.

Does npm provenance mean a package is safe?

No. The attestation records where the package was built. This release was built from the project repository, so it carries a valid one. StepSecurity says it does not say the code is safe.

Is version 0.5.144 still on npm?

No. As of 15 October the npm registry no longer lists 0.5.144, and the latest listed version is 0.5.151. Copies already installed or cached on machines are not affected by that removal.

Does this affect CI?

The setup script skips itself on CI according to StepSecurity, so developer machines are the target. CI caches and lockfiles are still worth checking.

Sources

Read against the primary documentation rather than secondary coverage. Where a figure comes from a provider's own docs, it is quoted as published on 2026-10-15.

Related

More from Signals

OpenAI removes o1, o3-mini, o4-mini and GPT-4 Turbo on 23 October. The replacements it names run from 5.5 times the price to 97 percent less.
Eleven models and six fine tuned models go dark in four days. Here is OpenAI's own mapping, what each landing costs on a typical month of traffic, and the places where the named replacement is not the cheapest or cannot be used at all.
OpenCode says a breach hit 1.4 percent of Console users who linked an AI provider. Rotate those keys before the root cause is published.
OpenCode has confirmed the breach and has not said how it happened or what was taken. Here is what the vendor said, who is exposed, the order to work in, and how to limit the damage next time.
GitHub Actions workflow lockfiles are in public preview. Here is how to turn them on, check them in CI, and what they do not protect.
A tag can move after you reviewed it. A lockfile makes the runner use the commit you reviewed. Here is the setup, the CI check, the policy, and what a lockfile cannot tell you.
Next.js 16.4.1 and 15.5.28 fix two critical remote code execution flaws. For one of them there is no workaround.
Two of the three fixes were postponed from September. Here is what each flaw needs in order to be reachable, the one workaround that exists, and what the announcement leaves out.
Claude Haiku 5.5 costs a tenth of Haiku 4.5 per token. One token past 100,000 it costs half.
The rate card is a tenth of Haiku 4.5. The footnote is a threshold that moves the price fivefold and that a tokenizer change pushes you toward.
Gemini 4 Argon launched at $2 and $10 and goes to $4 and $20 on 1 December. Price your product on the second number.
Every tier on the pricing page doubles on the same date. What changes, what the number includes, and what to do if you are building on the launch rate.
Claude Haiku 5.5 is not a model id swap. Five things that worked on Haiku 4.5 now return a 400.
The model id is the easy part. The requests that now fail, the response parsing that changes, and the details that fail quietly.
Next.js shipped 16.3.7 and 16.3.8 a day apart. Only one of them is the security release.
Two patch releases a day apart, one of them a decoy if you are not reading carefully. And the 15.5 line does not get the high severity fix at all.
The EU AI output marking rule is not a December deadline. For most teams it started in August.
Almost every summary of this gives one date. There are two, and which one applies to you depends on when you shipped, not on how big you are.
Sonnet 5.5 cut the rate by a third and the token count went up by about 30 percent.
A third off the per-token rate is not a third off the bill when the same text now costs more tokens. Here is the arithmetic, and the five ways your code can break.
Your AI gateway holds every provider key you have. A 9.9 just landed in LiteLLM.
An AI gateway concentrates every upstream key into one process. That is the point of it, and it is why a privilege escalation there is worse than it looks.
The table your coding agent created does not have row level security on it.
Dashboard-created tables get row level security by default now. API-created tables do not, and API is how your coding agent works.
A 9.5 in next/og. Whether it reaches you depends on one line in your OG route.
The advisory rates it 9.5, but it only fires if your OG image route puts attacker-controlled text into SVG. Here is how to find out which side of that line you are on.
OpenAI and Anthropic both cut prices on 22 September. One of them costs you a refactor.
Two frontier price cuts in one day is a good week for anyone paying a token bill. The migration cost is not evenly distributed, and one of the two prices comes with an expiry hedge.
A package install reads your home directory. This week two of them did it on purpose.
The implant did nothing clever. It read the files your shell reads, in the place your credentials live, and sent them somewhere else. That is the whole attack, and it works.
GitHub is switching off SHA-1 SSH keys. Find out now whether yours is one of them.
The keys at risk are the old ones, on the machines nobody logs into, in the pipelines that have run untouched for three years. Those are also the ones that will fail loudest.
Every third-party script tag is a standing grant to run code on your visitors.
A marketing form, a chat widget, an analytics snippet. Each one is permission for someone else's server to execute whatever it sends, on every page it sits on, forever.
1.8 million Android apps were scanned for hardcoded keys. Here is how to check yours.
Finding secrets in shipped apps is now a cheap, automated pipeline. Anything compiled into an APK, an IPA or a JavaScript bundle should be treated as already published.
OpenAI's Agents API will hold your agent state. What breaks if you ever need to leave.
Two major providers moved into the agent state layer in the same week. A managed harness is a real shortcut, as long as you keep a copy of what it holds.
Meta's Muse agent can now check out at your store. What merchants should change.
Agent purchases are arriving through wallets and single-use cards, not through merchants adopting a new protocol. Many merchants will receive them without choosing to.
What Brevo's SSO incident teaches about multi-tenant SAML and hijacked sending accounts.
One incident, two lessons: why email authentication did not help, and the tenant-scoping mistake anyone shipping SSO can make.
Cloudflare now sorts bots into Search, Training and Agent. What it means for your site and your agent.
The same change lands on two audiences. Site owners can now accidentally block search; agent builders will find more doors closed.
OpenAI has announced ten dated deadlines between 23 October 2026 and 1 April 2027. Here is the calendar.
Ten dated deadlines in six months, every one announced in public. The failure mode is never the notice. Updated 19 October with the entries added since September.
Nvidia bought Hugging Face. Your open-weight fallback is now a vendor relationship.
The commitments say nothing breaks. The structural change is that "we can always self-host" is now a dependency on one vendor rather than on a neutral commons.
The Videos API goes away on 24 September and OpenAI names nothing to move to.
Every other deprecation on OpenAI's page offers a migration target. This one does not, which makes it a different kind of problem.
Whisper shuts down on 26 February. The risk is not the deadline.
Five months is a generous window. Whisper is also typically wired into a background job that fails into a queue rather than into a user's face.
The Assistants API is gone. Your app may not have told you yet.
It shut down on 26 August 2026. The replacement is not a drop-in, and the most common migration mistake changes your model's behaviour without throwing an error.
One Copilot code review costs 13 requests. Here is the rest of the maths.
Copilot now bills on usage rather than seats. The headline change is simple. The multipliers underneath it are where teams get surprised.
Row-level security is on by default now. That is not the same as being protected.
Lovable fixed the default. The gap that actually leaks data was never the default, it was the policy, and no platform can write that for you.
Your model comparison is measuring the wrong number.
Every price list is per token. Your bill is per finished piece of work. Those two numbers can rank models in opposite orders.
An agent with production log access is a new identity. Treat it like one.
Always-on agents that read production logs are arriving fast. The access-control question they raise is old and well understood, which is the good news.

Open the tool.

Ten production categories, three minutes, and a ranked list of what to fix first.

Check your own stack