Urgent.News

What's breaking now, across hundreds of outlets.

Tech

8 Malicious PyPI Packages Use Python Dependencies as Keys to Unlock Hidden Malware

An "active and evolving" campaign targeting the Python Package Index (PyPI) repository has been found to employ a novel technique dubbed DevGating that uses the victim's Python dependencies as a key to unlock the payload. The campaign, according to Island, has been active since September 25, 2026, and spans four waves and eight packages, with the attacker progressively iterating its evasion

8 Malicious PyPI Packages Use Python Dependencies as Keys to Unlock Hidden Malware

A recent campaign targeting the Python Package Index (PyPI) has been discovered to utilize a technique called DevGating, which leverages the victim's Python dependencies as a decryption key for hidden malware. This campaign, active since September 25, 2026, has spanned four waves and eight packages, with the attacker refining their evasion methods.

The latest wave introduces two packages, "mailreader" and "confext," which appear harmless but contain malicious code hidden within a pickle file. DevGating sets the malware apart from traditional threats by remaining dormant until it detects the victim's environment. When the Python process loads the "requests.packages.urllib3.util.connection" dependency, the malware utilizes it to decrypt and launch its payload.

This technique allows the malware to evade detection, even by security tools that analyze packages independently. The campaign also includes three earlier waves, such as "webreader" and "pafer," which employed similar methods to hide malicious code. The ultimate goal of this attack is to infiltrate Python directly from memory on Linux machines and retrieve code from npoint.io, a one-way JSON store that can be updated at any time.

The DevGating technique highlights a gap between how security tools analyze packages and how developers actually use them, as a package can pass static analysis and testing yet execute malicious code when imported into a real project.

Rewritten by urgent.news; may contain errors — check the original.

Source: thehackernews.com

Read the original at thehackernews.com →

Report a problem with this story

Get the day's news by email. Daily, weekly or monthly. Sign up

More in Tech

More from Thursday, 3 December 2026 →