tlder@dev — 'DevGating' hides PyPI malware until it sees your real code
tlder@dev:~$
Security/Supply Chain

'DevGating' hides PyPI malware until it sees your real code

  • Discussion
  • Action required
  • High importance

Security firm Island traced eight malicious packages across four waves since late September, all built around one trick: the malware stays locked until it finds a specific module from your project already loaded in the Python process. Sandbox a package in isolation and you see nothing. The operators also split the payload across two accounts, so examining either package alone misses the behavior entirely. Once it fires, it drops a .pth file that re-runs on every Python start — uninstalling the package doesn't clear it. The current payload is a harmless placeholder, but an earlier wave shipped a remote-access trojan, so treat it as live. Named packages include mailreader, confext, webreader, pafer, resion, pafex, colook and basic-crypt; if any sit in a requirements file, pull them and go hunting for a stray .pth.