What happened
Attacker authenticated with a 16-month-dormant Mastra contributor account, automated publication of 144 package versions each adding easy-day-js as a dependency, triggering postinstall RAT execution on any host that ran npm install against affected versions between 01:12-02:39 UTC.
Why it matters
Any developer workstation, CI/CD runner, or build environment that ran npm install against a @mastra/* package on June 17, 2026 between 01:12-02:39 UTC should be treated as compromised. The RAT harvests LLM API keys, cloud provider credentials, CI/CD tokens, npm tokens, crypto wallet extensions, and browser history, then establishes a persistent remote execution channel that survives npm uninstall.
Missing authorization check
npm scope publishing access should require periodic re-authorization for dormant contributors - a 16-month-inactive account should not retain write access to 144 production packages. Post-install hook execution in npm packages that interact with AI agent environments should require an explicit supply chain authorization receipt before accessing credential stores.
Would PP block it?
The supply chain injection itself (compromised npm account, typosquat dependency) is outside PP's enforcement surface. PP enforcement activates at the agent action layer: any downstream agent that attempts to use extracted LLM API keys to authorize production actions would fail to produce a valid PP receipt, surfacing the unauthorized access. The gap is that credential extraction itself has already occurred before PP can intervene - PP limits what stolen credentials can authorize, but cannot prevent the theft.