On July 15 Microsoft Threat Intelligence published a write-up of the AsyncAPI npm compromise. They say they identified it on July 14. Five versions across four names were republished in about ninety minutes with the same loader: @asyncapi/specs 6.11.2-alpha.1 and 6.11.2, @asyncapi/generator 3.3.1, @asyncapi/generator-components 0.7.1, and @asyncapi/generator-helpers 1.1.1.
The payload runs when a build or an app imports the package. Microsoft says npm install --ignore-scripts does not neutralize it, because the trigger is the import, not an install script. The packages declared no preinstall, install, or postinstall hooks.
They were published through npm trusted publishing with GitHub OIDC, and they carried valid provenance attestations. Those attestations identified the real repositories, commits, and workflows. The commits that triggered the release were unauthorized. Provenance told the truth about which workflow ran. It did not tell you the workflow should have run.
What Microsoft says was active
In the build they analyzed, persistence and command-and-control were active. Credential-harvesting and propagation modules were implemented but disabled in that instance. They still say second-stage execution can expose tokens, which is why the mitigation list says to rotate secrets from a clean host if you imported a bad version. I am following their page on that point, not a shorter “it only steals passwords” summary.
Pins they name: @asyncapi/specs 6.11.1 or earlier, @asyncapi/generator 3.3.0, @asyncapi/generator-components 0.7.0, @asyncapi/generator-helpers 1.1.0. Remove the five bad versions, purge npm and Yarn caches, and rotate credentials that were available to any environment that imported them. They also point at npm CLI 11.10.0 or newer, or the CLI’s minimum release age feature, so a package published minutes ago is not what CI installs.
A lockfile check, not a lecture
Search lockfiles for those five versions. Search CI logs for July 14. If a build imported one, treat that builder’s tokens as exposed and rotate them from a different machine. If you only use AsyncAPI as a distant transitive dependency, you can still have resolved the bad specs package. “We do not import it directly” is not the check.
Valid provenance is a useful signal. This week it was not a sufficient one. The release process itself was the thing that got used.
If you publish your own packages, the same week is a reason to look at your release workflow, not only your lockfile. Who can push to the branch that publishes? Does a pull request from a fork get to run with a token that can release? Microsoft’s reconstruction of this incident is a misconfigured workflow that ran attacker-controlled pull request code and exposed a bot token, after which the legitimate publish workflow did what it was built to do. You do not need their full timeline to ask that question of your own repo. A publish token that a pull request can reach is a standing invitation.
If your app’s build pulls JavaScript dependencies and you are not sure what July 14 resolved to, that review is part of Prototype to Production. Email russ@intelligencesimplified.com with the question. A lockfile is enough to start.