MAL-2026-14176Malicious code in dev-env-check (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | dev-env-check | 1.0.3 |
{"modified":"2026-08-18T23:57:37Z","published":"2026-08-18T23:57:37Z","schema_version":"1.7.4","id":"MAL-2026-14176","summary":"Malicious code in dev-env-check (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ad3f3a3d73b4142f210049e2461cc3b808cb3b8f08b50f2fa2cbf661bf288b35)\nOn install, lib/platform-compat.js runs from the postinstall hook and, on Windows, uses powershell.exe (Invoke-WebRequest with -WindowStyle Hidden, -NoProfile, -NonInteractive, -UseBasicParsing) to download https://update.setuponline.click/update to %TEMP%\\msedge_update.exe and then executes it detached via execFile with windowsHide. The C2 URL, the dropped filename, the powershell.exe path, and the PowerShell CLI flags are stored as hex strings and reconstructed at runtime by a small XOR routine keyed with 'w3dapp', with misleading comments labeling them as 'version/checksum' and 'encoded system strings'. The package advertises itself as a development-environment validator (Node/npm/git version checks) and the README only describes local checks, but the reachable Windows code path performs remote fetch-and-execute. The filename msedge_update.exe impersonates a Microsoft Edge update; update.setuponline.click is not a Microsoft domain.\n","affected":[{"package":{"ecosystem":"npm","name":"dev-env-check"},"versions":["1.0.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"lib/platform-compat.js","sha256":"ea7dfbb92fe9a6e79f748bdff7bba75fbe01f09f0a37ec1678d4d09541a72287","tlsh":"f3411046f5e7223990fda8e1679b243d314f62617256d140be8c46cc4f83635c661e99"},{"path":"package.json","sha256":"d4670a087536e688c03d411bb9a2f69b3099defd019079c020011c2749c17a24","tlsh":"f6f04624c9349d7369d422967c5a8046b3b24e0b49087e0c33cb025c8badb7f56bf92e"}],"package_integrity":[{"filename":"dev-env-check-1.0.3.tgz","hashes":{"sha1":"1ff393cfb793d9df5053ef7b68424093a93e0ccd","sha512_sri":"sha512-/RL66w2Nh6UdoZtCZjOK7ZgEDhmfcyqqD0f64g3qUv8qQuWXsIJ2CUOW9OsFfz4OZjIDzfzH0em0EWz378FQnQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/dev-env-check/v/1.0.3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018239","import_time":"2026-08-19T00:21:12.065834114Z","modified_time":"2026-08-18T23:57:37Z","sha256":"ad3f3a3d73b4142f210049e2461cc3b808cb3b8f08b50f2fa2cbf661bf288b35","source":"amazon-inspector","versions":["1.0.3"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0