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.osv.dev/v1/vulns/MAL-2026-17164
Aliases
  • GHSA-2fq4-2r26-qr64
Published
2026-09-24T14:53:06Z
Modified
2026-09-30T07:00:08Z
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.

Source: ghsa-malware (847ce0ff3120a15a7a4d872e3a00f22f1917a828ca61d5767a0b24d36b933aa0)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

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"
            ]
        },
        {
            "id":  "GHSA-2fq4-2r26-qr64",
            "import_time":  "2026-09-30T06:43:04.806853109Z",
            "modified_time":  "2026-09-30T05:51:33Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "847ce0ff3120a15a7a4d872e3a00f22f1917a828ca61d5767a0b24d36b933aa0",
            "source":  "ghsa-malware"
        }
    ]
}
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

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

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"
    },
    {
        "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"