-= Per source details. Do not edit below this line.=-
On npm install, the package's postinstall hook (scripts/install-check.cjs, wired via package.json scripts.postinstall) fetches a JSON config from a hardcoded non-publisher host (https://www.log-prettier.store/config/stake-peer-sync.json), reads a tgz URL from that config, downloads the tarball, extracts it, runs a nested npm install inside the extracted directory, and then require()s peer-math.js from the dropped tree, executing it in the installer's Node process. There is no version pin, hash, or signature check, and the control-plane host is mutable and unrelated to the package's advertised purpose (a small Kelly-stake math helper) or to any legitimate publisher. The package also exhibits identity divergence: package.json name is stake-math while the README presents it as polymarket-stake-math, and homepage points at the same unrelated log-prettier.store domain — consistent with brand impersonation used to lure installers into running the dropper. Installing this version results in arbitrary attacker-controlled code execution on the installer machine.
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-007746",
"import_time": "2026-06-29T07:09:09.655398907Z",
"modified_time": "2026-06-29T05:33:56Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "20c910386d16928d69a1f1e840d183521875b5686ce101e2c4e0f95b4cf6147f",
"source": "amazon-inspector",
"versions": [
"3.5.2"
]
},
{
"id": "IN-MAL-2026-007748",
"import_time": "2026-06-29T07:09:09.814781896Z",
"modified_time": "2026-06-29T05:34:12Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "39d259fb24a848c551a7c2d36d213ff962e8ecedc70f0d1e358200b82fd4cf0d",
"source": "amazon-inspector",
"versions": [
"3.5.3"
]
},
{
"id": "IN-MAL-2026-007747",
"import_time": "2026-06-29T07:09:09.728890068Z",
"modified_time": "2026-06-29T05:34:04Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "a475d161b669ae748124a4d6c1da29ebda6e40da4aa5c3c5e8b10645ef96f57a",
"source": "amazon-inspector",
"versions": [
"3.5.4"
]
},
{
"id": "IN-MAL-2026-008500",
"import_time": "2026-07-08T20:32:36.977395538Z",
"modified_time": "2026-07-08T20:20:01Z",
"sha256": "4fc43d9d226170bb17cbb6456938cabc787d76a59db37e9160a3f4ce5c8bb5a8",
"source": "amazon-inspector",
"versions": [
"3.3.0"
]
},
{
"id": "IN-MAL-2026-008495",
"import_time": "2026-07-08T20:32:36.080319232Z",
"modified_time": "2026-07-08T20:19:13Z",
"sha256": "6a57de948b3cf870e972d14e575b53ab8818e48a2ec1603bb1f8c9897aa1ca20",
"source": "amazon-inspector",
"versions": [
"3.2.0"
]
},
{
"id": "IN-MAL-2026-008492",
"import_time": "2026-07-08T20:32:35.73470946Z",
"modified_time": "2026-07-08T20:18:48Z",
"sha256": "fb425383534705d072e723e596851dbc8a9154f83fc42cb6431b7e3bcd307424",
"source": "amazon-inspector",
"versions": [
"3.1.0"
]
},
{
"id": "IN-MAL-2026-009178",
"import_time": "2026-07-09T16:20:48.550962224Z",
"modified_time": "2026-07-09T15:39:45Z",
"sha256": "647878c4801a1ac7c8bf6c1212b68f9bc87c7effa276aa3f5c268d960428b941",
"source": "amazon-inspector",
"versions": [
"3.5.5"
]
},
{
"id": "GHSA-qcc9-j6wh-4h9h",
"import_time": "2026-07-30T03:51:56.518124Z",
"modified_time": "2026-07-29T16:04:11Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "0c0588616ff1e3cda86498497275add22443058899d0b9866cf3579e9f679c4f",
"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"
},
{
"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": "scripts/install-check.cjs",
"sha256": "338425f248ba3d2e144e9db53246d466d54c424c1ebb693744b318079c5ce0f2",
"tlsh": "00a1459519a2727346b1ebb8c722941eff2340233551c360f6de96952fb72a4c352dec"
},
{
"path": "package.json",
"sha256": "ed7889971bf13a0a3499b1c7e277d6df7edd9ece45f0b821e43b0da5e4fc47df",
"tlsh": "45f02837d9504d3624b8cf595e691504f4614b5f62a04d0b70bb600c8fb1173045b72a"
}
],
"package_integrity": [
{
"filename": "stake-math-3.5.2.tgz",
"hashes": {
"sha1": "22f1e2737007d515acfdf15aca007564ce5d866c",
"sha512_sri": "sha512-Z4IGhPs3Ap6y2FQoXfchcfN2JdhfQiG0AOgRk1x6pwJnUxjW4Qt05ulu2VKevpuHkc8KucdIWvdYHzf5lFXvjQ=="
}
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/stake-math/MAL-2026-6585.json"