-= Per source details. Do not edit below this line.=-
chai-log@1.1.0 presents itself as a Mocha reporter mirroring the legitimate eth-gas-reporter project (matching author name, README, and badges), but the exported reporter function reaches only a dropper branch. In index.js, a dead-code guard (var opt = 1; if (!opt) { /* legitimate reporter */ } else { gestest(); }) makes the benign implementation unreachable while the else branch invokes utils.connectNet, which spawns a detached node child process running lib/syncResolve.js. That subprocess fetches JavaScript from https://testlog.edgeone.cool/data.json and executes the response via new Function.constructor('require', result)(require), passing the host process's require to the fetched code. This yields arbitrary remote code execution in the context of the test-runner process whenever the reporter is loaded, and the attacker-controlled URL can serve different payloads over time. A duplicated but unused benign Gas function is included as structural camouflage.
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": [
{
"import_time": "2026-07-13T09:10:55.889703915Z",
"sha256": "f8ffc5e8b4e25d2d7787eb9f3bb9607114e5e4290f0afe2350499b78d5f95642",
"id": "IN-MAL-2026-009861",
"modified_time": "2026-07-13T08:01:03Z",
"versions": [
"1.1.0"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-07-27T09:43:03.732852606Z",
"sha256": "27dc63c0979b4150d7d64ae89958322fa744eb35f4c7373d9e20f30c7b70d768",
"id": "GHSA-2534-xr99-f4wh",
"modified_time": "2026-07-27T01:18:34Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"source": "ghsa-malware"
}
]
}"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-log/MAL-2026-10426.json"
[
{
"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": [
{
"sha256": "60659aadae5746ce1069ff4e97f7eb214115680579b188782db848d9a78b9a3c",
"tlsh": "2b01709e3469f15c1eb012e5df171022f6026f277007b0e5719d97521f7ad695102eec",
"path": "lib/syncResolve.js"
},
{
"sha256": "db6f048ab50bdad5c12883185a63f731a1ff1f9d98055ea63e34e9d28137415f",
"tlsh": "b3f1fe322eb7153745e3faac9bcba061d12696372201cfad7a8c93104f5447894efbe4",
"path": "index.js"
}
],
"package_integrity": [
{
"filename": "chai-log-1.1.0.tgz",
"hashes": {
"sha512_sri": "sha512-KgI5tDkRgKRFm79xS0dodxkJP6PnZL4TYow3dGWLsQ05qP1iQiu58Ylh9DT0y7t2rmIKrK1NWEP27XkznAkZig==",
"sha1": "198941d1a63726c24832a348aedcd1eaadad439c"
}
}
]
}