Abstract

How does one compromised maintainer account turn into hundreds of malicious releases, and which registry controls interrupt that chain? A package worm replicates when code running in an infected environment that has, or can reach, publishing authority uses it to publish another version without authorization, and that version then runs somewhere else. Shai-Hulud did this on npm in September 2025, with lifecycle scripts and stolen tokens, and a second wave followed in November. Later cases showed no demonstrated spread: Python packages triggered by startup hooks, releases built by a project’s own pipeline that carried valid provenance, and a breach of the Hex.pm registry servers in which Hex’s checks found no evidence of package tampering. Trusted publishing, short-lived tokens, script restrictions and staged publishing each interrupt particular steps, and no single one covers all the cases. A provenance attestation lets a verifier check an artifact’s digest, the signing workflow’s identity and that workflow’s own source claims. It does not show the code is benign. Consumers should freeze lockfiles, delay new versions at resolution time, keep scripts off, limit CI egress and require provenance where it existed before.

How a package worm replicates

A package worm is malware that, where an infected environment has or can reach publishing authority, uses that authority to publish another malicious version without authorization. That version then runs in someone else’s environment, whether at install time, at first use or inside a CI job, and the cycle can repeat wherever the new environment can also publish. Most infected environments cannot publish at all, so replication depends on reaching the minority that can. Four conditions have to hold. Malicious code runs somewhere a maintainer or a publishing pipeline works. That code can exercise publishing authority, directly or by delegation: an npm token in a per-user ~/.npmrc, a CI secret, or a GitHub token able to start a release workflow.1 The registry accepts it. And downstream environments resolve and run the new version. How fast installs happen affects how far it spreads, but it is not part of the definition.

The cases in this article fall into four classes, and keeping them apart matters for judging the defences:

  • Demonstrated replication. The September 2025 Shai-Hulud wave, for which GitHub and CISA describe automated republishing with stolen npm tokens, and its November 2025 successor, for which Wiz reports the same pattern.234
  • Replication capability suggested by analysis, spread not established. The tensorlake payload, which StepSecurity’s analysis says can republish a victim’s packages, and the Sckit payload in MemTensor packages, where static evidence suggests propagation was intended but neither reachability nor onward publication is demonstrated.56
  • Ordinary package compromise. chalk and debug, Nx, litellm and Microsoft’s agent-framework. A malicious release with no documented self-propagation.
  • Registry breach without observed tampering. Hex.pm in November 2026.7

Each defence interrupts particular steps. Install-script restrictions cover one execution path. Short-lived tokens, trusted publishing and two-factor publishing reduce what a stolen credential is worth. Malware scanning, quarantine and staged publishing act at the registry. Release-age delays, lockfiles and package firewalls act on the consumer’s resolution. A provenance attestation is separate from the registry’s decision to accept a publish: it lets a verifier check a digest and the signing workflow’s identity, and compare that workflow’s recorded source with what it expects.

Code that runs without an explicit import

npm lifecycle scripts

An npm package can declare preinstall, install and postinstall scripts.8 Before npm v12, the client ran a dependency’s lifecycle scripts automatically during installation. In v12 they are opt-in.9 A script runs as the user who started the install. It inherits that process’s environment variables and can read whatever files and credential stores that user can read, within the limits of the job’s scope, the operating system and any sandbox. On a developer laptop that can include files such as the per-user ~/.npmrc, which can hold registry auth tokens, or cloud CLI configuration.1 On a CI runner it can include whatever secrets the job was given. GitHub’s December 2025 review of Shai-Hulud describes the mechanism: the malicious code “is executed as part of the installation of the package”. On a client that runs lifecycle scripts, installing the package is enough.10

Python: build backends, .pth files and sitecustomize

Installing a Python source distribution can involve running the project’s build backend, the PEP 517 interface through which pip delegates building.11 Wheels have no install script. CPython has a different trigger that works at startup. When the site module processes a site-packages directory, lines in a .pth file that start with import followed by a space or tab “are executed with exec()”. The documentation adds that such lines “are always run at Python startup (unless -S is given to disable the site.py module entirely), regardless of whether a particular module is actually going to be used”. After processing path files, site also tries to import a module named sitecustomize.12 Python 3.15 deprecates import lines in .pth files. During the deprecation period they still run, except that they are silently ignored when a matching .start file exists. Only such executable lines run, and only when site processes the directory.12

StepSecurity’s analysis of litellm 1.107.0 describes a 12-byte cook.pth containing import cook, plus a sitecustomize.py, both installed at the top level of site-packages.13 The PyPI advisory for Microsoft’s agent-framework describes a .pth file that “runs the payload on every Python interpreter start in the environment where the package is installed, without needing an import”.14 In both cases the trigger is CPython startup in the affected environment, with site enabled, not the installer. Installer flags that suppress npm-style scripts do not apply.

The 2025 cases

chalk and debug: one phished account

The debug maintainer’s advisory states that on 8 September 2025 “the npm publishing account for debug was taken over after a phishing attack”. It says version 4.4.2 added a payload that tried to redirect cryptocurrency transactions “from within browser environments”, and that local, server and command-line environments were not affected.15 The Register reported that the phishing email “came from support@npmjs.help rather than npmjs.com” and that Josh Junon had authorized a reset of his two-factor authentication.16 Aikido’s feed flagged the first releases at 13:16 UTC and counted 18 packages with more than two billion weekly downloads between them. Junon replied at 15:15 UTC that he was cleaning up.17 The analyses read here describe a browser-side payload and document no self-propagation.18 The incident shows what one phishable second factor on a high-download account can cost.

s1ngularity: the workflow as the entry point

Nx’s advisory reconstructs a compromise that began in CI. A pull-request validation workflow merged on 21 August 2025 interpolated the pull-request title into a shell command, and it ran on pull_request_target. In Nx’s configuration, that workflow received a GITHUB_TOKEN with read/write permission on nrwl/nx.19 GitHub lets workflows narrow those permissions with a permissions key.20 Nx believes the attacker used the injection to trigger its separate publish.yml workflow with a malicious commit, which sent the npm token held by that workflow to a webhook.19 Reverting the vulnerable workflow on master left it in outdated branches, which remained usable.19

On 26 August the token was used to publish malicious versions. Releases of the main nx package appeared between 6:32 PM and 8:37 PM EDT, and plugin entries ran to 8:42 PM. Nx lists the main package and several plugins as removed at 10:44 PM EDT, and two further packages as removed at 6:20 AM EDT the next day. Nx’s incident timeline records the revocation of publish-capable npm tokens at 11:57 PM EDT.19 The postinstall payload collected credentials and posted them to a public repository in the victim’s own GitHub account. Wiz reported that it also directed locally installed AI command-line tools to search the file system, and that leaked tokens were later used to make more than 5,500 private repositories public.21 Nx says two controls were already in place: provenance “was attached to recent versions of Nx”, and two-factor authentication was required to log in but “was not required to publish”.19 Neither stopped a publish made with a stolen token. On 27 August Nx moved its packages to trusted publishing and required two-factor authentication for publishing.19

