Stop Trusting npm Scans: Run Untrusted Packages in an Isolated AWS Sandbox
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Practical sandboxing for npm packages using AWS CodeBuild, highly actionable for security-conscious developers.
RepoPilot, a Strands agent on Amazon Bedrock, originally used five static analysis tools to assess npm package safety by reading READMEs and manifests. Adding a single `run_in_sandbox` tool that executes `npm install` inside a disposable AWS CodeBuild container and scans the real build log for supply-chain attacks (like `curl | bash` postinstall hooks) catches threats invisible to static scanners. The sandbox runs untrusted code in AWS, never on the developer's laptop, addressing the 19,500 malicious package versions detected in a single quarter.