Island, a security firm, detailed a software supply chain campaign on the Python Package Index (PyPI) in research published December 2. The firm calls the technique "DevGating."
According to Island, the activity ran since September 25 in four waves of eight packages. Four of those packages had not been reported before. The packages were working Python utilities, one of them a mail parser.
Each wave split the harmful code between two packages from separate accounts, so neither package showed the full chain when checked alone. The payload was encrypted. Its key was a module name taken from the victim's running Python process. Island said a sandbox that imports a package by itself never loads that module and sees nothing. A real project usually loads it.
Island said keying malware to its environment was not new. It said it had not seen the key drawn from code the victim had already loaded. The firm counted eight evasion layers, aimed at controls including code review, functional testing, sandboxing, endpoint scanning and domain reputation.
The operator published an updated version of one package on December 1. It added features and kept the malicious chain. As of November 16, each package had at most a few hundred downloads. Island said it did not know who installed the latest pair or whether any installs ran with the triggering module loaded.
According to Island, the chain planted a