Shai-Hulud: the September wave

GitHub says it was notified on 14 September 2025 of “a self-replicating worm that infiltrated the npm ecosystem via compromised maintainer accounts by injecting malicious post-install scripts”.2 StepSecurity, which called it the first successful worm attack in the npm ecosystem, analyzed a roughly 3.6 MB bundle.js first seen in @ctrl/tinycolor. It ran TruffleHog over the file system, collected environment variables, and used a found npm token to fetch “up to 20 packages owned by the maintainer”, bump their patch versions and republish them with the bundle.22 It also committed a GitHub Actions workflow designed to send repository secrets to an external endpoint on push. That gives the worm a persistence path inside repositories, separate from the infected machine.22

Socket tracked further bursts of compromised versions, including packages published by the crowdstrike-publisher account.23 CISA’s alert of 23 September said the worm had “compromised over 500 packages”. It advised pinning to “known safe releases produced prior to Sept. 16, 2025” and blocking outbound connections to webhook.site.3 GitHub removed more than 500 packages and started blocking uploads that contained the malware’s indicators of compromise.2

Sha1-Hulud: the November wave

According to Wiz (24 to 27 November 2025) and Unit 42 (25 November 2025), the second wave moved execution to preinstall and disguised its loader as a Bun installer. Wiz noted that preinstall execution “dramatically widens the blast radius across dev machines and CI/CD pipelines”.4 Unit 42’s payload analysis describes a fallback that attempts to destroy the user’s home directory when the malware cannot steal tokens or exfiltrate. It also describes a workflow that registers the infected machine as a self-hosted GitHub runner. Both are capabilities in the payload. The sources do not count observed outcomes.24

The counts measure different things. Unit 42 and Wiz’s summary report more than 25,000 attacker-created exfiltration repositories across about 350 GitHub users, and one passage in Wiz’s body gives roughly 500.244 Separately, Wiz’s estimate of compromised npm packages rose from about 700 to “nearly 800”. Its post dates the uploads in two incompatible ways: between 21 and 23 November in one place, and from about 03:00 UTC on 24 November in its timeline. Wiz’s last snapshot, at 11:00 UTC on 27 November, says about 15 malicious versions were still on npm. It gives no date for their removal.4

Late 2026: five incidents

None of the following shows demonstrated replication. In one (tensorlake) analysis found republishing code; in another (Sckit) static evidence suggests propagation capability without showing it is reached. All rest on vendor analysis, maintainer reports or both, and each is attributed below.

tensorlake: provenance from a poisoned main branch

Tensorlake’s advisory, published on 8 October 2026, says version 0.5.144 “was published to npm using a compromised maintainer account”. It says the attacker “pushed malicious code directly to our repository and published it through our own release workflow, so the package carries valid npm provenance”. The advisory gives the version as live from 01:12 to 02:54 UTC, about 1 hour 40 minutes, and reports no observed usage in Tensorlake’s user-agent telemetry.25 The related GitHub issue was closed on 9 October.26 How the account was compromised is not stated. StepSecurity’s analysis adds commit timing: the first malicious commit landed on main at 01:20 UTC on 7 October, followed by seven more, none through a pull request. StepSecurity said the version could still be downloaded when it checked. That fits a later removal than the advisory’s end time, or a check made from a cache or mirror, and the sources do not say which.5

StepSecurity’s analysis describes what the payload was designed to do, not observed victim outcomes; the maintainers report no observed usage of the version in their telemetry.25 A preinstall hook that skips CI runs an obfuscated payload built to collect credentials and to republish a victim’s packages with a found npm token. It writes .claude/settings.json and .vscode/tasks.json into reachable repositories, which could re-run it if those tools accept and execute the dropped configuration. It also installs a gh-token-monitor service that checks the stolen GitHub token every 60 seconds for up to 24 hours and deletes the home directory if the token is rejected.5 In this incident, revoking the stolen GitHub token first can trigger the deletion. The maintainers’ advice is to disconnect the machine from the network, remove the monitor, and only then rotate credentials from a different, clean machine.25

StepSecurity’s comment on the attestation: “The attestation says where a package was built. It doesn’t say the code is safe.”5

MemTensor and the Sckit payload: no install script at all

An external researcher reported in MemTensor’s issue #173 on 23 September 2026 that versions of @memtensor/memos-cloud-openclaw-plugin published that day “do not correspond to any commit or tag in this repository”. The researcher inferred that the publish token had been compromised.27 StepSecurity’s artifact analysis identifies 0.1.21, 0.1.23 and 0.1.25 as malicious. Clean contents in 0.1.22 and 0.1.24 were followed by the payload again 3 minutes 36 seconds and 3 minutes 28 seconds later.6 A project collaborator closed the issue on 30 October 2026, stating that “As of 2026-10-30, 0.1.21, 0.1.23, and 0.1.25 are not in the registry version list”. That is an upper bound on removal. The sources give no per-version removal times.27

The malicious versions add no install script. A launcher called from the plugin’s startup and memory-recall code spawns a bundled Go binary, passing it the parent’s environment and, during recall, the user’s prompt.6 StepSecurity’s static analysis of a supplied MemoryOS 2.0.34 Python source tree found a launcher reached through logging initialization on import. It also found an uncalled function that would install a shell bridge into a GitHub Actions upload step, along with binary strings such as recursivePublish. StepSecurity says these “support intended credential collection and propagation across repositories and ecosystems” but “do not establish which functions are reached, that a workflow was installed in a victim repository, or that additional packages were published.”6 On that evidence, Sckit is a design for replication, not a demonstrated worm.

litellm 1.107.0: the trusted pipeline, pointed at a fork

LiteLLM’s maintainers published an incident notice on 21 October 2026 and an attack-chain reconstruction on 23 October.2829 According to the reconstruction, an administrative key for an internal agent platform was committed to a public repository on 27 May 2026. The file was deleted, but the key stayed valid. On 10 October the attacker used it, and the platform returned a GitHub CLI OAuth token belonging to an organization owner. The maintainers note that such tokens “are not scoped, are post-2fa”. With the owner token, the attacker ran throwaway workflows that posted two other maintainers’ tokens to webhook.site. On 21 October a push changing the private release workflow, made with the second maintainer’s token, was rejected by branch protection at 10:08:29 UTC. The owner’s token overrode the protection at 10:08:34. The change let the workflow build from a lookalike repository, Berri-AI/litellm. The second maintainer’s token approved the production gate, and the third token deleted the run records.29 The maintainers say release approval had been relaxed “earlier this week” so that any two engineers could trigger and approve a release.29

