MAL-2026-17164

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/building-build/MAL-2026-17164.json
JSON Data
https://api.test.osv.dev/v1/vulns/MAL-2026-17164
Published
2026-09-24T14:53:06Z
Modified
2026-09-24T15:30:05Z
Summary
Malicious code in building-build (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (4618f06d0398ff90ef90003464e79f23609a160f4d1606f60cf797fb73fa6dcb)

The 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.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020516",
            "import_time":  "2026-09-24T15:18:49.859933657Z",
            "modified_time":  "2026-09-24T14:53:06Z",
            "sha256":  "4618f06d0398ff90ef90003464e79f23609a160f4d1606f60cf797fb73fa6dcb",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / building-build

Package

Name
building-build
View open source insights on deps.dev
Purl
pkg:npm/building-build

Affected ranges

Affected versions

1.*
1.0.0

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":  "index.js",
            "sha256":  "34fe4cabacfb8e464ebf6ccfa859751ebf78d3ca883ac6cf9d2feccef8f2de55",
            "tlsh":  "75f02b8e7eb526069627e03f4a2ff104663b7447644ac950bd9c458a4fa8248aed69cc"
        },
        {
            "path":  "package.json",
            "sha256":  "43218da1c8ba116ae3f045fd9d2b78bb18b916eb4bdaf3889c786b966c329b19",
            "tlsh":  "78d05e240a22583316c152221e259152b2208e6f00807c08529f181c429f67269f9308"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "building-build-1.0.0.tgz",
            "hashes":  {
                "sha1":  "b4796c5656263cf805b054ef0515979eaf77be8e",
                "sha512_sri":  "sha512-Aaq3YbcxCVeM6Bp5xxIlD2g59ExePgE4sVd4unablbaZkIkf2C52cFsfr4aoPl9YnezM2YG/mg9TVutAfVupPQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/building-build/MAL-2026-17164.json"