-= Per source details. Do not edit below this line.=-
The package's declared main entry (index.js) exports a middleware factory that, when invoked by a consumer, spawns lib/caller.js as a detached child process with stdio ignored and unref()'d, concealing it from the parent. lib/caller.js performs an HTTPS GET to https://jsonhosting.com/api/json/e16583b1/raw, extracts a JavaScript payload from a cookie field in the response, and executes it via new Function.constructor("require", s)(require), granting the remote host arbitrary code execution in the installer's Node process with require bound. Additional remote endpoints (https://jsonkeeper.com/b/XRGF3 in lib/caller.js and https://jsonkeeper.com/b/4NAKK in lib/const.js) are stored base64-encoded under a fake process.env object keyed as DEV_API_KEY, staged for the fetched payload. The package name and README impersonate an unrelated logging library.
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": [
{
"modified_time": "2026-07-13T22:17:10Z",
"versions": [
"3.1.3"
],
"sha256": "6db27d60a7dec38dafef8ed810203dc0130cf340eae162410dfcb7b21a4e2658",
"import_time": "2026-07-13T22:21:57.889024009Z",
"source": "amazon-inspector",
"id": "IN-MAL-2026-010353"
},
{
"modified_time": "2026-07-13T22:19:16Z",
"sha256": "b9d1682a8365cd245b7f4173a1d95003f7c9dd41e0d3a0635cae503d6e3eef81",
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"import_time": "2026-07-13T22:34:08.198407057Z",
"source": "ghsa-malware",
"id": "GHSA-w8hw-4vch-mrj4"
}
]
}{
"evidence_files": [
{
"tlsh": "1111025938fb405d022620e11f1f54707022e8633ac9e5c4f68c87514fe98ae6d63bdd",
"sha256": "445a65314361697cc4c43f798bd333b5c2d91e39f4ce44af4d436328dad82427",
"path": "lib/caller.js"
},
{
"tlsh": "5d213c81b9f11188065cd9c8b569e53a38e3c4377207b9b0e9ec87862bcf2080272ad7",
"sha256": "2956b023858d706a5e241cd28b845088e5f414c5f70bd5d8cb73cb427d081065",
"path": "index.js"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "8a916cb92c745b2402f938fe5978032f646926c5",
"sha512_sri": "sha512-1523ueAlNiXcNRC4m2DTP9u5YwpHMWV+UHJSA7302jjmOHbeq/+qcPh4NSvoRXPifvFYmRZ5iN8HH0QEV4Od/w=="
},
"filename": "type-swap-3.1.3.tgz"
}
]
}
[
{
"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"
}
]
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/type-swap/MAL-2026-10511.json"