After a March 2026 incident, the notice says, LiteLLM had moved releases to a private repository, published through trusted publishing, made Docker release tags immutable and signed its images.28 StepSecurity’s verdict is: “None of that helped here, because the attacker did not bypass the pipeline.”13 StepSecurity’s artifact analysis also found that the SLSA provenance on the 1.107.0 Docker images names BerriAI’s own release workflow as the builder and https://github.com/Berri-AI/litellm as the source. Earlier releases from that workflow recorded BerriAI/litellm.13

The wheels were uploaded between 11:39:51 and 11:40:13 UTC, and PyPI quarantined them by 13:23 UTC. The affected image tags pointed at compromised images from 11:46:56 UTC. GHCR tags were made unavailable by 13:51 UTC, and Docker Hub tags were removed or repointed at 14:20 UTC.2829 StepSecurity estimates about 49,000 PyPI downloads before removal, a count that includes caches and mirrors and is not a count of victims. It reports that some mirrors kept serving the files afterwards and that stolen AWS instance-role credentials were used from attacker infrastructure from 16:20 UTC.13 The credential side of the case is covered in The repository is production.

Microsoft agent-framework: an upload without provenance

Microsoft’s update of 25 November 2026 says versions 1.26.1 and 1.26.2 of the agent-framework Python meta-package “were uploaded to PyPI without authorization” on 17 November, that “The malicious code was in the published packages, not in the repository itself”, and that other Agent Framework packages were unaffected. It also says the repository was made temporarily unavailable as a precaution.30 The PyPI advisory describes wheel-only releases “repackaged from the legitimate 1.26.0 wheel” with a .pth trigger.14 StepSecurity’s timeline is precise. 1.26.1 was uploaded at 20:35:20 UTC and quarantined at 21:06:16. 1.26.2 was uploaded at 21:08:39 and quarantined at 21:16:44. Both, in StepSecurity’s words, “had no published provenance attestation”, and both carried the uploader user agent RestSharp/106.13.0.0.31

The payload collected environment variables and credential files and requested Azure managed-identity and Azure DevOps tokens. Version 1.26.2 also requested GitHub Actions OIDC tokens for Azure audiences.14 Issuing a GitHub OIDC token requires the job’s id-token: write permission. Turning it into cloud access additionally requires a trust relationship at the cloud provider that validates the token’s claims, as GitHub’s OIDC documentation describes and StepSecurity’s analysis notes for Azure.32 That analysis is static and does not establish that any exchange succeeded.31 Initial access is unknown. StepSecurity says the evidence “does not establish the initial access vector, the specific account or credential used, or the uploader’s identity”.31

Hex.pm: the registry itself

On 23 November 2026 an attacker sent 69 exploit requests to hex.pm between 18:16 and 18:29 UTC and ran operating-system commands on six web servers. The flaw, CVE-2026-129514, was in how hex.pm decoded unauthenticated request bodies in Erlang term format, before routing and authentication. Crafted values in a request could lead to operating-system command execution as the server’s own user. The safety check that would have prevented it had been removed on 23 February 2016. Every server was on a fixed build by 18:31 UTC.733

Hex compared every database row against a copy taken before the first request and matched the 23 releases published during the attack against its audit log. It reports no evidence of unauthorized package modifications or database changes within those checks. It notes that a row changed and then changed back would not show up in the comparison, and that database reads are not logged, so access to stored data cannot be ruled out. It rotated infrastructure credentials and the keys that sign sessions and access tokens. As of its report the registry signing key, which the attacker could have read, had not yet been replaced. Users were told to fetch only from repo.hex.pm and to avoid mirrors until a new client shipped.7 The Hacker News, which is trade press, summarizes the same report.34 PEP 740 states the general dependency for Python: attestations do “not increase (or decrease) trust in the index itself”, since a dishonest index “could also dishonestly modify or omit package attestations”.35

The cases side by side

CaseClassExecution pathPublish pathControls present (bypassed or not engaged)Availability window
chalk/debug, Sep 2025Package compromiseBrowser runtime15Phished account, 2FA reset16Maintainer 2FANot established; maintainer cleanup from 15:15 UTC, about 2 hours after detection17
Nx, Aug 2025Package compromisepostinstall19npm token taken via workflow injection (Nx’s reconstruction)19Login-only 2FA, provenance on recent versions, branch protection19Main nx package: first release to removal about 4 h 12 min; tokens revoked about 1 h 13 min later19
Shai-Hulud, Sep 2025Demonstrated replicationpostinstall2Stolen npm tokens, automated republish3None reportedNot established per version
Sha1-Hulud, Nov 2025Demonstrated replicationpreinstall4Stolen npm tokens, automated republish4None reportedRight-censored: about 15 versions still listed on 27 Nov snapshot4
MemTensor, Sep 2026Capability by analysisPlugin startup and recall6Publish with no matching repository commits27Not reportedUpper bound: absent by 30 Oct 202627
tensorlake, Oct 2026Capability by analysispreinstall, skipped on CI5Own release workflow, compromised maintainer account25npm provenance25About 1 h 40 min per maintainers; StepSecurity later still downloaded it255
litellm, Oct 2026Package compromise.pth, sitecustomize13Own workflow re-pointed at fork with owner token29Trusted publishing, signed images, branch protection28PyPI quarantined by 13:23 UTC (upper bound about 1 h 43 min); GHCR to 13:51, Docker Hub to 14:20 UTC2829
agent-framework, Nov 2026Package compromise.pth14Unknown; uploads without provenance31Not established30 min 56 s and 8 min 5 s per release31
Hex.pm, Nov 2026Registry breachServer RCE33None observedNot applicable13 min of exploit requests; no evidence of package tampering within Hex’s checks, with stated limits7

What the registries changed

npm, September 2025 to September 2026

