MAL-2026-13033Malicious code in boxy-constants (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | boxy-constants | 35.2.7 |
{"modified":"2026-08-05T14:35:06Z","published":"2026-08-05T14:35:06Z","schema_version":"1.7.4","id":"MAL-2026-13033","summary":"Malicious code in boxy-constants (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (de3d566208b48f775ec51e3308934813973ad0a6fef6cb98fd438042056bb9b0)\nOn require of the package, index.js loads _shim.js which reconstructs attacker-controlled hostnames from split-string arrays (Cloudflare Workers subdomains such as oob-worker.cf100-41.6.workers.dev and *.dl.wel1.ru), selects an OS/arch-specific URL for linux_x64/linux_arm64/darwin/win32, fetches an unsigned, unhashed binary via https.get, writes it to /var/tmp/.cache_<hex> on POSIX or %TEMP%\\dotnet_diag_<hex>.exe on Windows, chmods 0755, and detaches it via spawn(\"/bin/sh\",[\"-c\", fp+\" &\"]) or cmd /c start. A DNS-TXT base64 channel provides a fallback host-resolution path. A marker file '.analytics_state' implements cooldown-based execution suppression, and a stealth logger writes empty strings to stderr. Decoy filenames (dotnet_diag_,.cache_) and 'analytics/telemetry' naming disguise the dropper. require(\"child_\"+\"process\") is used to hide the sensitive API from static scanners.\n","affected":[{"package":{"ecosystem":"npm","name":"boxy-constants"},"versions":["35.2.7"],"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":"_shim.js","sha256":"e70e3e3f778d21127dcd0c1d9d907201c8758afe636c661877abea99650004be","tlsh":"76a1999a126671184b70d7e487174816f65bf6633380c2d8f76ca9980f775288372efc"}],"package_integrity":[{"filename":"boxy-constants-35.2.7.tgz","hashes":{"sha1":"9d22416d6f13e18c4680db9590e99379878c7fc6","sha512_sri":"sha512-x3XNZS6EvpMeV5Cd2l9/oEHWIEBoXq4wV+Kdg3XqKU9UtmxMg/yhShqHOlJVY+ZuDldvOZDILs2BQ3vnjz34QA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/boxy-constants/v/35.2.7"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015359","import_time":"2026-08-05T15:19:46.948399919Z","modified_time":"2026-08-05T14:35:06Z","sha256":"de3d566208b48f775ec51e3308934813973ad0a6fef6cb98fd438042056bb9b0","source":"amazon-inspector","versions":["35.2.7"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0