-= Per source details. Do not edit below this line.=-
Package advertises itself as a small hex/base64/endianness codec library, but every exported encode/decode function (encodeHex, decodeHex, encodeBase64,...) invokes _runPrepare() from script/prelude.cjs (and esm/prelude.mjs), a ~277 KB obfuscator.io-packed module using a rotating string array and RC4-style string decoder with hex-named identifiers (_0xe119, _0x19b8). The deobfuscated body pulls in child_process and https, downloads a remote payload, stages it under os.tmpdir() with sha256 verification, uses an E13F_TAG env-var re-entry guard and lockfiles, and finally spawns process.execPath on the downloaded file. Any consumer that imports the package and calls its advertised API silently fetches and executes attacker-controlled code on the installer's machine. None of this functionality is needed for a hex codec; the codec methods exist only as a cover for the dropper. The package also impersonates an unrelated upstream project: package.json repository.url, bugs.url, and homepage all point to github.com/levischuck/tiny-encodings, while the package is published under the @chunklab scope by author chunklab <chunklab@pm.me> and the obfuscated prelude.cjs/prelude.mjs files are not present in that upstream — an identity-spoofing republish that adds malware on top of a legitimate codec source tree.
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": [
{
"id": "IN-MAL-2026-007080",
"import_time": "2026-06-19T15:41:55.759800891Z",
"modified_time": "2026-06-19T15:13:24Z",
"sha256": "56ad779454aa221e4a3d5a13725428059b40edd7cd8a4329ef382348bc493013",
"source": "amazon-inspector",
"versions": [
"1.1.7"
]
},
{
"id": "IN-MAL-2026-007307",
"import_time": "2026-06-23T16:54:16.563062239Z",
"modified_time": "2026-06-23T16:22:51Z",
"sha256": "c2703194bc9fb15bd86f002d712a752eb23ee22cc44a1f451d656f3143a48acf",
"source": "amazon-inspector",
"versions": [
"1.1.5"
]
},
{
"id": "IN-MAL-2026-007308",
"import_time": "2026-06-23T16:54:16.638536332Z",
"modified_time": "2026-06-23T16:22:52Z",
"sha256": "d21e53f2bda0ce60ccb7f587f122ae06451389f9d4237285d4d3fe5effd47440",
"source": "amazon-inspector",
"versions": [
"1.1.6"
]
},
{
"id": "IN-MAL-2026-007319",
"import_time": "2026-06-23T16:54:17.430580805Z",
"modified_time": "2026-06-23T16:23:02Z",
"sha256": "2a5dfff6357d24f223a108ef893e23e9058b4f30d1550d4da9a219a4a357bd38",
"source": "amazon-inspector",
"versions": [
"1.0.7"
]
},
{
"id": "IN-MAL-2026-007317",
"import_time": "2026-06-23T16:54:17.320125232Z",
"modified_time": "2026-06-23T16:23:00Z",
"sha256": "82764cc5738f3b6e578578f06dfdf07dcb9bb0b85175041ea080de038aa60f1b",
"source": "amazon-inspector",
"versions": [
"1.1.4"
]
},
{
"id": "GHSA-fv23-ggqm-w99j",
"import_time": "2026-08-13T22:11:44.611128349Z",
"modified_time": "2026-08-13T15:22:30Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "d2599103382b495124b7bd7490e46caeaf79daa82df6217a65ec7ec114356065",
"source": "ghsa-malware"
}
]
}[
{
"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"
},
{
"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": "script/prelude.cjs",
"sha256": "24c8f9b8ac17c2f88cc01d44543963206472112510962b68cf5f74d598b3b065",
"tlsh": "9e449730b3c07c9425479f7b332ef5e5f92e5fa934a8088bd065bc64a6ea915dad0730"
},
{
"path": "package.json",
"sha256": "249b09711f0bb1210dc64ad989ab2a9408ee4789de1a7c402df7953a5e25f937",
"tlsh": "f0214974c5609d530ac8a8a4d869aa06b675180b8c24bc4973cf051caf8d5ef25ff3bd"
}
],
"package_integrity": [
{
"filename": "hexparse-1.1.7.tgz",
"hashes": {
"sha1": "11ed255e11738fb926d81f7ea5918d2e9612f44a",
"sha512_sri": "sha512-6/hoomtHN6FDOJ4pvVZr7DEWjgPMGhWrAcrFVT+kHu6uonXOjbQlTpd0a29tPn3gxt00tqzTqwKYDBtr+1sY7w=="
}
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@chunklab/hexparse/MAL-2026-6214.json"