high · M2 · MASVS-CODE-3 · PTKD-SUPPLY-UNKNOWN-PACKAGE

    Dependency that does not exist on the registry

    A dependency name is not on npm: it was taken down (often for malware) or invented, for example by an AI assistant. Anyone can register an invented name.

    How it is exploited

    An assistant adds `react-native-secure-storage-plus` to package.json. It does not exist, so the install fails, until an attacker registers that name with a credential-stealing install script ("slopsquatting").

    Why it matters

    The next install pulls attacker code onto developer machines and into the app.

    How to fix it

    1. Check the name against the library's real docs.
    2. Replace it with the correct package, or remove it.
    3. Lock installs to your lockfile in CI (npm ci).

    Does your app have this?

    PTKD checks your build or your source project for PTKD-SUPPLY-UNKNOWN-PACKAGE and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M2)