←back to thread

1208 points jamesberthoty | 1 comments | | HN request time: 0s | source
Show context
philipwhiuk ◴[] No.45261128[source]
post-install seems like it shouldn't be necessary anyway, let alone need shell access. What are legitimate JS packages using this for?
replies(4): >>45261294 #>>45261367 #>>45261717 #>>45262695 #
1. tln ◴[] No.45262695[source]
I think these compromises show that install hooks should be severely restricted.

Something like, only packages with attestations/signed releases and OIDC-only workflow should allow these scripts.

Worm could propogate through the code itself but I think it would be quite a bit less effective.