MAL-2026-5913Malicious code in mastraqqq (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.13.1 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | mastraqqq | * |
| npm | mastraqqq | 1.13.0 |
| npm | mastraqqq | 1.13.1 |
{"schema_version":"1.7.4","id":"MAL-2026-5913","published":"2026-06-16T18:54:13Z","modified":"2026-08-14T14:53:30.722363582Z","aliases":["GHSA-7vj9-63m9-3x7f"],"summary":"Malicious code in mastraqqq (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6ab6891e53f407a1aebddb94c7d02dab202313f4576e37f378dfc2fc50705cd4)\nPackage is published as `mastraqqq` but bundles a verbatim clone of the legitimate `mastra` CLI: the embedded package metadata declares `name: \"mastra\", version: \"1.13.0\"` with Mastra's homepage and repository, and the README is the upstream Mastra CLI README. The npm-published manifest under the `mastraqqq` name (a 3-character-suffix edit of `mastra`) adds a single unrelated runtime dependency, `caspian-day-js@^1.11.22`, which is never imported anywhere in the bundled `dist/` output. Installing `mastraqqq` therefore silently pulls `caspian-day-js` — an attacker-chosen package whose contents are outside this tarball — into the consumer's install graph under cover of a Mastra impersonation. The combination of impersonation (identical bundled name/version/README/code) plus an unexplained, never-referenced extra dependency is the canonical namespace-abuse delivery shape: the lure is the typosquat, the payload arrives via the smuggled dep.\n\n## Source: ghsa-malware (5b3cb47458160b5062836d3d73c25a8eb4ce315f45249d729a038a0f3570769d)\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":"mastraqqq","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.13.1","1.13.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"},{"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":"12d2045d8f1e2f89fb8aa371c1280539c11a72d5c756550d54efb5ff70ce8009","tlsh":"0951ea24ceaacc631ac895adbc6e441a613548139ca5fc8c33e5171c8f5d79f30ba32d"},{"path":"dist/chunk-4EG3WFWR.js","sha256":"8a7914799042a419c71a9882e7af019b5a60da3eee4649f4fc728b28f2572368","tlsh":"9613b719c6f7853243b7206e652b6802f27b81072b4deca07bdc83545f5961ec9ba3ed"}],"package_integrity":[{"filename":"mastraqqq-1.13.1.tgz","hashes":{"sha1":"c1a08038e3f2cee93e344fb58d7dbc522b808ab4","sha512_sri":"sha512-C1KIIseTFf9/wyArSDCLuIBhZwesBs3+vdYtMKXpJvoLhgiy/uoaEYiZo5da3srZbI+CK4WWzJfMH/YJKUQ2fQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mastraqqq/v/1.13.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7vj9-63m9-3x7f"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mastraqqq/v/1.13.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-006808","import_time":"2026-06-16T19:46:14.403509698Z","modified_time":"2026-06-16T18:54:13Z","sha256":"6ab6891e53f407a1aebddb94c7d02dab202313f4576e37f378dfc2fc50705cd4","source":"amazon-inspector","versions":["1.13.1"]},{"id":"GHSA-7vj9-63m9-3x7f","import_time":"2026-08-13T22:11:44.600318148Z","modified_time":"2026-08-13T16:33:13Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"5b3cb47458160b5062836d3d73c25a8eb4ce315f45249d729a038a0f3570769d","source":"ghsa-malware"},{"id":"IN-MAL-2026-017810","import_time":"2026-08-14T14:51:40.11903282Z","modified_time":"2026-08-14T14:39:49Z","sha256":"b1fb0547b85d208c68435e3f1c56d4cda9ab572e5423e1bbc2f5cb917ed4c30c","source":"amazon-inspector","versions":["1.13.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0