GitHub’s plan of 22 September 2025 announced three publishing paths: local publishing with required two-factor authentication, granular tokens limited to seven days, and trusted publishing. It also announced deprecating TOTP in favour of FIDO-based factors and disallowing tokens for publishing by default.2 Announcements and later changelogs record the following:

  • On 29 September 2025 GitHub announced, for October with both early- and mid-October wording, that new write-enabled granular tokens would get a seven-day default (previously 30 days) and a 90-day maximum (previously unlimited), and that new TOTP setups would be disabled. The sources read here do not give effective dates.36
  • On 9 December 2025 all classic tokens were permanently revoked. npm login now issues two-hour sessions with two-factor authentication enforced for publishing, and new packages default to requiring two-factor authentication. Automation tokens with “Bypass 2FA” remained available.37
  • On 18 February 2026, npm CLI 11.10.0 added bulk trusted-publishing configuration and an opt-in --allow-git flag. The flag addressed git dependencies whose .npmrc could run code “even when using --ignore-scripts“. The default stayed permissive until v12.38
  • Between April and June 2026, GitHub added CircleCI trusted publishing and opt-in staged publishing, a 72-hour read-only mode for high-impact accounts after an email change or recovery-code login, safer actions/checkout defaults for fork-triggered events, and a read-only Actions cache for untrusted triggers.39
  • A GitHub changelog of 8 July 2026, since marked retired, announced npm v12 as latest: dependency lifecycle scripts no longer run unless approved, and git and remote-URL dependencies are no longer resolved by default.9 The current npm v12 npm ci documentation lists the matching allow-scripts settings.40 The same notice said 2FA-bypass tokens were expected to lose sensitive account actions in early August 2026; this article has not confirmed that cutoff. On 18 September 2026 GitHub added stage-only granular tokens and said npm is “targeting January 2027” to remove direct publishing through bypass-2FA tokens.41
  • In July 2026 Dependabot version updates gained a default three-day cooldown.39
  • On 3 September 2026 packages could have several trusted-publishing configurations. New configurations allow staging by default and direct publishing only by opt-in, and a staged version cannot be approved until malware scanning finishes.42

Two limits apply. npm accepts a trusted publisher “in addition to traditional authentication methods like npm tokens and manual publishes”. Tokens stop working for a package only when the maintainer selects “Require two-factor authentication and disallow tokens”.43 Bloom Security also reported, in its SlugFest research, that npm anchored a trusted-publisher configuration to a repository name until its first publish. Whoever re-registered a freed name could publish the package. Bloom estimated more than 1,500 exposed packages with over 10 million downloads. It says it reported the issue privately to GitHub on 6 June 2026 and that the gap stayed exploitable for about four months after that report.44 On 2 October 2026 GitHub made unvalidated configurations expire 48 hours after creation, and npm began rejecting trusted-publishing tokens from issue_comment events.45

PyPI

PyPI introduced trusted publishing on 20 April 2023, exchanging a CI job’s OIDC token for a short-lived, project-scoped API token.4647 It announced PEP 740 attestation support on 14 November 2024, by which time more than 20,000 attestations had been published.48 Its quarantine design of December 2024 removes a quarantined project from the Simple API, so installers resolving through the index do not see it, and stops its owner from changing it; it was built to extend to individual releases.49 Removal from the index alone does not establish that a file is unreachable by direct URL, and this article has not verified direct-file availability during the agent-framework quarantines. Quarantine also does not reach files already downloaded or cached. Microsoft’s update makes that point for agent-framework: “PyPI removal does not remove copies already downloaded”.30 In that case 41 minutes 24 seconds passed from the first upload to the second quarantine. The second upload shows that the attacker still had some publishing access after the first quarantine. The sources do not show whether the same credential was used, or whether access lasted beyond the second quarantine.31

The Ultralytics compromise of December 2024 shows provenance being used in an investigation. The first malicious releases came through the project’s own GitHub Actions workflow, compromised via the Actions cache. A second round came from an unrevoked API token and “was detectable because there were no corresponding source repository activity or PyPI publish attestations”.50

Hex.pm

Hex patched the decoder, rotated the signing keys for sessions and tokens (which logged every user out), asked users to reset two-factor authentication, reported to the Swedish data protection authority, CISA and ENISA, and is building a registry signing system that supports key rotation.7 It did not ask for API keys to be rotated. Its reasoning is that 128-bit random keys stored as HMAC-SHA256 hashes are beyond brute force, while bcrypt-hashed passwords should be changed.7

What a provenance attestation proves

Three different things

Publishing with provenance on npm works like this. The client creates a single-use key pair. Sigstore’s Fulcio issues a short-lived certificate binding that key to the CI job’s OIDC identity. The client signs a statement about the package and records it in the Rekor transparency log, and the registry checks signature and identity before accepting the version.51 npm generates provenance automatically under trusted publishing only for GitHub Actions or GitLab, from a public repository, for a public package. CircleCI publishes do not get it.43

Three things should be kept apart:

  1. Publication authorization. The registry accepted this upload from this credential or trusted publisher. This is a registry decision, made whether or not an attestation exists.
  2. Signature and identity. The artifact’s digest matches a signed statement, and the signing certificate names a particular repository, owner and workflow. GitHub’s CLI manual says that “only the signature.certificate and the verifiedTimestamps properties contain values that cannot be manipulated by the workflow that originated the attestation”. It calls the predicate “often user-controllable”.52
  3. Build claims. The predicate records what the workflow says about its source revision, inputs and parameters. A verifier can compare these with independent expectations, such as which repository and which protected ref should feed a release. Nothing in the attestation shows that those inputs were reviewed or benign.

The registries state the limit directly. npm says provenance “does not guarantee the package has no malicious code”.53 PyPI says a valid signature “conveys a proof of access to that identity while the package was built”.54

The cases on the SLSA threat model

SLSA v1.0 groups threats into source (A to C), dependency (D), and build and distribution (E to H), and states that “SLSA v1.0 does not address source threats”.55 Version 1.2 adds a Source track.56 The mapping below uses v1.0’s lettering.

  • Source threats (A, B): tensorlake. The release came from the project’s own workflow and repository, so it passes signature verification and checks on the expected workflow and repository.25 A policy that also required the source revision to have passed independent review, such as a protected-branch review that the direct pushes skipped, could reject it. That is the kind of control the v1.2 Source track addresses.565
  • Build from modified source (C): litellm’s images. SLSA’s example for “Build from unofficial fork of code” reads: “Verifier rejects because the source location does not match.”55 StepSecurity found the image provenance naming Berri-AI/litellm.13 A verifier that checks the recorded source repository against BerriAI/litellm would reject those images. One that checks only the signer workflow would not, because the signer was BerriAI’s own release workflow. This applies to the Docker image attestations StepSecurity examined. The sources read here do not establish what the PyPI wheels’ attestations recorded.
  • Compromise build process (E): Ultralytics. The cache poisoning matches SLSA’s “Poison the build cache”.5550 In Nx, a workflow compromise was used to steal a token, and the publish then happened outside the pipeline.19
  • Upload modified package (F): agent-framework and Ultralytics’ second round. SLSA’s mitigation for “Upload package without provenance” is a verifier that requires provenance.55 Such a policy rejects an unattested release even when the earlier history is unknown. Knowing that earlier releases were attested shows whether the absence was a regression. StepSecurity says the agent-framework baseline is unresolved.31
  • Compromise package registry (G): Hex.pm, as exposure. Threat G is unauthorized modification at the registry, which an infrastructure compromise like this one can enable. Hex found no evidence of such modification within its checks, and its report notes that the registry signing key was potentially readable and that some changes and reads would not be visible to those checks.755

