Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in x6842179305 (npm)

The npm package x6842179305 contains malicious code that executes an opaque payload on module import via Function constructor and custom-encoded byte buffers. The package has no legitimate functionality, documentation, or API surface, and matches known obfuscated-loader patterns used to hide install-time payloads.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Unknown; depends on adoption of the malicious package
Ecosystems
Attack vectors
Affected entities
  • x6842179305 · all

The npm package x6842179305 was identified as malicious by Amazon Inspector and credited to the OpenSSF malicious-packages project. The package ships a main entry point (1.js) that uses the Function constructor to execute a custom-encoded, XOR-decoded byte buffer whenever the module is required or imported. A sibling file (ui.js) contains a matching custom-alphabet decoder feeding another opaque byte stream.\n\nThe package exhibits clear indicators of malicious intent: it uses a numeric burner-style identifier with no documented purpose, contains no README or legitimate library documentation, and exports no API surface. The use of Function-constructor execution over custom-encoded byte tables on module load has no benign engineering rationale and matches known patterns for obfuscated loaders and droppers designed to hide install- or import-time payloads from static analysis.\n\nThe runtime behavior of the decoded payload—including network destinations, credential access, or filesystem writes—cannot be statically determined due to the opaque nature of the encoded code. This design is characteristic of malware distribution mechanisms in supply chain attacks.

Indicators of compromise

Packages
  • x6842179305

Remediation

  • Remove the x6842179305 package from all projects and dependencies
  • Audit npm install logs and lock files for any historical installation of x6842179305
  • Review any systems where x6842179305 was installed for signs of compromise, including network connections, credential theft, or unauthorized filesystem modifications
  • Update to a patched version if a legitimate replacement is available, or use an alternative package
  • Enable npm audit and supply chain security scanning to detect similar malicious packages

Sources

  1. GitHub Advisory GHSA-v8r3-5x6v-p289 · GitHub Advisory Database

Cite this entry

"Malicious code in x6842179305 (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 19, 2026; last updated August 19, 2026. https://supplychainattack.org/incident/malicious-code-in-x6842179305-npm-k16pyi

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 rust-testing-utils (npm)

    The npm package rust-testing-utils contained malicious code that impersonates the pino logger and executes remotely-fetched code with arbitrary privileges. The package spawns a child process that decodes a hardcoded URL, fetches attacker-controlled content, and executes it via Function constructor with full module-loading capability.

    npmCompromised packageMalicious commit
  2. containedcritical

    Malicious code in stillm4ddpocs-demo-sprocket (npm)

    The npm package stillm4ddpocs-demo-sprocket version 999.9.12 contains malicious code that exfiltrates system and project metadata via multiple channels (HTTPS, HTTP, and DNS) to a hardcoded callback host. The package uses a high version number to exploit dependency-confusion attacks against organizations with internal packages of the same name.

    npmCompromised packageDependency confusion
  3. containedcritical

    Malicious code in @syncraft-labs/react (npm)

    The npm package @syncraft-labs/react contained obfuscated malicious code in its ESM distribution that implements the EtherHiding pattern, fetching and executing arbitrary code from an Ethereum smart contract via RPC endpoints. The tampering occurred post-build in the dist/index.js artifact.

    npmCompromised package
  4. containedcritical

    Malware in hydration-dim-kit

    Malware was discovered in the npm package hydration-dim-kit. Any computer with this package installed or running should be considered fully compromised. All secrets and keys must be rotated immediately from a different computer.

    npmCompromised package