• EskueroA
    link
    fedilink
    English
    arrow-up
    36
    ·
    1 month ago

    You can mitigate similar attacks by editing your .npmrc

    min-release-age=7 # days
    ignore-scripts=true
    
    • PetteriPano@lemmy.world
      link
      fedilink
      English
      arrow-up
      39
      arrow-down
      2
      ·
      1 month ago

      It’s a good way to keep the exploit around for seven days, too, if you apply it right away.

      • taco_shale032@lemmy.ml
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 month ago

        I agree, I think it would be better to use something like dependabot or renovatebot so you can know of and apply security updates right away.

        • EskueroA
          link
          fedilink
          English
          arrow-up
          11
          ·
          1 month ago

          As long as the bot is not allowed to automatically merge minor version bumps in libraries…

      • EskueroA
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month ago

        How? If you got hit by this you are looking at restoring the system from a safe previous version.

        And the compromised versions get pulled, not superseeded by a new release, so once you rebuild you would go back to a safe version…