ShipSafe has 1 sourced item that involve PyPI: 0 build stories and 1 security incident. Each links to the original post and ends with a fix prompt you can paste into your own AI tool.
Where PyPI builders get stuck
Leaked secrets & API keys (1): Keys in front-end code or public repos get found and abused within hours. Keep secret keys server-side, set spend limits and turn on secret scanning.
How to use these PyPI stories
Read the summary and the original post, then copy the fix prompt into PyPI or whichever AI tool you build with. Each prompt asks the AI to check your own project for the same problem and explain its plan before changing anything. Most of these problems are not unique to PyPI, so the topic links above show the same mistake in other tools.
LiteLLM's postmortem says the poisoned 1.107.0 release began with a config file holding an internal platform master key, committed to a public repo on 27 May. The commit was removed but the key was not revoked; on 10 Oct an attacker used it to pull a GitHub token with owner-level access to LiteLLM's repos. The Register says the bad package got about 49,000 downloads in under two hours, per Wiz.