(npm install ではなく npm ci を使う) ・3) Minimize attack surfaces by ignoring run-scripts - パッケージのインストール時にスクリプトフックが動作しないようにする (--ignore-scripts オプションを指定する、あるいは .npmrc に ignore-scripts を追記する) - アップグレード前に、当該パッケージの健全性・信頼性の再確認、差分の確認を行う - 新バージョンリリース後すぐのアップグレードは控える(様子見する) ・4) Assess npm project health ・5) Audit for vulnerabilities in open source dependencies ・6) Use a local npm proxy NPM Security best practices - OWASP Cheat Sheet Series