qaz@lemmy.world to Selfhosted@lemmy.worldEnglish · 1 month agoAxios JavaScript library has been compromised with malware in supply chain attackgithub.comexternal-linkmessage-square12fedilinkarrow-up1230arrow-down10cross-posted to: opensource@lemmy.ml
arrow-up1230arrow-down1external-linkAxios JavaScript library has been compromised with malware in supply chain attackgithub.comqaz@lemmy.world to Selfhosted@lemmy.worldEnglish · 1 month agomessage-square12fedilinkcross-posted to: opensource@lemmy.ml
minus-squareEskuero@lemmy.fromshado.wslinkfedilinkEnglisharrow-up36·edit-21 month agoYou can mitigate similar attacks by editing your .npmrc min-release-age=7 # days ignore-scripts=true
minus-squarePetteriPano@lemmy.worldlinkfedilinkEnglisharrow-up39arrow-down2·1 month agoIt’s a good way to keep the exploit around for seven days, too, if you apply it right away.
minus-squaretaco_shale032@lemmy.mllinkfedilinkEnglisharrow-up8·1 month agoI 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.
minus-squareEskuero@lemmy.fromshado.wslinkfedilinkEnglisharrow-up11·1 month agoAs long as the bot is not allowed to automatically merge minor version bumps in libraries…
minus-squaremagikmw@piefed.sociallinkfedilinkEnglisharrow-up3·1 month agoWell yes, one can misuse any tool.
minus-squareEskuero@lemmy.fromshado.wslinkfedilinkEnglisharrow-up2·1 month agoHow? 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…
You can mitigate similar attacks by editing your .npmrc
min-release-age=7 # days ignore-scripts=trueIt’s a good way to keep the exploit around for seven days, too, if you apply it right away.
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.
As long as the bot is not allowed to automatically merge minor version bumps in libraries…
Well yes, one can misuse any tool.
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…