Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malicious code in @kuperka/chainguard-sdk (npm)

The npm package @kuperka/chainguard-sdk contained malicious code disguised as a Web3 ChainGuard SDK that harvested browser credentials, wallet addresses, keystrokes, and API tokens, exfiltrating them to a third-party webhook endpoint.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any application that installed @kuperka/chainguard-sdk and executed it in a browser environment with access to sensitive data, credentials, and wallet information.
Ecosystems
Attack vectors
Affected entities
  • @kuperka/chainguard-sdknpm package containing malicious credential and wallet harvesting code

The npm package @kuperka/chainguard-sdk was published with embedded malicious code designed to steal sensitive information from users' browsers. The package advertised itself as a Web3 ChainGuard SDK but contained a malicious app.js file that initialized a credential harvesting mechanism.\n\nThe malicious code collected multiple categories of sensitive data: document cookies, localStorage and sessionStorage contents, all input field values, and credentials matching specific patterns (Stripe sk_live_, AWS AKIA, GitHub ghp_, JWT tokens, and OpenAI sk- keys). It also captured EVM wallet addresses from window.ethereum.selectedAddress and Solana wallet addresses from window.solana.publicKey.\n\nAdditionally, the code implemented keystroke logging on INPUT, TEXTAREA, and SELECT elements, batching keystrokes every 50 characters, every 5 seconds, or on newline—capturing passwords and seed phrases. The fetch API was monkey-patched to intercept outbound requests, capturing URLs, methods, request bodies (up to 2000 bytes), and Authorization headers.\n\nAll collected data was base64-encoded and exfiltrated to a hardcoded third-party webhook at https://webhook.site/b9155136-5f6d-4084-b19e-33c694a44616 via both Image src beacons and fetch POST requests. The incident was identified and credited to the OpenSSF malicious-packages project.

Indicators of compromise

Packages
  • @kuperka/chainguard-sdk
Domains
  • webhook.site

Remediation

  • Immediately uninstall @kuperka/chainguard-sdk from all projects
  • Audit package.json and lock files for any installations of @kuperka/chainguard-sdk
  • Rotate all credentials that may have been exposed (API keys, tokens, passwords)
  • Review browser history and network logs for connections to https://webhook.site/b9155136-5f6d-4084-b19e-33c694a44616
  • If the package was executed in a browser, assume compromise of cookies, localStorage, sessionStorage, and any credentials entered into forms
  • Regenerate wallet private keys and seed phrases if the application had access to wallet information
  • Monitor affected accounts for unauthorized activity

Sources

  1. GitHub Advisory GHSA-x3c3-qwj8-qfpc · GitHub Advisory Database

Cite this entry

"Malicious code in @kuperka/chainguard-sdk (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 10, 2026; last updated August 10, 2026. https://supplychainattack.org/incident/malicious-code-in-kuperka-chainguard-sdk-npm-17l6v8

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in typescirpt-core (npm)

    The npm package 'typescirpt-core' (a typosquat of 'typescript') contained malicious code that executed on install, downloading and executing a Windows executable and pivoting WSL environments back to the host Windows system.

    npmTyposquattingCompromised package
  2. containedcritical

    Malicious code in typescrit-cli (npm)

    The npm package typescrit-cli contained malicious postinstall code that downloads and executes a payload, with capability to escape WSL containers and compromise Windows hosts. The package name is a typosquat of the legitimate typescript-cli.

    npmTyposquattingCompromised package
  3. containedcritical

    Malicious code in typesript-cli (npm)

    The npm package 'typesript-cli' (a one-character typosquat of 'typescript') contains malicious code in its postinstall script that downloads and executes a Windows PE binary, and can cross the Linux/WSL sandbox boundary to execute payloads on the Windows host. The script also beacons to a hardcoded IP endpoint.

    npmTyposquattingCompromised package
  4. containedcritical

    Malicious code in testingsmthb1g (npm)

    The npm package testingsmthb1g contains malicious code in its postinstall script that acts as an install-time dropper, downloading and executing a Windows binary payload and exfiltrating platform information. The attack includes sandbox escape capabilities for WSL/virtualized Linux environments.

    npmCompromised package