-= Per source details. Do not edit below this line.=-
The package republishes the upstream treeify library (Luke Plaster, repo notatestuser/treeify) verbatim under the unrelated @osmura scope, preserving the original package.json author/repository/keywords/README as cover. Appended to treeify.js (starting around line 115) is ~93KB of obfuscator.io-style code (RC4+base64 string-array, while(!![]) control-flow flattening) that runs whenever a consumer does require('@osmura/treeify'). The injected code re-spawns Node detached with a marker environment variable, issues an HTTPS request to a hostname encoded inside the obfuscated string array, AES-256-GCM-decrypts the response using a key XOR-derived from four embedded base64 buffers, writes the plaintext payload into os.tmpdir()/<name>-<pid>/, and spawns it via child_process.spawn(..., {stdio:..., windowsHide: true, detached: true}) — see treeify.js:116 var aM = at[ba(0x19,...)](aK, aL, {'stdio':..., 'windowsHide':!![], 'detached':!![]}) and the corresponding https.request({method: 'GET', hostname: aG[...], timeout: 60000},...) call. Two independent injected IIFEs implement the same dropper with separate encoded URL pools, providing fallback C2. Any installer that requires this package fetches and executes attacker-controlled code on their machine at import time.
{
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-007673",
"import_time": "2026-06-26T22:30:41.502825002Z",
"modified_time": "2026-06-26T21:41:55Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "4643c1f27e4916ea6090f1e6196c980fa1d65b96899a80b1f57633eaf16a61a9",
"source": "amazon-inspector",
"versions": [
"1.1.2"
]
},
{
"id": "IN-MAL-2026-007672",
"import_time": "2026-06-26T22:30:41.383738672Z",
"modified_time": "2026-06-26T21:41:48Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "ff88024c29a68b4dc5e73795a21a813393c8a6a56cfbef9c8a0950a63ec84256",
"source": "amazon-inspector",
"versions": [
"1.1.3"
]
},
{
"id": "IN-MAL-2026-008976",
"import_time": "2026-07-08T23:27:56.909353846Z",
"modified_time": "2026-07-08T23:00:42Z",
"sha256": "b283e5aa252a764aa045b86b27f57b54f1c175cbd37e933bb0f60decbf8cb0ca",
"source": "amazon-inspector",
"versions": [
"1.1.0"
]
}
]
}[
{
"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"
}
]
{
"evidence_files": [
{
"path": "treeify.js",
"sha256": "612b89ae1789817f9d1cca75f7c054010c1a1628afe538b31f1dced58c11a4b4",
"tlsh": "4e932b867eea70af525251f3122f7196d56d9c99b24c8408f411ccecbf6423ce2b66bc"
},
{
"path": "package.json",
"sha256": "bf5119c67c496a4174811894b622d38278bfd7c2ac268fb2f323639f7d1e2211",
"tlsh": "3201c020d9649d230adc79a06d5d0043a1204c4b58ecfd0577e7412c9b1c17738fd2ad"
}
],
"package_integrity": [
{
"filename": "treeify-1.1.2.tgz",
"hashes": {
"sha1": "3714725cbf68087940ee1830ddddf4d087795f8d",
"sha512_sri": "sha512-ljXKb95iSbTufE2YFpI4tPWpXg18K1s08/P0fY2OdKa/23pnXxgCy/ZCc6EHJSAdEYwCYDXhdZ3pY4Prk6+i5w=="
}
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@osmura/treeify/MAL-2026-6542.json"