Malicious PyPI packages hide payloads using Python dependencies
Dec 3, 2026 · Summarized by Fundy Tech from 4 sources
Researchers found eight malicious PyPI packages that hide malware until they detect specific Python dependencies. The campaign has been active since September 25, 2026.
Key points
- Island says the campaign spans four waves and eight packages.
- DevGating uses loaded Python dependencies as the decryption key.
- The malware can set up a .pth file for persistence.
- One earlier wave reportedly delivered a RAT.
Why it matters
Developers and small businesses that install Python packages may not notice this kind of hidden malware during review. It can stay dormant until it sees the right environment, then run code from memory and keep coming back on restart. Check package sources carefully and watch for unusual dependency behaviour.
Who’s affected: Python developers and PyPI users
What to do
- Audit recent PyPI installs.
- Check for unexpected .pth files.
- Review dependency chains before deployment.
- Remove suspicious packages from development systems.
Original reporting
Not sure if this affects you?
Fundy Tech helps businesses and households across Atlantic Canada stay patched, protected and up to speed. Tell us what you’re running and we’ll tell you straight whether you need to act.
