Malicious code in bnppf-flag-icons (npm)
Description
Source: amazon-inspector (689227d0fdfe4abc108c7dfc5b5b97e752182a410265c141ca33161247619e78)
The package ships poc.js and wires it to both preinstall and postinstall lifecycle hooks in package.json, so it runs automatically on npm install. poc.js requires os and https, reads os.hostname() and os.userInfo().username, and sends them via HTTPS GET to a hardcoded webhook.site collector at webhook.site/
---