We are sitting down with a veteran in software supply chain security to dissect a sophisticated threat surfacing in the Python ecosystem known as “DevGating.” Since late 2025, researchers have been tracking a series of malicious waves on the Python Package Index (PyPI) that successfully evade modern sandboxes by remaining dormant until they reach a legitimate developer environment. Our conversation explores the technical nuances of how these attacks split payloads across multiple accounts, utilize running processes as encryption keys, and establish persistence that survives package uninstallation.
When malicious code is split across two separate accounts to hide the full chain, how does that defeat standard security scans?
Most automated scanners analyze packages in isolation, looking for suspicious patterns within a single download or repository. By dividing the harmful logic between two distinct accounts, the attacker ensures that neither piece looks dangerous when scrutinized on its own. We observed four waves of eight packages since September 25 where one account might host a functional mail parser while another provides a seemingly benign utility. This fragmentation effectively blindsides domain reputation tools and functional tests that aren’t designed to correlate behavior across unrelated accounts. It is a calculated shell game that leaves security analysts frustrated as they find only “clean” code during their manual reviews.
The concept of “DevGating” relies on a specific key drawn from the victim’s running process; why is this move so much more effective than previous evasion techniques?
Traditionally, malware might check for a specific disk size to detect a sandbox, but this campaign uses the name of a module already loaded in the developer’s active Python process as the decryption key. If a sandbox environment imports the package alone, it won’t have those specific project-related modules running, causing the payload to remain a dormant, encrypted blob. It creates a chillingly effective filter where the code only “wakes up” when it feels the warmth of a real, busy development environment. With eight distinct layers of evasion, this technique targets everything from endpoint scanning to manual code review. You can see the craftsmanship in how it ignores the “sterile” environment of a security lab to find a high-value human victim.
Once the malware is executed, how does it manage to survive even if the developer realizes something is wrong and uninstalls the original package?
The infection is designed to be incredibly sticky, planting a Python startup hook that persists long after the initial package is removed from the system. On Linux machines, the malware takes it a step further by running Python directly from memory, which is a nightmare for standard file-system monitors to detect. Even if you run a removal command, the underlying interpreter remains compromised, potentially affecting every subsequent project or continuous integration job the developer touches. This persistence allows the attacker to maintain a quiet bridge to a developer web service, where they can swap harmless placeholders for a remote access trojan at a moment’s notice. It turns a minor installation error into a permanent backdoor that can reach deep into source code and cloud secrets.
What should organizations be doing to protect their source code and cloud secrets from these types of multi-layered supply chain attacks?
We have to move past the idea that a package is safe just because it passes a test in a sterile clean-room environment. Defenders must start running their security checks with common libraries already loaded to mimic the actual state of a developer workstation. I strongly advise organizations to treat every bundled pickle file or compiled module in small utilities as high-risk code that requires deep inspection. It is also vital to monitor for unexpected Python startup files and any interpreters that appear to be launching from memory. These attacks are surgical, aimed at hijacking CI/CD pipelines where a single compromised hook can expose an entire company’s infrastructure.
What is your forecast for software supply chain security?
Through 2026 and beyond, I expect an “arms race” in environmental awareness where malware becomes increasingly picky about the specific developer personas it chooses to attack. Attackers will likely use more context-aware triggers, ensuring their payloads only activate when they detect specific high-value cloud credentials or proprietary modules. We are moving away from mass-infection attempts toward quiet, long-term persistence that is nearly impossible to replicate in a laboratory setting. This shift forces our defense strategies to move toward behavioral monitoring that understands the “normal” state of a developer’s entire workspace.
