• techpeakedin1991@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 hours ago

    Does disabling install scripts actually do anything though? The attack would still work if put in the code itself, no? The only difference I can see is that it would run when the project is run instead of when the package is installed.

    • TechnoCat@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 hour ago

      On closer inspection, preventing post-install would have fixed it too: “The attack exploited a transitive dependency, plain-crypto-js@4.2.1, which executed a postinstall script to deploy the RAT.”