← Lab /Security & privacy

Four popular asyncapi npm packages were compromised via a CI credential theft

A sophisticated threat actor compromised four @asyncapi npm packages by stealing CI credentials and publishing malicious versions.

Security & privacy Datadog Security Labs 14 Jul 2026 Incident analysis Real-world evidence

Published as “Compromised AsyncAPI npm packages: inside a CI supply-chain attack”

Why it matters

Demonstrates that CI workflow misconfigurations can enable large-scale supply-chain compromises of npm packages.

Summary

The researchers discovered that on July 14, 2026 four npm packages in the @asyncapi namespace were maliciously updated to steal credentials. The attacker injected code through a GitHub commit, leveraged a vulnerable pull_request_target workflow to exfiltrate GitHub and Netlify tokens, and used the compromised asyncapi-bot credentials to publish the backdoored packages via the normal CI pipeline. The malicious payload fetched a second stage from IPFS, decrypted a configuration with ECC keys, and exfiltrated data to attacker-controlled servers. Evidence includes provenance logs, GitHub activity records, and the observed 3 million weekly downloads of the affected packages.

What they found 2

  1. Four @asyncapi npm packages with over 3 million weekly downloads were compromised.

    “On July 14, 2026, four npm packages in the @asyncapi namespace, totaling over 3 million weekly downloads, were compromised to distribute malicious code.”

  2. The attacker injected malicious code via a GitHub commit that stole credentials and exfiltrated them.

    “The attacker injected the code through a GitHub commit. It steals credentials from the infected machine and exfiltrates them to a remote, attacker-controlled server.”

Caveats 1

  • The GitHub Action run 29313420558 named in the provenance links to a workflow run that no longer exists.

What’s new here 3

  • Identifies a supply-chain compromise of four widely used asyncapi npm packages.
  • Shows how a pull_request_target misconfiguration in GitHub Actions enabled credential theft.
  • Details the second-stage payload architecture, including ECC validation and fallback C2 channels.