Web Security · Senior · Question 50 of 75

Why are npm postinstall scripts a supply chain risk?

Explanation

Many real attacks steal tokens through install scripts. --ignore-scripts with an allowlist for packages that truly need them reduces the risk.

Further reading

Problem with a question

Web Security · Senior · question 50

Test yourself

Take the Web Security · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz