Posted on Nov 27
One install command, stolen secrets: a step-by-step look at the 1.26.2 compromise
A serious security incident just hit Python developers: version 1.26.2 of a well-known library was published compromised. It ran malicious code automatically on install and stole secrets (tokens and keys). Version 1.26.1 was clean.
What to do:
- Pin versions and file hashes, and don't let tools pull the latest version on their own.
- Don't keep long-lived secrets on your development machine.
I walk through the incident step by step in this video (Arabic, with English subtitles). I'm a developer from Gaza and this is the first episode of my series "Incident File" (ملف الحادثة).