For the npm worm waves, the sources read here do not give per-release attestation data, so it cannot be said which of their versions departed from an attested baseline.

A worked check

The commands below come from the tools’ documentation; the npm commands are as documented for npm v12. They were not run against the incident artifacts for this article, so no output is shown. Running them in a clean environment with no secrets reduces what a malicious package could expose during the check, though anything readable in that environment remains exposed.

# npm: install from the lockfile without running lifecycle scripts, then audit
npm ci --ignore-scripts
npm audit signatures

npm ci installs only from an existing lockfile and exits with an error rather than updating it.40 --ignore-scripts stops pre- and post-scripts from running.40 npm audit signatures verifies registry signatures and also “the provenance attestations of downloaded packages”.57 For registry signatures it is strict: “The CLI will error if packages don’t have signatures and if the package registry supports signatures”.58 For provenance it verifies attestations that exist. It does not require one, and it does not compare against earlier releases, so requiring provenance needs a separate rule. tensorlake@0.5.144 carried valid provenance from the real repository and workflow, so on the maintainers’ account it would have passed this check.25 A requirement that provenance persist has to be enforced separately. pnpm’s trustPolicy: no-downgrade rejects a package “if its trust level has decreased compared to previous releases”. It compares levels of trust evidence and does not pin a source repository.59

# PyPI: verify a wheel against the repository you expect
pypi-attestations verify pypi --repository https://github.com/OWNER/REPO <wheel URL>

PyPI’s documentation describes this as fetching the file and its provenance through the Integrity API, checking that the trusted publisher matches --repository, and verifying the signature.60 The --repository value is the consumer’s policy. A wheel with no provenance cannot pass, and a wheel published from a different repository fails the identity match. Both are policy rejections, not signature errors. Neither would catch a malicious release built from the expected repository.

# GitHub artifact attestations (here, a container image)
gh attestation verify oci://IMAGE@sha256:DIGEST \
  --repo OWNER/REPO \
  --signer-workflow OWNER/RELEASE-REPO/.github/workflows/release.yml \
  --source-ref refs/tags/vX.Y.Z \
  --deny-self-hosted-runners

This command applies only to GitHub artifact attestations. It enforces the SLSA provenance predicate type by default and validates identity against the certificate’s repository, owner and subject-alternative-name fields. The other flags narrow the policy.52 Catching a litellm-style build needs a check on the recorded source repository. Using --signer-workflow alone would accept a genuine workflow that had been given a different input. The manual also warns that with bundled or OCI-fetched attestations it “cannot detect whether the repository or owner has since been renamed”.52 That is a name-binding weakness comparable to the one Bloom found in npm’s trusted publishing. It is a different mechanism.44

Consumer-side controls and the evidence for each

Lockfiles and hash checking

A frozen install cannot pick up a newly published version. The risk moves to whenever the lockfile is refreshed, and the lockfile protects only against versions published after it was last trusted. StepSecurity notes that many litellm users had an open-ended litellm>= constraint, so “a fresh install or lockfile refresh would have picked up 1.107.0 as soon as it was published”.13 pip’s hash-checking mode (--require-hashes, or any --hash option) refuses any file whose hash is not in the requirements.61 Tradeoff: someone has to own lockfile refreshes as a reviewed change.

Install-script restrictions

pnpm 10.0.0 (7 January 2025) and npm v12 (July 2026) both stopped running dependency lifecycle scripts unless the package is allowlisted.629 Shai-Hulud, Sha1-Hulud, Nx and tensorlake all executed through preinstall or postinstall, so on a client with these defaults, and with no prior approval for the compromised package, their install-time step would not have run. That is an inference from the mechanism, not a measured prevention. chalk, MemTensor, litellm and agent-framework ran in a browser, at plugin start or at Python startup, where these settings do not apply. StepSecurity’s MemTensor analysis: “A successful installation with scripts disabled does not make subsequent use safe.”6 Tradeoff: native modules need build scripts. Both tools therefore use allowlists, and pnpm’s strictDepBuilds fails the install when a build is not approved, so a skipped build cannot go unnoticed.59 The February 2026 --allow-git notice also shows that --ignore-scripts did not cover every install-time code path.38

Release-age delays

pnpm’s minimumReleaseAge is set in minutes, and 1440 is one day.63 uv’s exclude-newer takes a timestamp or a duration such as “24 hours” or “P7D”, compared against each file’s upload time.64 Renovate’s minimumReleaseAge adds a pending status check until a version has aged. Whether the pull request waits too depends on configuration: with prCreation="not-pending" and strict filtering, no branch is created until the period has passed.65 Dependabot applies a three-day default cooldown to version updates for the package managers listed in its reference, and the cooldown does not apply to security updates.66 pnpm’s justification is that malicious versions are, “In most cases”, removed “within an hour”.63

Three cases have end times from the registry or maintainer records: agent-framework was quarantined after 31 and 8 minutes;31 litellm’s wheels were quarantined by 13:23 UTC, an upper bound of about 1 hour 43 minutes;29 and the main nx package was removed about 4 hours 12 minutes after its first malicious release.19 tensorlake’s maintainers report a window ending at 02:54 UTC, about 1 hour 40 minutes, but StepSecurity reports it could still download the version and gives no timestamp that resolves the difference.255 Only agent-framework fits “within an hour”. A one-day delay at resolution time against the primary index would have screened those three windows, and tensorlake’s if the maintainers’ end time holds, assuming accurate timestamps, no exceptions for the package and no mirror serving stale files. A one-day delay is a policy choice derived from these cases; it gives no protection against a malicious version that stays available longer than a day. The November 2025 worm wave is right-censored: about 15 versions were still listed on 27 November, and the sources give no removal date, so neither a one-day nor a seven-day delay can be assessed for those stragglers.4 MemTensor’s removal is bounded only by 30 October.27

Where the delay sits matters. PR bots delay a proposed change. A CI job resolving litellm>= from scratch bypasses them, which StepSecurity points out about its own cooldown check, adding that “A version aging out of cooldown is not evidence that it is safe.”31 Resolver settings in pnpm and uv cover fresh resolution. Neither covers a container tag such as litellm’s latest.28

Choosing a delay is a tradeoff against the cost of waiting for fixes. One day covers the measured windows above. Longer delays add margin against slow detection, but every ordinary fix waits as long. Security updates need a separate path: Dependabot already exempts them, and pnpm’s minimumReleaseAgeExclude lets a team name packages to fetch immediately.6663 Each exception should be recorded with its reason and removed once the fixed version has aged, so that the exception list does not become a permanent bypass.

Package firewalls, egress and secret scope

