Malicious code in 10-shardsight-web (npm)
The npm package 10-shardsight-web contains malicious code that fetches and injects arbitrary HTML/JavaScript from a remote Bitbucket repository into the consumer's page context. The remote source is mutable and uncontrolled by the declared publisher, allowing arbitrary code execution in any application that loads this package.
- Disclosed
- Last updated
- Blast radius
- Any application consuming the 10-shardsight-web npm package; arbitrary JavaScript execution in consumer page context.
- Ecosystems
- Attack vectors
- Affected entities
- 10-shardsight-webnpm package containing malicious code
The npm package 10-shardsight-web contains a top-level async IIFE in index.js that fetches HTML from a hardcoded URL on Bitbucket (https://bitbucket.org/p2p-alt-public/p2p-emis/raw/main/GameWebSight). The fetched markup is injected directly into the consumer's page by replacing document.head and document.body, and all tags are recreated to ensure remote JavaScript executes in the page context.\n\nThe remote source is hosted on a mutable main branch in a personal-looking Bitbucket workspace that appears unrelated to any declared publisher. There is no integrity check on the fetched content, meaning whoever controls that repository can push arbitrary JavaScript at any time.\n\nThis design allows complete compromise of any application that loads this package, with the attacker able to execute arbitrary code in the consumer's page context without any version pinning or signature verification.\n\nThe malicious code was identified by Amazon Inspector and credited to the OpenSSF malicious-packages project.
Indicators of compromise
- Packages
- 10-shardsight-web
- Domains
- bitbucket.org
Remediation
- Immediately remove the 10-shardsight-web package from all dependencies
- Audit all applications that may have installed this package for signs of compromise
- Review browser history and network logs for unexpected connections to bitbucket.org/p2p-alt-public/p2p-emis
- Rotate any credentials or sensitive data that may have been exposed through page context access
- Use npm audit to identify and remove this package from the dependency tree
- Consider using package integrity verification tools to prevent installation of known malicious packages
Sources
- GitHub Advisory GHSA-6fq4-5r9g-9gfh · GitHub Advisory Database
Cite this entry
"Malicious code in 10-shardsight-web (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 23, 2026; last updated August 23, 2026. https://supplychainattack.org/incident/malicious-code-in-10-shardsight-web-npm-lzd3jz
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- containedcritical
Malware in svelte-dim-kit
The npm package svelte-dim-kit was found to contain malware, potentially giving attackers full control of affected systems. All systems with this package installed should be considered compromised and secrets/keys rotated immediately from a different computer.
npmCompromised package - 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 - 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 - resolvedcritical
Malicious code in stillm4ddpocs-rtest-bravo (npm)
The npm package stillm4ddpocs-rtest-bravo contained malicious code in its preinstall script that automatically executed during installation, collecting system information and internal package metadata and exfiltrating it to a third-party Interactsh collector via HTTPS and DNS tunneling.
npmCompromised package