Skip to content
Heist/ feed
Unrated

Malicious code in building-build (npm)

Type: advisorySource: OSV1 source record

--- _-= 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.

Announced Group revision 1
Original source ↗

MAL-2026-17164

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17164

building-build

Source reference: /affected/0/package/name

Affected versions
1.0.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "building-build",
      "purl": "pkg:npm/building-build",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "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."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/building-build/MAL-2026-17164.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "index.js",
            "tlsh": "75f02b8e7eb526069627e03f4a2ff104663b7447644ac950bd9c458a4fa8248aed69cc",
            "sha256": "34fe4cabacfb8e464ebf6ccfa859751ebf78d3ca883ac6cf9d2feccef8f2de55"
          },
          {
            "path": "package.json",
            "tlsh": "78d05e240a22583316c152221e259152b2208e6f00807c08529f181c429f67269f9308",
            "sha256": "43218da1c8ba116ae3f045fd9d2b78bb18b916eb4bdaf3889c786b966c329b19"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "b4796c5656263cf805b054ef0515979eaf77be8e",
              "sha512_sri": "sha512-Aaq3YbcxCVeM6Bp5xxIlD2g59ExePgE4sVd4unablbaZkIkf2C52cFsfr4aoPl9YnezM2YG/mg9TVutAfVupPQ=="
            },
            "filename": "building-build-1.0.0.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#37013 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement