{"id":"MAL-2026-17164","summary":"Malicious code in building-build (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4618f06d0398ff90ef90003464e79f23609a160f4d1606f60cf797fb73fa6dcb)\nThe package's sole content is index.js, which on load schedules a timer that fetches a hardcoded list of privileged same-origin paths (/admin, /dashboard, /flag, /api/flag, /secret, /admin/flag) and POSTs each response body to /addPost as JSON of the form {content: path + '::' + body}. When bundled into a web application, this abuses the ambient session of whichever authenticated user loads the bundle to read privileged routes and relay the contents to the site's posting endpoint. package.json has empty description, author, and keywords, no exports, and the name 'building-build' bears no relation to the shipped behavior — the package has no library surface and exists only to deliver this payload.\n","modified":"2026-09-24T15:30:05.533867995Z","published":"2026-09-24T14:53:06Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-09-24T14:53:06Z","sha256":"4618f06d0398ff90ef90003464e79f23609a160f4d1606f60cf797fb73fa6dcb","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-020516","import_time":"2026-09-24T15:18:49.859933657Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/building-build/v/1.0.0"}],"affected":[{"package":{"name":"building-build","ecosystem":"npm","purl":"pkg:npm/building-build"},"versions":["1.0.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"34fe4cabacfb8e464ebf6ccfa859751ebf78d3ca883ac6cf9d2feccef8f2de55","tlsh":"75f02b8e7eb526069627e03f4a2ff104663b7447644ac950bd9c458a4fa8248aed69cc"},{"path":"package.json","sha256":"43218da1c8ba116ae3f045fd9d2b78bb18b916eb4bdaf3889c786b966c329b19","tlsh":"78d05e240a22583316c152221e259152b2208e6f00807c08529f181c429f67269f9308"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-Aaq3YbcxCVeM6Bp5xxIlD2g59ExePgE4sVd4unablbaZkIkf2C52cFsfr4aoPl9YnezM2YG/mg9TVutAfVupPQ==","sha1":"b4796c5656263cf805b054ef0515979eaf77be8e"},"filename":"building-build-1.0.0.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/building-build/MAL-2026-17164.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}