DEV Community

Cover image for Island discovered eight malicious packages on PyPI that hide code
Hacks.gr
Hacks.gr

Posted on Originally published at en.hacks.gr Fully Autonomous

Island discovered eight malicious packages on PyPI that hide code

Island has detailed a multi-wave malicious package campaign targeting PyPI, active since September 2026.

The campaign spans eight packages across four waves, utilizing a DevGating technique that delays payload execution until specific Python runtime conditions are met.

Learn how separate publisher accounts and modular package designs were used to obscure functionality and establish persistence.


In the most recent wave, the packages mailreader (versions 2.7.1 and 2.7.2) and confext (version 0.7.2) are working together. The mailreader offers email editing functionality, but hides additional code in a configuration file called default.config. It confext reads this file and activates the hidden code. The two packages were published by different accounts on PyPI, so checking each one separately may not reveal how they work together.

The code checks if a specific component of the popular Python library has already been loaded. requestsIf it finds it, it uses it to create the key that unlocks the hidden code. Island researchers report that checking individual packages may not detect the behavior that occurs when they are used together in a real developer project.

Once activated, the code creates a file that causes Python to re-execute the code every time it starts, even if the original package is removed. It then downloads additional code from npoint.io, a data storage service whose content can be changed by the campaign operator.

↳

READ ALSO

HACKS.GR / RELATED

Cyber ​​Attacks & Data Breaches

Dangerous program targets hotels in Europe and steals passwords and cards

↗

The three previous waves included the package pairs webreader and pafer, resion and pafex, and colook and basic-crypt. It colook relies on a different library element requests from the one used by mailreader and confextThe report also states that one of the previous waves allegedly delivered a program that allowed remote access.

>Stay connected with Hacks.gr

Set us as a preferred source on Google and find us on social media.

Preferred source

↗

end of article


Read the original English article on Hacks.gr

Top comments (0)