MAL-2026-16255

    Dashboard / Malicious Package / MAL-2026-16255

    MAL-2026-16255

    Published: 17 Sept 2026Last Modified: 23 Sept 2026Aliases: 
    GHSA-532p-c872-3926

    Summary: Malicious code in randompkga (npm)

    Details: Source: amazon-inspector (c4e7dfd8fb150e4c7f087a17c2ed162a8e48fe7e4e253a68df901f0e775fd68c) package.json declares a postinstall lifecycle script `cd "$INIT_CWD" && npm i randompkgb` that, on `npm install`, installs the additional npm package `randompkgb` into the consumer's project. A companion postinstall.js reads the installer's own package.json at $INIT_CWD, sets `dependencies.randompkgb = "^1.0.0"`, and writes the manifest back to disk, persisting the injected dependency across future installs and CI runs. The caret range is unpinned, so any current or future version of `randompkgb` — whose code is not present in this package and is not controlled by the installer — will be resolved and executed on the installer's machine at install time and on `require`. This is dependency-tree hijacking: the mechanism drops attacker-controlled third-party code into the installer's environment and rewrites source-controlled project state to make the injection durable. Source: ghsa-malware (cfdfcd7cd3af1c7b280e6f13503a472f2b31582e239d6fac0b6cacc1709cf36f) 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.

    Affected packages

    Package

    Name: randompkga

    Purl: pkg:npm/randompkga

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    1.0.9
    1.0.11
    1.0.4
    1.0.22
    1.0.15
    1.0.13
    1.0.16
    1.0.7
    1.0.14
    1.0.5
    1.0.17
    1.0.10
    1.0.12
    1.0.8
    1.0.21
    1.0.18
    1.0.1
    1.0.6
    1.0.20
    1.0.2
    1.0.3
    1.0.19