medium · M2 · MASVS-CODE-3 · PTKD-SUPPLY-NEW-PACKAGE

    Brand-new, little-used dependency

    A direct dependency was first published very recently and is barely used. That is normal for some packages, but it is also the profile of a squatted or malicious one.

    How it is exploited

    A package published last week under a name close to a popular one gets suggested by an AI assistant and added without review.

    Why it matters

    Possible malicious code in your build; low risk if the package checks out.

    How to fix it

    1. Open its npm page: who publishes it, which repository, how long has it existed?
    2. Prefer the established package with the same purpose.
    3. Mark it reviewed once you're sure.

    Does your app have this?

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

    Scan your app

    References

    Related checks (M2)