MAL-2026-12406Malicious code in pfa-errors (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
20.4.9 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | pfa-errors | * |
| npm | pfa-errors | 20.4.9 |
{"schema_version":"1.7.4","id":"MAL-2026-12406","published":"2026-08-05T12:51:05Z","modified":"2026-08-20T17:26:55.092256803Z","aliases":["GHSA-c4mr-v4hr-px3m"],"summary":"Malicious code in pfa-errors (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9e06752c5f827cccdf98f23fa26d893d44e2889b8b7011e8fdb130524f09fe0f)\nOn require('pfa-errors'), index.js unconditionally loads _runtime.js, which fetches a platform-specific opaque binary from one of three hardcoded Cloudflare workers.dev endpoints (oob-worker.cf100-416.workers.dev and siblings), writes it to a temp path with a decoy name (.cache_<hex> or dotnet_diag_<hex>.exe), sets mode 0755, and spawns it detached via /bin/sh -c or cmd.exe. When HTTPS is unavailable, a DNS-TXT covert channel to *.dl.well1.site reconstructs the binary from base64 chunks. Destination hostnames and sensitive API names such as child_process and chmodSync are fragmented into arrays and reassembled with.join('') at runtime to evade static string search. A second, functionally identical dropper shipped in lib/telemetry.js is not reached from index.js but embeds the same fetch+chmod+spawn primitives.\n\n## Source: ghsa-malware (1dab3aa8b740a2027cb64386057967f903bac03f5ba3e907151f6ddafcdc2b41)\nAny 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.\n","affected":[{"package":{"name":"pfa-errors","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["20.4.9"],"database_specific":{"cwes":[{"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"}],"indicators":{"evidence_files":[{"path":"_runtime.js","sha256":"9c2c27ec3f51d9fa77c288102b489341c5cb72cc10e48f15981cd2957067351a","tlsh":"92a1865a1269311987b0abe5c717441af65bf2533380c2d8fb6c65945fb613483b2efc"},{"path":"lib/telemetry.js","sha256":"bd1f37fc4e5ec86d724917b1719fb8013eae07dc3ca7afb18d2c22ce7a96422d","tlsh":"50834056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"}],"package_integrity":[{"filename":"pfa-errors-20.4.9.tgz","hashes":{"sha1":"8e7930b7eb4ed52c4fbf96d14a094ae3122c6ac1","sha512_sri":"sha512-cfQmTIrCrar/Ai9b6yjyxC8Dlz1YqlgjXoUmNV7VpFJhaeMh6wbZsDWkqaSLGzV4uU7y9IXpGG7ms+zHR7LlXg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/pfa-errors/v/20.4.9"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-c4mr-v4hr-px3m"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014786","import_time":"2026-08-05T13:08:46.419501848Z","modified_time":"2026-08-05T12:51:05Z","sha256":"9e06752c5f827cccdf98f23fa26d893d44e2889b8b7011e8fdb130524f09fe0f","source":"amazon-inspector","versions":["20.4.9"]},{"id":"GHSA-c4mr-v4hr-px3m","import_time":"2026-08-20T17:25:01.620525926Z","modified_time":"2026-08-20T16:27:59Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"1dab3aa8b740a2027cb64386057967f903bac03f5ba3e907151f6ddafcdc2b41","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0