A package firewall that blocks known-malicious versions is only as fast as the feed behind it. StepSecurity describes its own registry proxy as following a continuously updated block list. A version not yet on the list passes.5 Mirrors can also outlast the registry: StepSecurity reports mirrors serving litellm 1.107.0 after PyPI removed it, and Nx asked operators of internal registries to purge versions themselves.1319

Destinations differed by stage. Before the litellm release, the maintainers confirm that the attacker’s throwaway CI workflows posted stolen tokens to webhook.site.29 The distributed litellm package itself was built to send its haul to a different host, litellm.dev, by StepSecurity’s analysis.13 The September 2025 payload’s injected workflow posted repository secrets to a webhook.site URL, and the payload also uploaded harvested credentials to public GitHub repositories.223 The agent-framework code, by static analysis, posts to webhook.site.14 Nx reports its token went to “an unfamiliar webhook”.19 CISA recommended blocking webhook.site.3 Egress controls on a runner can restrict particular destinations: an allowlist limited to the registries and stores a job needs would refuse such hosts. They do not help when exfiltration goes to a permitted service such as GitHub, as in the Shai-Hulud and s1ngularity repositories, or when the payload runs on a developer machine, which is where tensorlake’s payload aimed.215

Secret scope decides what a successful execution yields. The agent-framework payload’s requests for GitHub OIDC tokens can only succeed in jobs granted id-token: write.31 Scoping GITHUB_TOKEN permissions per job limits what a workflow injection like Nx’s can do.20 Long-lived cloud credentials are treated in Standing keys.

What to do differently

For a consuming team

These are inferences from the cases, not measured prevention rates.

  • Freeze resolution and delay it where it happens. Install from hash-checked lockfiles. Set a resolution-time delay of at least one day in pnpm or uv, and keep a short, dated list of exceptions for security fixes. One day covers the three windows with registry or maintainer end times, and tensorlake’s if its reported end time holds. It does nothing for versions that stay available longer.
  • Treat CPython startup as execution. For Python, install flags do not stop a .pth trigger. Not installing the bad version is the main defence. Startup configuration (-S disables site) and runtime isolation limit what an installed hook can run or reach. Watch site-packages for new .pth, .start and sitecustomize.py files. Microsoft advises rebuilding from a clean image rather than downgrading in place.3012
  • Require provenance where it existed before, and pin its source. A rule that rejects unattested releases of previously attested packages would have caught Ultralytics’ second round. A rule that pins the source repository would have caught litellm’s images. Neither catches tensorlake. That needs evidence that the source revision passed independent review.
  • Limit CI egress and token scope per job.
  • Plan incident steps for destructive payloads. For tensorlake the maintainers’ order was to isolate the machine, remove the monitor, then rotate from a clean machine.25 After any registry removal, purge internal mirrors by hash.13

For a maintaining team

  • Close the token path after adopting trusted publishing. Select “disallow tokens”.43 Ultralytics’ second round came through a leftover API token.50
  • Use stage-only trusted publishing. npm documents a configuration that allows npm stage publish but not npm publish, so that a maintainer must approve each version with two-factor authentication.43 This blocks a compromised workflow from publishing directly only if direct publishing is closed and the approver’s account is separate from what the attacker controls. Tensorlake’s advisory names a compromised maintainer account, so staging alone may not have helped there.25
  • Protect the release workflow’s inputs. At litellm, an owner token overrode branch protection on the release workflow five seconds after a push with another token was rejected, and the approval rule had been relaxed that week.29 Require review for release-workflow changes, keep owner tokens off services that can leak them, and treat relaxing an approval rule as a security change.
  • Separate untrusted triggers from publishing. Nx’s entry was untrusted pull-request metadata injected into a privileged pull_request_target workflow.19 GitHub’s June 2026 checkout default covers a different pattern, checking out fork code. Its read-only cache for untrusted triggers addresses the Ultralytics route.3950 Keep untrusted input away from any workflow that holds or can trigger publishing credentials.
  • Revoke leaked secrets even after deletion. litellm’s chain started from a key that stayed valid after the file was removed.29
  • Audit trusted-publisher bindings after renames and transfers.44

Signed vendor updates, where one company holds the key and builds in private, fail in different ways, discussed in When the official download is the malware.

Conclusion

A package worm replicates when an infected environment that has, or can reach, publishing authority uses it to publish another version, and that version runs somewhere else. On npm, Shai-Hulud’s two waves did this with lifecycle scripts and stolen tokens. The registry has since removed classic tokens, shortened sessions, turned dependency scripts off by default in v12, added staged publishing and scanned staged releases before approval. The 2026 cases showed no demonstrated replication but used other paths. In Python, an executable .pth line runs when CPython’s site processes the directory at startup. A project’s own workflow built tensorlake from a poisoned branch, and litellm’s images from a fork. agent-framework’s attacker kept some publishing access after the first quarantine, and a registry server was breached without evidence of package tampering in Hex’s checks. Provenance lets a verifier check a digest and a signing workflow’s identity, and compare the workflow’s recorded source with what it expects. It is separate from the registry’s decision to accept a publish. A policy that requires attestations, or pins the source repository, would have rejected some of these releases. A release built from an unreviewed commit on the expected branch needs evidence that the source was reviewed. For consumers, the cases support hash-checked lockfiles, a resolution-time delay of at least a day, scripts off by default, and limits on CI egress and token scope, each with the limits described above. For maintainers, they support disallowing tokens after trusted publishing, stage-only publishing with an independent approver, and protecting release-workflow inputs as carefully as release credentials.

