We were three days from launch and our auth setup had grown to eleven providers. Someone on the team asked the assistant for "a package that bundles the extra NextAuth providers" and it answered with confidence: next-auth-providers-kit. Clean README. Two hundred weekly downloads. A types file that actually type-checked.
What the install did
The postinstall ran a base64 blob out of /tmp. Nobody noticed because our CI already prints forty seconds of noise during installs. The payload read process.env wholesale and picked out SMTP_PASSWORD, NEXTAUTH_SECRET and DATABASE_URL.
How we found out
Our transactional email provider suspended the account for "unusual sending patterns" at 02:14. Someone had authenticated with our SMTP credentials and was sending phishing from our domain. The pastebin with our connection string appeared an hour later.
Damage
Eleven days of customer email in a spammer's hands, a database password rotated at 3am, and a launch postponed by a week. The package still resolves from npm today.
What actually works
We now install with --ignore-scripts everywhere, and no dependency gets added unless someone pastes the registry page into the PR. Boring, but nobody has explained a 02:14 suspension since.