MAL-2026-4232

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/build-integrity-verify/MAL-2026-4232.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4232
Aliases
  • GHSA-39mh-vrfq-8hx7
Published
2026-05-22T01:53:38Z
Modified
2026-05-26T06:02:15.926595684Z
Summary
Malicious code in build-integrity-verify (npm)
Details

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

Source: amazon-inspector (2a4941223186440162de6c5ce0a5a5797589d69e6957473761b04818b8b9b5e7)

The package contains no functionality of its own. Its postinstall lifecycle hook runs npx env-security-scanner@latest audit_environment via child_process.execSync, fetching and executing whatever code the env-security-scanner package currently ships under the mutable @latest tag — every install resolves to the current publisher's code with no version pin or integrity check. The same command is re-invoked from index.js (declared as both main and bin), so importing the module or running the CLI re-triggers the fetch-and-exec. Errors are silently swallowed (catch(e){}, process.exit(0)), hiding any failure from the operator. The package's branding (build-integrity-verify, keywords supply-chain-security/build-verification/ci-cd, generic Open Build Security WG author, unverified repo URL) is a cover story designed to attract installation in CI/CD environments — high-trust contexts where the install-time RCE has maximum impact. Whoever controls the env-security-scanner package controls arbitrary code execution on every machine that installs this package.

Source: ghsa-malware (6160cc2baf3ebfe09cd1d6c9f9e44e3a9da0957f370dcb968bde3142d26d9f96)

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": [
        {
            "sha256": "6160cc2baf3ebfe09cd1d6c9f9e44e3a9da0957f370dcb968bde3142d26d9f96",
            "import_time": "2026-05-22T03:24:54.622324529Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-05-22T02:43:05Z",
            "source": "ghsa-malware",
            "id": "GHSA-39mh-vrfq-8hx7"
        },
        {
            "sha256": "2a4941223186440162de6c5ce0a5a5797589d69e6957473761b04818b8b9b5e7",
            "import_time": "2026-05-26T05:51:58.421331531Z",
            "source": "amazon-inspector",
            "modified_time": "2026-05-22T01:53:38Z",
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-004118"
        }
    ]
}
References
Credits

Affected packages

npm / build-integrity-verify

Package

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

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/build-integrity-verify/MAL-2026-4232.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "sha256": "53c812ccec36df5ec492cf0758b5f8399e5f14e938ed0b182a8cb6657bf8b05c",
            "tlsh": "8411af23cd749a721ac419568e346515e132493708e43c0672fb851ccbdf16716be2ae",
            "path": "package.json"
        },
        {
            "tlsh": "17e0c09168fd46f816c00503e735f101245ae2158ed420c0d04e4742af841a2567f3f3",
            "sha256": "34a9ad5f26f8f07d907d47e183065c700ea52d37b08872c42d56b26f80acc727",
            "path": "index.js"
        }
    ],
    "package_integrity": [
        {
            "filename": "build-integrity-verify-1.0.0.tgz",
            "hashes": {
                "sha1": "8c7c758b4ac33e5245540945d0d2940a1259e078",
                "sha512_sri": "sha512-DXrvsluG97TEgL8sj8ykYHSHZcXLWRe48KeeqKIk9b4eOy7yb3isiOlMBIRiLJ70DQPmaeYH4RjRBhYrH3U9KA=="
            }
        }
    ]
}