← Lab /Security & privacy

Attacker stole AsyncAPI bot PAT via GitHub Actions PR, publishing malicious npm packages

A single malicious pull request exploited a misconfigured GitHub Actions workflow to steal a highly privileged Personal Access Token, enabling the publication of malicious npm packages that have been downloaded over three million times per week.

Security & privacy Wiz Research 14 Jul 2026 Disclosure Real-world evidence

Published as “M-Red-Team: AsyncAPI Supply Chain Compromise via GitHub Actions”

Why it matters

Supply chain attacks can arise from untrusted pull-request code execution in CI/CD pipelines, underscoring the need for safe workflow patterns and secret protection.

Summary

The researchers observed that on July 14, 2026 an attacker opened 37 pull requests to the asyncapi/generator repository, with one PR exploiting a pull_request_target workflow to steal a privileged GitHub PAT. Using the stolen token, the attacker published four malicious npm packages under the @asyncapi namespace, which together receive more than three million downloads each week. The malicious payload runs on import/require, establishes a multi-stage infection chain, and exfiltrates developer credentials. Wiz detected the activity and added hash-based detection, but the write-up notes that attribution remains uncertain.

What they found 2

  1. A single PR exploited a misconfigured GitHub Actions workflow to steal a privileged PAT.

    “On July 14, 2026, an attacker opened 37 pull requests to the AsyncAPI generator repository. Almost all attempted to add a fake charity donation page. Camouflage in the noise, a single PR exploited a misconfigured GitHub Actions workflow to steal a highly privileged Personal Access Token.”

  2. The workflow used pull_request_target and checked out PR code, exposing secrets to attacker-controlled code.

    “The asyncapi/generator repository contained a workflow file that used pull_request_target to trigger on pull requests, but then checked out the pull request's code rather than the base branch.”

Caveats 2

  • At this time, we are not making any definitive attribution.
  • The authors do not make definitive attribution of the attacker.

What’s new here 4

  • First public report of a "pwn request" attack leveraging pull_request_target in GitHub Actions.
  • Discovery of malicious npm packages under the @asyncapi namespace with a multi-stage malware chain.
  • Evidence that the compromised packages achieve over three million weekly downloads.
  • Demonstration that a pending workflow fix could have prevented the breach.