TL;DR: The Miasma worm turned legitimate maintainer credentials, OIDC tokens and SLSA-proven package releases into a supply chain compromise path that bypassed conventional scanners, according to Cloudsmith analysis. Trust in signed updates is insufficient when attackers can inherit publisher identity and reuse normal release workflows.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Cloudsmith's blog post: The Miasma worm abused legitimate maintainer access, OIDC token flows and signed package releases to push malicious updates through trusted supply chain paths.
Why it matters: Security and identity teams need to treat publisher credentials, CI identities and dependency admission as one control plane because trusted release workflows can be weaponised at scale.
Context
Open-source supply chain compromise happens when an attacker can reuse legitimate publishing or build identities to move malicious code through normal release channels. In this case, the weak point was not a single package flaw, but the trust boundary between maintainer identity, CI token issuance and downstream consumers. Where that boundary is loose, signed updates can still be malicious. That makes the problem a governance issue as much as a detection issue.
For identity and NHI programmes, the important shift is that maintainer accounts, GitHub OIDC tokens and CI/CD secrets behave like privileged machine identities once they can publish artifacts or trigger builds. CI/CD pipeline identity security becomes relevant because the attack path depends on workflow trust, not just source code integrity. This pattern is typical of modern supply chain attacks, not an edge case.
Key questions
Q: How do supply chain worms spread through package registries?
A: Supply chain worms spread when a compromised maintainer, token or build workflow can publish malicious packages through trusted channels. The malware then uses install scripts, poisoned releases or cloned repositories to reach the next environment. The core defence is to break recursive trust at publish time, not just inspect packages after they are live.
Q: Why do signed package releases still get flagged as risky?
A: Signed package releases can still be risky because a valid signature only proves the package came from a trusted key, not that the code is safe, intended, or uncompromised after signing. Risks remain from stolen signing keys, malicious updates, dependency confusion, poisoned build pipelines, and vulnerable transitive dependencies. Security teams also flag packages when provenance, maintainer reputation, or build integrity is weak.
Q: How should security teams govern OIDC and workload tokens in release pipelines?
A: Treat OIDC and other workload tokens as privileged identities with explicit audience, repository, and job restrictions. Do not grant broad federation by default. Pair token scoping with workload segregation, so a compromised job cannot reuse its identity to publish code, access cloud services, or move into adjacent pipelines.
Q: How should security teams prevent malicious packages from running in build environments?
A: Start by treating package installation as an execution event, not a file download. Verify the exact package name and publisher, route dependencies through controlled registries, pin versions, and block unnecessary lifecycle scripts. Then isolate build jobs and remove broad secrets so a compromised install cannot immediately reach cloud, publishing, or vault credentials.
Technical breakdown
How maintainer identity becomes a publish path
The first stage is account or token compromise, after which the attacker can act as a legitimate publisher. In this campaign, stolen maintainer access allowed malicious commits and workflow changes to run inside the normal release process. Once a build identity is trusted to request OIDC tokens, the release system stops distinguishing between an authorised maintainer and a hostile actor using the same credentials. That is why package signing alone is not enough when the signing and publishing path itself is controlled by the attacker. See the CI/CD Pipeline Identity Security Guide.
Practical implication: Treat publishing credentials and workflow-triggering identities as high-value assets with separate approval and rotation controls.
Why signed provenance can still fail
Signed provenance shows that a package was built through a defined process, but it does not prove the process was trustworthy. If a compromised workflow requests valid tokens and produces a release from an infected repository state, the attestation can be technically correct and still represent malicious content. This is the core limitation exposed here: provenance validates lineage, not intent. Security teams need to understand where attestation begins and where repository trust, maintainer trust and build integrity must be enforced separately. See the AI Supply Chain Security and AI-BOM Guide.
Practical implication: Validate provenance together with repository integrity, token scope and change-control signals before accepting a release.
How self-propagating supply chain worms spread
A self-propagating worm in the software supply chain uses one compromised package or repo to reach the next. It may harvest credentials, inject install-time scripts, poison downstream releases, or plant payloads that execute when developers clone or install the package. Because each infection can produce a unique payload, hash-based detection is weak. The real pattern is recursive trust abuse: the malware repeatedly turns one trusted dependency or maintainer relationship into another entry point. Read Self Propagating Supply Chain Worms.
Practical implication: Hunt for recursive trust paths in package publishing, dependency install scripts and CI/CD triggers.
Threat narrative
Attacker objective: The attacker aims to turn trusted software publishing into a self-spreading credential-theft and package-poisoning channel that reaches many downstream environments.
- Entry begins with compromise of a maintainer account or publishing workflow, giving the attacker legitimate access to package release mechanics.
- Credential abuse follows when GitHub OIDC tokens, CI secrets or maintainer credentials are used to publish malicious updates through trusted channels.
- Escalation occurs as the worm propagates into additional repositories, developer environments and cloud identity stores accessed by infected build systems.
- Impact is the release of malicious packages and the theft of downstream developer and cloud credentials across multiple ecosystems.
Breaches seen in the wild
- Miasma and Hades Supply Chain Worms: Self-propagating supply chain worms Miasma and Hades compromise npm, PyPI, and Azure credential stores.
- reviewdog Action compromise 2025: A stolen maintainer token poisoned reviewdog/action-setup, leaking CI secrets including the tj-actions bot token used in the next attack.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Trusted publishing has become an identity problem, not just a software integrity problem. Miasma shows that when maintainer credentials and workflow tokens are enough to publish, the attacker does not need to break the platform. They only need to inherit the publisher's identity and reuse its normal permissions. That shifts the control question from package reputation to identity lifecycle and workflow trust.
Signed provenance is necessary, but it is not a trust guarantee. SLSA-style attestations can confirm that a build followed a process, yet still be produced by a compromised maintainer path. The practical failure is assuming that valid provenance equals safe provenance. In supply chain governance, the trust anchor has moved upstream into repository access, token issuance and workflow integrity.
Registry security now depends on containment between developer identity and production release authority. When the same people, bots or CI systems can both test and publish, a compromise in one tier becomes an enterprise-wide distribution event. That is why identity-segmented release paths matter more than broader detection claims. Treat publishing rights as privileged access, not routine developer convenience.
Supply chain worms expose a governance gap in how organisations model machine trust. The attack worked because systems treated automated releases, OIDC federation and signed artifacts as sufficiently self-authenticating. They are not. The named concept here is recursive trust abuse: one trusted workflow repeatedly authorises the next malicious step until the compromise propagates across multiple ecosystems. Practitioners need to break the chain at each trust handoff.
From our research library:
- Breaches involving third parties rose to 48% of all breaches, a 60% increase on the previous year, according to Verizon's 2026 Data Breach Investigations Report.
- Read next: AI Supply Chain Security and AI-BOM Guide
What this signals
Recursive trust abuse: supply chain defenders should name the failure mode where one trusted workflow authorises the next malicious step. That pattern is what makes package signing, maintainer trust and CI federation insufficient on their own. The right response is to govern each handoff separately, especially where release identity can cross from source control into artifact publication.
The operational signal is no longer just suspicious code. It is unexpected publishing authority, unusual workflow edits, fresh package releases from old credentials, and build systems that can request cloud or registry tokens without strong change control. Teams that watch only for malware signatures will miss the identity path that made the malware possible.
For practitioners
- Separate publishing identity from developer identity Give release systems dedicated credentials, narrow scopes and independent approval paths so a developer compromise does not automatically become a publish compromise.
- Block unreviewed workflow changes from release paths Require protected branches, reviewed workflow diffs and signed changes before any CI job can request OIDC tokens or publish packages.
- Quarantine newly published dependencies Use admission policies and cooldown windows to hold fresh packages until metadata, provenance and threat intelligence have been checked.
- Rotate every exposed maintainer and CI secret after compromise signs Assume that PATs, SSH keys, signing keys and environment secrets on impacted machines or runners are already exposed and revoke them immediately.
- Audit for install-time execution paths Review postinstall hooks, package install scripts and cloned-repo tooling that can execute before a developer intentionally runs the code.
Key takeaways
- The worm succeeded by abusing legitimate maintainer and workflow identity, which means supply chain compromise is now an identity governance problem as much as a code integrity problem.
- The campaign reached 73 repositories, showing that a single publish-path compromise can scale quickly across ecosystems and cloud-connected developer environments.
- Separating publish authority from developer identity, tightening workflow controls and quarantining new packages are the controls that would have limited the blast radius.
Related NHI Mgmt Group resources: CI/CD Pipeline Identity Security Guide · AI Supply Chain Security and AI-BOM Guide · Self Propagating Supply Chain Worms · Miasma and Hades Supply Chain Worms
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and SLSA set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | The worm abuses exposed maintainer and CI secrets to publish malicious packages. |
| NHI-03 — Vulnerable Third-Party NHI | Compromised third-party workflows and publishing identities are central to the propagation path. | |
| Recommendation — Scan build and release systems for leaked secrets and revoke exposed credentials immediately. Assess third-party publishing identities and block trust from compromised automation. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | The attack chain relies on credential theft followed by spread into adjacent repos and environments. |
| Recommendation — Map the intrusion to credential access and lateral movement to prioritise detection and containment. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Publishing and workflow permissions enabled the malicious release path. |
| Recommendation — Review CI and release entitlements so no single compromised identity can publish broadly. | ||
| SLSA | L3 — Build provenance | The campaign exploited the limits of provenance when the build path itself was compromised. |
| Recommendation — Pair provenance checks with repository integrity and workflow protection before accepting artifacts. | ||
Key terms
- Supply Chain Worm: A supply chain worm is malware that uses one compromise to propagate into adjacent packages, repositories, or automation systems. In identity terms, it becomes far more dangerous when it can harvest and replay secrets that let it publish, move, or persist without further exploitation.
- OIDC token: An OIDC token is a signed credential used in OpenID Connect to prove a user or client identity after authentication. It typically appears as an ID token, access token, or refresh token, and carries claims such as subject, issuer, audience, and expiry for validation by relying systems.
- SLSA Provenance: SLSA provenance is the build evidence that shows how a software artifact was produced, which sources were used, and which systems participated. It lets downstream consumers verify origin and integrity instead of trusting the release process on faith.
- CI/CD Pipeline Identity: The machine identity used by continuous integration and deployment systems to authenticate to code repositories, registries, and cloud environments during automated build and deployment.
Deepen your knowledge
The NHI Foundation Level course covers NHI governance, machine identity security and secrets management, and it is the industry's only accredited NHI security programme. It helps practitioners connect identity controls to release, build and runtime risk across modern software supply chains.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org