-= Per source details. Do not edit below this line.=-
random-certs@0.0.1 ships a file named sample/cert.pem that is not a certificate but base64-encoded JavaScript wrapped in BEGIN/END CERTIFICATE markers. The exported generateCertificates() in index.js strips those markers, base64-decodes the body, and eval()s the result. The recovered JavaScript fetches a hardcoded Google Drive URL (https://drive.usercontent.google.com/download?id=1y4LSiUb4PZSGjKBtEVJMDMnl3Sr7kbSy) and pipes the response into a detached, window-hidden python3 - (or python on Windows) process via stdin, executing the downloaded bytes as Python on the host. The destination URL is itself base64-nested inside the fake PEM to further hide it. A certificate-generation API covertly resolving to remote Python execution from an attacker-controlled location, with multiple layers of disguise, is a deliberate malicious payload rather than a legitimate helper.
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": "GHSA-2cfv-92gp-9f6m",
"import_time": "2026-10-07T13:31:56.461826495Z",
"modified_time": "2026-10-07T12:51:25Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "e002d7cdc913cbca420ce86f079af16abcbe8dcf80da03cac0cb5127fb4f8dcc",
"source": "ghsa-malware"
},
{
"id": "IN-MAL-2026-021104",
"import_time": "2026-10-08T03:50:28.148812348Z",
"modified_time": "2026-10-08T03:36:27Z",
"sha256": "9077ef856afc462f5d7c757a14ee2c9633386c3809e58e8f725310a33dd35112",
"source": "amazon-inspector",
"versions": [
"0.0.1"
]
}
]
}[
{
"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": "index.js",
"sha256": "10f00844316739fca8759213ff5bf0638c146a59db646bb858658acf1230b1ee",
"tlsh": "27d1b644adf2b65142e7b1b4463be151f02c91033a1aee98b5ed83842f5ad2cd57eecc"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/random-certs/MAL-2026-17644.json"