MAL-2026-14368Malicious code in @syncraft-labs/react (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @syncraft-labs/react | 0.4.1 |
{"schema_version":"1.7.4","id":"MAL-2026-14368","published":"2026-08-23T03:15:14Z","modified":"2026-08-26T06:28:26.135340982Z","aliases":["GHSA-4xx4-j6wx-746g"],"summary":"Malicious code in @syncraft-labs/react (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c3986bd05347035d9263c22b871840f19dc42187d3e1719311cb67c6e1ef5cb9)\ndist/index.js (the ESM entry resolved by default by modern bundlers such as Vite, Next.js, and Webpack) contains a heavily obfuscated block using obfuscator.io-style identifiers, a rotated ~300-entry string array, and a decoder wrapper injected inside the useEffect body of the useSync hook. The block captures globalThis.r=require and globalThis.m=module, then uses http/https and zlib (createInflate/createBrotli) to fetch data from Ethereum RPC endpoints (h.drpc.org, 1rpc.io/eth), Blockscout, and Etherscan for a hardcoded contract address (0xa322E5f3...), reconstructs code from the on-chain bytes, and executes it with require access. This is the EtherHiding pattern: the on-chain contract is mutable, so operators of that contract can deliver arbitrary JavaScript to any consumer that renders a component using useSync, achieving remote code execution in Node build/SSR contexts and in the browser bundle of downstream applications. The obfuscated blob is absent from dist/index.cjs and from the TypeScript sources referenced by dist/index.js.map, indicating the ESM artifact was tampered after build.\n\n## Source: ghsa-malware (5978be426de3faf554ce3f69eaf8cce533ef963169bb5821d0f6641605cf2426)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"@syncraft-labs/react","ecosystem":"npm"},"versions":["0.4.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"5b6c555d11703bf2c11f5745c0926fd6f0f75f6d482dbe701cb6b5acae11c187","tlsh":"aa03a580b7e1644003476abb7b1ff4e5e56b08ad35888ac6f11cba84ef96327e4f1535"}],"package_integrity":[{"filename":"react-0.4.1.tgz","hashes":{"sha1":"e56b6dd3158153a09b48f458c73fe4d0b7a1de4d","sha512_sri":"sha512-wtbb2ajdjTj/U7qCrTzjY6vvyczyHyk2rrOSIAStFGLPSgvbLobf+BTF4UjXkRD3VVZk5eIK+67zH593IcrK/Q=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@syncraft-labs/react/v/0.4.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4xx4-j6wx-746g"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018573","import_time":"2026-08-23T03:25:56.573012628Z","modified_time":"2026-08-23T03:15:14Z","sha256":"c3986bd05347035d9263c22b871840f19dc42187d3e1719311cb67c6e1ef5cb9","source":"amazon-inspector","versions":["0.4.1"]},{"id":"GHSA-4xx4-j6wx-746g","import_time":"2026-08-26T06:26:37.002702662Z","modified_time":"2026-08-26T06:15:28Z","sha256":"5978be426de3faf554ce3f69eaf8cce533ef963169bb5821d0f6641605cf2426","source":"ghsa-malware","versions":["0.4.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0