Skip to main content
Mallory
← Back to News
package-repository-poisoningbuild-pipeline-compromisecredential-stealer-activitydata-exfiltration-method

OpenAPI React Query Codegen npm Releases Deliver Credential-Stealing Supply-Chain Malware

Supply Chain Risk · 9 sources · Updated 3mo ago · First seen Aug 28, 2026

OpenAPI React Query Codegen npm Releases Deliver Credential-Stealing Supply-Chain Malware

Ten malicious versions of @7nohe/openapi-react-query-codegen, a TanStack Query code generator with more than 150,000 weekly downloads, were published after an external GitHub user exploited its release workflow. The workflow accepted an exact npm-publish comment from any pull-request participant, checked out untrusted pull-request code, and used the repository's GitHub Actions OIDC trusted-publishing identity to release it; consequently, the malicious packages carried valid npm provenance attestations. At the time of reporting, npm's latest tag reportedly referenced malicious version 3.0.4.

The releases execute code during installation through preinstall hooks, malicious binding.gyp logic evaluated by node-gyp, or both, then launch an obfuscated second-stage payload. The malware downloads and executes Bun, probes Google Cloud metadata services, harvests credentials from cloud, GitHub, package registries, containers, Kubernetes, Vault, cryptocurrency wallets, messaging, VPN, and AI-development tools, and can propagate through accessible development environments; stolen data is exfiltrated through GitHub repositories labeled “Trinitite: Sponsored by Preview 2 Effects.” Organizations that installed affected versions with lifecycle scripts enabled should isolate and rebuild impacted systems, remove persistence and cached artifacts, and rotate all potentially exposed credentials from a clean environment using reviewed lockfiles and known-good releases.

Why it matters

Impact assessment

Installation of any identified malicious version of @7nohe/openapi-react-query-codegen constitutes a potential compromise of the developer workstation or CI runner that performed the install. The package had roughly 150,000 weekly downloads across maintained release lines, and the malware can steal and validate source-control, registry, cloud, CI/CD, SSH, Kubernetes, Vault, and developer-tool credentials, creating substantial risk of follow-on supply-chain compromise, cloud access, data theft, and unauthorized package publication.

  • Affected populations: Node.js development teams, CI/CD environments, build agents, and any organization directly or transitively installing the package.
  • Exposure scope: Broad downstream exposure because all maintained version lines were targeted and npm's latest tag reportedly resolved to malicious 3.0.4 during the incident.
  • Operational impact: Compromised runners may have altered GitHub Actions workflows, persistence on macOS or Linux, malicious modifications to AI-development tool configuration, and unauthorized deployment or repository changes.
  • Secondary impact: Stolen npm, GitHub, PyPI, RubyGems, JFrog, cloud, and SSH credentials can support propagation into other repositories, registries, hosts, and packages.
  • Exploitation status: Confirmed malicious releases were published on August 28, 2026. Reporting documents observed installation execution and network activity in isolated runners; organizations that installed affected versions should assume compromise.
  • Provenance caveat: Valid npm provenance attestations do not establish that the published source was authorized or benign in this incident.
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Aug 28, 2026
  1. Reported Sep 1, 20263mo ago

    Additional Mini Shai-Hulud indicators and workflow-tampering behaviors reported

    A report published additional indicators for the compromised package, including hashes for the obfuscated payload and malicious binding.gyp file, the p00paboot staging fork, named Linux/macOS persistence artifacts, and local tracking files. It also reported that the payload could modify GitHub Actions workflows and add background commands to AI coding-assistant settings.

    Popular npm Package With 150K Weekly Downloads Compromised in Mini Shai-Hulud Supply-Chain Attack | Cryptika Cybersecurity
  2. Reported Aug 31, 20263mo ago

    Trinitite token monitor can trigger cleanup after credential revocation

    Researchers reported that Trinitite monitors GitHub tokens and can invoke a destructive cleanup routine when token revocation is detected. The report advised organizations to isolate affected workstations or CI runners and remove malware persistence before revoking exposed credentials.

    Popular npm Package With 150K+ Weekly Downloads Hit by Credential-Stealing Supply-Chain Worm
  3. Reported Aug 29, 20263mo ago

    Researchers detail Mini Shai-Hulud payload persistence and propagation

    Researchers reported additional technical details of the malicious payload, including encrypted exfiltration via attacker-created public GitHub repositories, macOS LaunchAgent and Linux systemd-user persistence, signed GitHub commits used as a command channel, and SSH-based propagation attempts. The report also noted that valid npm provenance attestations were present on the malicious releases, while cautioning that behavioral overlap with Mini Shai-Hulud does not establish common-operator attribution.

    OpenAPI React Query Codegen npm Attack: Malicious Versions, Mini Shai-Hulud and IoCs | The CyberSec Guru
  4. Aug 28, 20263mo ago

    Trinitite variant commits stolen credentials to GitHub repositories

    A commit containing the “Trinitite: Sponsored by Preview 2 Effects” marker was identified in a GitHub repository used by the Shai-Hulud variant. Researchers identified nine public repositories containing stolen credentials and documented new exfiltration, execution, and obfuscation indicators for the variant.

    Shai-Hulud "Trinitite" Malware Hits @7nohe npm Package
  5. Aug 28, 20263mo ago

    Malicious OpenAPI React Query Codegen releases are detected

    Researchers identified the malicious @7nohe/openapi-react-query-codegen releases, including versions 0.5.4 through 3.0.4 and two prereleases. Analysis found an obfuscated payload that harvested cloud, source-control, package-registry, container, Kubernetes, Vault, cryptocurrency, VPN, messaging, and AI-development credentials, with self-propagation functionality.

    Popular code generator for TanStack Query hit by supply chain worm
  6. Aug 28, 20263mo ago

    Attacker exploits release workflow to publish malicious npm versions

    An external GitHub user abused the package's issue-comment-triggered release workflow, which checked out untrusted pull-request code and used GitHub Actions OIDC trusted publishing, to publish ten malicious @7nohe/openapi-react-query-codegen versions. The stable releases were published in two waves between 20:00:43 and 20:20:53 UTC and included install-time execution mechanisms targeting developer workstations and CI runners.

    OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack | Socket
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Threat actors

1 linked

Malware

1 linked

Observables

23 linked

Indicator values are masked on this page. View all 23 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.