The serpent’s tongue: Luring the Python out of its den
Talos Intelligence analyzes the Python package supply chain attack landscape through the complete installation lifecycle: hosting (PyPI, VCS, custom servers), distribution (sdist vs. wheel formats), and installation layers. The research exposes that malicious packages establish footholds during installation itself—not just at import—by abusing setup.py arbitrary code execution and pip configuration vectors (index URLs, environment variables, config files). The work contextualizes this with GitHub’s data showing 69% YoY growth in malware advisories and 17% of GitHub Advisory Database entries targeting the Pip ecosystem, including real campaigns like TeamPCP’s infrastructure compromise. Defensive measures include dependency auditing, version pinning, and installation-time access controls.