Join our Newsletter — 33% off our NHI Course

Why did AsyncAPI's release pipelines deliver Miasma RAT?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 19717
Topic starter  

TL;DR: Compromised push access let malicious AsyncAPI packages reach release through the projects' own GitHub Actions, with StepSecurity documenting valid OIDC provenance alongside the payload. Repository write access and pipeline triggers need tighter separation, or a single bad push can still ship a legitimate-looking release.

Editorial analysis by NHI Mgmt Group, based on content published by StepSecurity: “Coordinated AsyncAPI Supply Chain Attack: Miasma RAT Delivered via Compromised CI/CD Pipelines in Two Repositories”.

By the numbers:

  • Three packages in the AsyncAPI generator monorepo were published at 07:10 UTC carrying an obfuscated dropper that fires when the library is loaded, not on install.
  • All five malicious versions were unpublished, with the generator packages exposed for about 4 hours and the specs packages exposed for 2 hours 48 minutes to 3 hours 12 minutes.
  • The specs package was pulled transitively by @asyncapi/parser through a ^6.11.1 semver range and saw 2.66M downloads per week.

Key questions

Q: Why do provenance attestations not prevent malicious package releases?

A: Provenance attests to the build path, not the intent or safety of the inputs.

Q: What are the signs that a CI/CD pipeline is being abused through living-off-the-pipeline techniques?

A: Warning signs include unexpected plugin execution, tools reading configuration from the wrong location, unexplained dependency changes, unusual shell behaviour from environment variables, and secrets appearing in logs or standard output.

Q: What breaks when a release workflow trusts repository writes too much?

A: A release workflow breaks when the same push authority can also trigger publishing, because a compromised branch can produce a valid artefact chain.

Practitioner guidance

  • Tighten branch protection on release paths Require protected branches, mandatory reviews, and signed commits for any branch that can trigger package publication, including release branches and version-bump branches.
  • Separate publishing authority from repository write access Limit who can push to release-triggering branches and ensure the credential that can change code is not automatically the credential that can publish artefacts.
  • Inspect workflow-generated provenance for trigger integrity Verify that OIDC attestations are backed by approved commit sources, expected branch names, and controlled workflow files before trusting the published package.

Bottom line: The incident shows that a trusted release workflow can publish malware when repository write access is compromised before the build begins.

Glossary terms: Trusted Publishing, Provenance Attestation, CI/CD Build, Repository Write Access

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20207
 

Release provenance is not release legitimacy. This incident shows that attestation can prove a workflow executed, yet still say nothing about whether the triggering commit was authorised or safe. That distinction matters because many organisations now treat signed provenance as a substitute for release trust rather than one input into it. Practitioners should therefore evaluate commit control, branch protection, and workflow trust as a single governance chain, not as independent checks.

A few things that frame the scale:

  • 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: How should teams respond when a package publication workflow is compromised?

A: Contain the environments that installed the affected versions, then rotate any credentials those environments could access from a clean system. Rebuild from a known-good lockfile, invalidate active sessions, and review logs for publication events, GitHub API calls, cloud metadata access, and unexpected build artefacts.

👉 Read our full editorial: Compromised CI/CD pipelines turned AsyncAPI release workflows into malware



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.