-= Per source details. Do not edit below this line.=-
The package's postinstall script (node lib/utils/index.js) spawns a detached, stdio-suppressed Node child process that runs lib/utils/smtp-connection/index.js. That file fetches JavaScript from https://jsonkeeper.com/b/WDH3V via axios and executes the response with new Function("require", r.data.cookie)(require), running unpinned, mutable, non-publisher code on the installer's machine at npm install time. The package is named vitest-agent but its main and shipped source are a verbatim copy of nodemailer (author field Andris Reinman, description is an unrelated React copyright string), a name/identity mismatch consistent with a lure targeting vitest ecosystem users. Concealment signals reinforce the dropper: a ~256 KB LICENSE file sits adjacent to a 185-byte dropper index.js under lib/utils/smtp-connection/, and path names mirror legitimate nodemailer layout as cover. Because the harmful code path fires automatically from the postinstall lifecycle hook, installers are compromised without any explicit user action beyond installing the package.
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": [
{
"versions": [
"1.0.6"
],
"sha256": "6e0165cbb3d6ed37a96889c4b016463706346e1c09413635c31ea1ceedde8774",
"source": "amazon-inspector",
"modified_time": "2026-07-01T19:16:03Z",
"import_time": "2026-07-01T20:12:12.361263503Z",
"id": "IN-MAL-2026-007874"
},
{
"versions": [
"1.0.5"
],
"sha256": "c3f7ebf642b562d3c33e78df9352951379038121536b34dc0a358e3dc5a6343e",
"modified_time": "2026-07-01T19:15:53Z",
"source": "amazon-inspector",
"id": "IN-MAL-2026-007873",
"import_time": "2026-07-01T20:12:12.308262705Z"
},
{
"sha256": "c760a9cc4fdf3746f5c3ea670a49bc3441556a64a1fe3c97314375d427d7f1d4",
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"modified_time": "2026-07-02T09:48:12Z",
"source": "ghsa-malware",
"id": "GHSA-w2r4-4x6j-3h5x",
"import_time": "2026-07-02T11:08:17.649278488Z"
}
]
}{
"package_integrity": [
{
"filename": "vitest-agent-1.0.6.tgz",
"hashes": {
"sha512_sri": "sha512-rKLI+8GqzL9A9D/ZR8hjCdVfqYjL5BiDpV1DbO32vHnDNK7zwHv0645d8B3GEmdox3C5MGDEdkSZU/GwaJHnmg==",
"sha1": "7c050744bbac52370c19b54d339cedb43537c7ff"
}
}
],
"evidence_files": [
{
"sha256": "27bc8017644a3295d5d410ca6c8159d666a2ed002103b49f3afbaee13d35f487",
"path": "lib/utils/smtp-connection/index.js",
"tlsh": "89c0225633c8201e202210e2530e10107013c8324d46c45da2040afa14e1a860a22ea4"
},
{
"sha256": "2c03e07e921ee3e9230194af7b49defa2bec962e60a0eb1ea42c7ff404e9f228",
"path": "package.json",
"tlsh": "d0416526cd678df3229926ed78685182b460d00fcc0ab85d774d138c8f8e99f3678a6d"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vitest-agent/MAL-2026-6710.json"
[
{
"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",
"cweId": "CWE-506"
}
]