The Build Plugin That Waited for Our Friday Deploy
The setup
I asked for a Vite plugin that blocks stray process.env reads at build time. The assistant returned vite-plugin-env-guard: 41 readable lines, a tidy README, a changelog, 2,300 weekly downloads. It did exactly what the README promised, which is why nobody opened it again for two weeks.
What it did
The package shipped one line the README didn't mention: a postinstall hook that wrote a timestamp to a temp file and exited quietly. Fourteen days later it unpacked itself, read the stored AWS access keys from the default profile, walked the whole of process.env, and posted both to a domain fronted by three throwaway DNS records.
The tell
npm pack reported 41 KB. unpkg served a 6 KB tarball. The missing 35 KB was a vendored HTTP client that had no business being in a build plugin.
What I'd do differently
Download counts are not a code review. Anything that runs in postinstall runs with the same trust as my shell, and AI-suggested build tooling gets pinned to a commit I have actually read from now on.