-= Per source details. Do not edit below this line.=-
Package 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.
Any 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.
{
"malicious-packages-origins": [
{
"source": "amazon-inspector",
"sha256": "6ab6891e53f407a1aebddb94c7d02dab202313f4576e37f378dfc2fc50705cd4",
"modified_time": "2026-06-16T18:54:13Z",
"import_time": "2026-06-16T19:46:14.403509698Z",
"versions": [
"1.13.1"
],
"id": "IN-MAL-2026-006808"
},
{
"source": "ghsa-malware",
"sha256": "5b3cb47458160b5062836d3d73c25a8eb4ce315f45249d729a038a0f3570769d",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"modified_time": "2026-08-13T16:33:13Z",
"import_time": "2026-08-13T22:11:44.600318148Z",
"id": "GHSA-7vj9-63m9-3x7f"
},
{
"source": "amazon-inspector",
"sha256": "b1fb0547b85d208c68435e3f1c56d4cda9ab572e5423e1bbc2f5cb917ed4c30c",
"modified_time": "2026-08-14T14:39:49Z",
"import_time": "2026-08-14T14:51:40.11903282Z",
"id": "IN-MAL-2026-017810",
"versions": [
"1.13.0"
]
}
]
}"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mastraqqq/MAL-2026-5913.json"
{
"evidence_files": [
{
"tlsh": "0951ea24ceaacc631ac895adbc6e441a613548139ca5fc8c33e5171c8f5d79f30ba32d",
"sha256": "12d2045d8f1e2f89fb8aa371c1280539c11a72d5c756550d54efb5ff70ce8009",
"path": "package.json"
},
{
"tlsh": "9613b719c6f7853243b7206e652b6802f27b81072b4deca07bdc83545f5961ec9ba3ed",
"sha256": "8a7914799042a419c71a9882e7af019b5a60da3eee4649f4fc728b28f2572368",
"path": "dist/chunk-4EG3WFWR.js"
}
],
"package_integrity": [
{
"filename": "mastraqqq-1.13.1.tgz",
"hashes": {
"sha512_sri": "sha512-C1KIIseTFf9/wyArSDCLuIBhZwesBs3+vdYtMKXpJvoLhgiy/uoaEYiZo5da3srZbI+CK4WWzJfMH/YJKUQ2fQ==",
"sha1": "c1a08038e3f2cee93e344fb58d7dbc522b808ab4"
}
}
]
}
[
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
},
{
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
}
]