{"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_\u003chex\u003e on POSIX or %TEMP%\\dotnet_diag_\u003chex\u003e.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","modified":"2026-08-05T15:51:52.198204388Z","published":"2026-08-05T14:35:06Z","database_specific":{"malicious-packages-origins":[{"versions":["35.2.7"],"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"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/boxy-constants/v/35.2.7"}],"affected":[{"package":{"name":"boxy-constants","ecosystem":"npm","purl":"pkg:npm/boxy-constants"},"versions":["35.2.7"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/boxy-constants/MAL-2026-13033.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"hashes":{"sha1":"9d22416d6f13e18c4680db9590e99379878c7fc6","sha512_sri":"sha512-x3XNZS6EvpMeV5Cd2l9/oEHWIEBoXq4wV+Kdg3XqKU9UtmxMg/yhShqHOlJVY+ZuDldvOZDILs2BQ3vnjz34QA=="},"filename":"boxy-constants-35.2.7.tgz"}],"evidence_files":[{"sha256":"e70e3e3f778d21127dcd0c1d9d907201c8758afe636c661877abea99650004be","tlsh":"76a1999a126671184b70d7e487174816f65bf6633380c2d8f76ca9980f775288372efc","path":"_shim.js"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}