MAL-2026-13622Malicious code in @depup/astro (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
7.1.3-depup.2 | archived | — | — | VIP 下载 |
7.2.0-depup.0 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | @depup/astro | 7.1.3-depup.2 |
| npm | @depup/astro | 7.2.0-depup.0 |
{"modified":"2026-08-07T17:52:50Z","published":"2026-08-07T17:24:21Z","schema_version":"1.7.4","id":"MAL-2026-13622","summary":"Malicious code in @depup/astro (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c7c6330072ae71974da0dd2e0e72a33334a35b78ec5679536d95b9f205032225)\nThis package is published under the @depup scope but sets author to 'withastro' and repository to github.com/withastro/astro, framing itself as a routine dependency-bump of the upstream astro framework. Its package.json systematically replaces well-known astro dependencies with same-shape lookalike names controlled by different maintainers, including picocolors→piccolore (^0.1.3), debug→obug (^2.1.4), and @astrojs/markdown-remark→@astrojs/markdown-satteri (0.3.5), alongside other atypical names such as tinyclip, am-i-vibing, and fontace. The shipped source has been mass-rewritten to import from the lookalikes (e.g., `import colors from \"piccolore\"` in place of picocolors), so a normal `npm install` and subsequent build resolves and executes code from those lookalike packages rather than the genuine upstream dependencies. The advertised version numbers (astro 7.2.0, vite 8, esbuild 0.28, zod 4) do not correspond to real upstream releases, and README keywords like 'security', 'latest', and 'patched' are used to normalize the substitutions as a maintenance update.\n","affected":[{"package":{"ecosystem":"npm","name":"@depup/astro"},"versions":["7.1.3-depup.2","7.2.0-depup.0"],"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":"package.json","sha256":"adcf1a37fcdafb23420b7d6e3ece43d637415165427450b4150e0a1373e95540","tlsh":"4f22de15ccf88da3188519eda87a0282b13681874d50fe1d379d47ac5f8c3af21bb76e"}],"package_integrity":[{"filename":"astro-7.1.3-depup.2.tgz","hashes":{"sha1":"664bacbad0b29940828c7d66145c50b937c6ac19","sha512_sri":"sha512-H6AHt8UHLB8LjJbvYzhzHlWKbGTQ0IXoAeZGHxKzhNeKBlsefjIocSseucugdGhzqMVmslBE3BYn3Y2erJxm+g=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@depup/astro/v/7.1.3-depup.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@depup/astro/v/7.2.0-depup.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017129","import_time":"2026-08-07T17:51:00.044897552Z","modified_time":"2026-08-07T17:24:42Z","sha256":"75daeef07606b8ba315a6ced4fd25925f79ab11b19032f8a51544c18457c6401","source":"amazon-inspector","versions":["7.1.3-depup.2"]},{"id":"IN-MAL-2026-017127","import_time":"2026-08-07T17:50:59.972390797Z","modified_time":"2026-08-07T17:24:21Z","sha256":"c7c6330072ae71974da0dd2e0e72a33334a35b78ec5679536d95b9f205032225","source":"amazon-inspector","versions":["7.2.0-depup.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0