Footnotes

  1. npmrc: The npm config files, npm Docs (CLI v12), accessed 1 December 2026. https://docs.npmjs.com/cli/v12/configuring-npm/npmrc/ (opens in a new tab) ↩1 ↩2
  2. Our plan for a more secure npm supply chain, GitHub Blog, 22 September 2025. https://github.blog/security/supply-chain-security/our-plan-for-a-more-secure-npm-supply-chain/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  3. Widespread Supply Chain Compromise Impacting npm Ecosystem, CISA alert, 23 September 2025. https://www.cisa.gov/news-events/alerts/2025/09/23/widespread-supply-chain-compromise-impacting-npm-ecosystem (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  4. Shai-Hulud 2.0: ongoing supply chain attack, Wiz blog (vendor analysis), 24 November 2025, updated to 27 November 2025. https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  5. Tensorlake npm Package Compromised: A Worm With a Hostage Token That Wipes Your Machine If You Revoke It, StepSecurity blog (vendor analysis), 8 October 2026. https://www.stepsecurity.io/blog/tensorlake-npm-compromised-hostage-token-worm (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  6. Sckit Supply Chain Worm Hits MemTensor npm and PyPI scopes, StepSecurity blog (vendor analysis), 2026, accessed 1 December 2026. https://www.stepsecurity.io/blog/sckit-supply-chain-worm-hits-memtensor-npm-pypi-scopes (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  7. Peter Ullrich, Jonatan Männchen and Eric Meadows-Jönsson, Security incident on hex.pm, Hex.pm blog (incident report), November 2026. https://hex.pm/blog/security-incident-on-hexpm (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  8. scripts: How npm handles the “scripts” field, npm Docs (CLI v12), accessed 1 December 2026. https://docs.npmjs.com/cli/v12/using-npm/scripts/ (opens in a new tab) ↩
  9. npm install-time security and GAT bypass2fa deprecation, GitHub Changelog, 8 July 2026 (page now marked retired). https://github.blog/changelog/2026-07-08-npm-install-time-security-and-gat-bypass2fa-deprecation (opens in a new tab) ↩1 ↩2 ↩3
  10. Strengthening supply chain security: Preparing for the next malware campaign, GitHub Blog, 23 December 2025. https://github.blog/security/supply-chain-security/strengthening-supply-chain-security-preparing-for-the-next-malware-campaign/ (opens in a new tab) ↩
  11. Build System Interface, pip documentation, accessed 1 December 2026. https://pip.pypa.io/en/stable/reference/build-system/ (opens in a new tab) ↩
  12. site: Site-specific configuration hook, Python 3.15 documentation, accessed 1 December 2026. https://docs.python.org/3/library/site.html (opens in a new tab) ↩1 ↩2 ↩3
  13. litellm 1.107.0 Compromised on PyPI and Docker: Credential Stealer and Hourly Remote Code Loader, StepSecurity blog (vendor analysis), October 2026, accessed 1 December 2026. https://www.stepsecurity.io/blog/litellm-1-107-0-compromised-pypi-backdoored-wheels-credential-stealer (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  14. PYSEC-2026-4388: agent-framework 1.26.1 and 1.26.2 contain credential-stealing code, PyPA advisory database via OSV, November 2026. https://osv.dev/vulnerability/PYSEC-2026-4388 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  15. debug 4.4.2 malware advisory, GHSA-4x49-vf9v-38px, GitHub Advisory Database (maintainer advisory), September 2025. https://github.com/advisories/GHSA-4x49-vf9v-38px (opens in a new tab) ↩1 ↩2
  16. Dev caught in phishing net, 18 npm packages compromised, The Register (trade press), 8 September 2025. https://www.theregister.com/security/2025/09/08/dev-caught-in-phishing-net-18-npm-packages-compromised/1504651 (opens in a new tab) ↩1 ↩2
  17. npm debug and chalk packages compromised, Aikido blog (vendor analysis), 8 September 2025. https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised (opens in a new tab) ↩1 ↩2
  18. 20 popular npm packages compromised: chalk, debug, strip-ansi, color-convert, wrap-ansi, StepSecurity blog (vendor analysis), September 2025. https://www.stepsecurity.io/blog/20-popular-npm-packages-compromised-chalk-debug-strip-ansi-color-convert-wrap-ansi (opens in a new tab) ↩
  19. Malicious versions of Nx and some supporting plugins were published, GHSA-cxm3-wv7p-598c, nrwl/nx security advisory (project post-mortem), 27 August 2025, updated. https://github.com/nrwl/nx/security/advisories/GHSA-cxm3-wv7p-598c (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15
  20. Workflow syntax for GitHub Actions: permissions, GitHub Docs, accessed 1 December 2026. https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax (opens in a new tab) ↩1 ↩2
  21. s1ngularity: supply chain attack leaks secrets on GitHub, Wiz blog (vendor analysis), 27 August 2025, updated 29 August 2025. https://www.wiz.io/blog/s1ngularity-supply-chain-attack (opens in a new tab) ↩1 ↩2
  22. Shai-Hulud: Self-Replicating Worm Compromises 500+ NPM Packages, StepSecurity blog (vendor analysis), 15 September 2025, updated. https://www.stepsecurity.io/blog/ctrl-tinycolor-and-40-npm-packages-compromised (opens in a new tab) ↩1 ↩2 ↩3
  23. Updated and Ongoing Supply Chain Attack Targets CrowdStrike npm Packages, Socket blog (vendor analysis), 16 September 2025. https://socket.dev/blog/ongoing-supply-chain-attack-targets-crowdstrike-npm-packages (opens in a new tab) ↩
  24. npm supply chain attack (Shai-Hulud 2.0), Unit 42, Palo Alto Networks (vendor analysis), 25 November 2025. https://unit42.paloaltonetworks.com/npm-supply-chain-attack/ (opens in a new tab) ↩1 ↩2
  25. Malicious tensorlake@0.5.144 published to npm, GHSA-8g63-53c9-65j2, tensorlakeai/tensorlake security advisory (maintainer advisory), 8 October 2026. https://github.com/tensorlakeai/tensorlake/security/advisories/GHSA-8g63-53c9-65j2 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
  26. npm package tensorlake@0.5.144 contains malicious preinstall payload, issue #1014, tensorlakeai/tensorlake on GitHub, 8 to 9 October 2026. https://github.com/tensorlakeai/tensorlake/issues/1014 (opens in a new tab) ↩
  27. Malicious versions 0.1.21 and 0.1.23 published to npm, issue #173, MemTensor/MemOS-Cloud-OpenClaw-Plugin on GitHub (external report, closed by a collaborator on 30 October 2026), 23 September 2026. https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin/issues/173 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  28. Contained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised, LiteLLM blog (maintainer incident notice), 21 October 2026, updated to 15 November 2026. https://docs.litellm.ai/blog/security-incident-oct-21-2026 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  29. The attack chain behind the v1.107.0 LiteLLM release, LiteLLM blog (maintainer reconstruction), 23 October 2026. https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  30. Microsoft Agent Framework repository update, Microsoft Agent Framework blog, 25 November 2026. https://devblogs.microsoft.com/agent-framework/microsoft-agent-framework-repository-update/ (opens in a new tab) ↩1 ↩2 ↩3
  31. Microsoft agent-framework PyPI package compromised, StepSecurity blog (vendor analysis), November 2026, accessed 1 December 2026. https://www.stepsecurity.io/blog/microsoft-agent-framework-pypi-package-compromised (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  32. OpenID Connect, GitHub Docs (Actions security concepts), accessed 1 December 2026. https://docs.github.com/en/actions/concepts/security/openid-connect (opens in a new tab) ↩
  33. hexpm security advisory GHSA-9pmm-hf4r-27pg (CVE-2026-129514), GitHub, 24 November 2026. https://github.com/hexpm/hexpm/security/advisories/GHSA-9pmm-hf4r-27pg (opens in a new tab) ↩1 ↩2
  34. Swati Khandelwal, Hackers Exploited CVSS 10.0 Hex.pm RCE Flaw to Compromise 6 Package Registry Servers, The Hacker News (trade press), 25 November 2026. https://thehackernews.com/2026/11/hackers-exploited-cvss-100-hexpm-rce.html (opens in a new tab) ↩
  35. William Woodruff, Facundo Tuesca and Dustin Ingram, PEP 740: Index support for digital attestations, Python Enhancement Proposals, created 8 January 2024 (Final). https://peps.python.org/pep-0740/ (opens in a new tab) ↩
  36. Strengthening npm security: Important changes to authentication and token management, GitHub Changelog, 29 September 2025. https://github.blog/changelog/2025-09-29-strengthening-npm-security-important-changes-to-authentication-and-token-management/ (opens in a new tab) ↩
  37. npm classic tokens revoked, session-based auth and CLI token management now available, GitHub Changelog, 9 December 2025. https://github.blog/changelog/2025-12-09-npm-classic-tokens-revoked-session-based-auth-and-cli-token-management-now-available/ (opens in a new tab) ↩
  38. npm bulk trusted publishing config and script security now generally available, GitHub Changelog, 18 February 2026. https://github.blog/changelog/2026-02-18-npm-bulk-trusted-publishing-config-and-script-security-now-generally-available/ (opens in a new tab) ↩1 ↩2
  39. Disrupting supply chain attacks on npm and GitHub Actions, GitHub Blog, 28 July 2026. https://github.blog/security/supply-chain-security/disrupting-supply-chain-attacks-on-npm-and-github-actions/ (opens in a new tab) ↩1 ↩2 ↩3
  40. npm-ci, npm Docs (CLI v12), accessed 1 December 2026. https://docs.npmjs.com/cli/v12/commands/npm-ci/ (opens in a new tab) ↩1 ↩2 ↩3
  41. Stage-only npm tokens for safer automation, GitHub Changelog, 18 September 2026. https://github.blog/changelog/2026-09-18-stage-only-npm-tokens-for-safer-automation/ (opens in a new tab) ↩
  42. Multiple trusted publishing configurations for npm, GitHub Changelog, 3 September 2026. https://github.blog/changelog/2026-09-03-multiple-trusted-publishing-configurations-for-npm (opens in a new tab) ↩
  43. Trusted publishing for npm packages, npm Docs, accessed 1 December 2026. https://docs.npmjs.com/trusted-publishers (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  44. SlugFest: Millions of AI Agents Install npm Packages Exposed to Malicious Takeover through GitHub, Bloom Security blog (researcher disclosure), 2026, accessed 1 December 2026. https://bloom.security/blog/slugfest-millions-of-ai-agents-download-exposed-npm-packages (opens in a new tab) ↩1 ↩2 ↩3
  45. Unvalidated npm trusted publishing configurations now expire, GitHub Changelog, 2 October 2026. https://github.blog/changelog/2026-10-02-unvalidated-npm-trusted-publishing-configurations-now-expire/ (opens in a new tab) ↩
  46. Introducing ‘Trusted Publishers’, The Python Package Index Blog, 20 April 2023. https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/ (opens in a new tab) ↩
  47. Trusted Publishers, PyPI Docs, accessed 1 December 2026. https://docs.pypi.org/trusted-publishers/ (opens in a new tab) ↩
  48. PyPI now supports digital attestations, The Python Package Index Blog, 14 November 2024. https://blog.pypi.org/posts/2024-11-14-pypi-now-supports-digital-attestations/ (opens in a new tab) ↩
  49. Mike Fiedler, Project Quarantine, The Python Package Index Blog, 30 December 2024. https://blog.pypi.org/posts/2024-12-30-quarantine/ (opens in a new tab) ↩
  50. Seth Larson, Supply-chain attack analysis: Ultralytics, The Python Package Index Blog, 11 December 2024. https://blog.pypi.org/posts/2024-12-11-ultralytics-attack-analysis/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  51. Introducing npm package provenance, GitHub Blog, 19 April 2023. https://github.blog/security/supply-chain-security/introducing-npm-package-provenance/ (opens in a new tab) ↩
  52. gh attestation verify, GitHub CLI manual, accessed 1 December 2026. https://cli.github.com/manual/gh_attestation_verify (opens in a new tab) ↩1 ↩2 ↩3
  53. Generating provenance statements, npm Docs, accessed 1 December 2026. https://docs.npmjs.com/generating-provenance-statements (opens in a new tab) ↩
  54. Attestations: Security Model and Considerations, PyPI Docs, accessed 1 December 2026. https://docs.pypi.org/attestations/security-model/ (opens in a new tab) ↩
  55. Threats and mitigations, SLSA specification v1.0, accessed 1 December 2026. https://slsa.dev/spec/v1.0/threats (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  56. SLSA specification v1.2 (Build and Source tracks), accessed 1 December 2026. https://slsa.dev/spec/v1.2/ (opens in a new tab) ↩1 ↩2
  57. npm-audit, npm Docs (CLI v12), accessed 1 December 2026. https://docs.npmjs.com/cli/v12/commands/npm-audit/ (opens in a new tab) ↩
  58. Verifying ECDSA registry signatures, npm Docs, accessed 1 December 2026. https://docs.npmjs.com/verifying-registry-signatures (opens in a new tab) ↩
  59. Mitigating supply chain attacks, pnpm documentation, accessed 1 December 2026. https://pnpm.io/supply-chain-security (opens in a new tab) ↩1 ↩2
  60. Consuming attestations, PyPI Docs, accessed 1 December 2026. https://docs.pypi.org/attestations/consuming-attestations/ (opens in a new tab) ↩
  61. Secure installs: hash-checking mode, pip documentation, accessed 1 December 2026. https://pip.pypa.io/en/stable/topics/secure-installs/ (opens in a new tab) ↩
  62. pnpm v10.0.0 release notes, pnpm on GitHub, 7 January 2025. https://github.com/pnpm/pnpm/releases/tag/v10.0.0 (opens in a new tab) ↩
  63. pnpm 10.16 release notes, pnpm blog, accessed 1 December 2026. https://pnpm.io/blog/releases/10.16 (opens in a new tab) ↩1 ↩2 ↩3
  64. Settings reference: exclude-newer, uv documentation, Astral, accessed 1 December 2026. https://docs.astral.sh/uv/reference/settings/ (opens in a new tab) ↩
  65. Configuration options: minimumReleaseAge, Renovate documentation, accessed 1 December 2026. https://docs.renovatebot.com/configuration-options/ (opens in a new tab) ↩
  66. Dependabot options reference: cooldown, GitHub Docs, accessed 1 December 2026. https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference (opens in a new tab) ↩1 ↩2