-= 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": [
{
"versions": [
"1.1.2"
],
"source": "amazon-inspector",
"modified_time": "2026-06-26T21:41:55Z",
"sha256": "4643c1f27e4916ea6090f1e6196c980fa1d65b96899a80b1f57633eaf16a61a9",
"id": "IN-MAL-2026-007673",
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"import_time": "2026-06-26T22:30:41.502825002Z"
},
{
"versions": [
"1.1.3"
],
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"modified_time": "2026-06-26T21:41:48Z",
"sha256": "ff88024c29a68b4dc5e73795a21a813393c8a6a56cfbef9c8a0950a63ec84256",
"id": "IN-MAL-2026-007672",
"source": "amazon-inspector",
"import_time": "2026-06-26T22:30:41.383738672Z"
}
]
}[
{
"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"
}
]
{
"package_integrity": [
{
"filename": "treeify-1.1.2.tgz",
"hashes": {
"sha512_sri": "sha512-ljXKb95iSbTufE2YFpI4tPWpXg18K1s08/P0fY2OdKa/23pnXxgCy/ZCc6EHJSAdEYwCYDXhdZ3pY4Prk6+i5w==",
"sha1": "3714725cbf68087940ee1830ddddf4d087795f8d"
}
}
],
"evidence_files": [
{
"path": "treeify.js",
"tlsh": "4e932b867eea70af525251f3122f7196d56d9c99b24c8408f411ccecbf6423ce2b66bc",
"sha256": "612b89ae1789817f9d1cca75f7c054010c1a1628afe538b31f1dced58c11a4b4"
},
{
"path": "package.json",
"tlsh": "3201c020d9649d230adc79a06d5d0043a1204c4b58ecfd0577e7412c9b1c17738fd2ad",
"sha256": "bf5119c67c496a4174811894b622d38278bfd7c2ac268fb2f323639f7d1e2211"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@osmura/treeify/MAL-2026-6542.json"