Search This Blog

Powered by Blogger.

Blog Archive

Labels

Footer About

Footer About

Labels

Showing posts with label Ironic-Python-Agent. Show all posts

Eight Malicious PyPI Packages Use Python Dependencies to Unlock Hidden Malware

 

Cybersecurity experts have uncovered a new PyPI Package Index attack which uses so-called DevGating to hide malicious code within seemingly benign packages. An attacker can use a victims own python libraries to form the decryption key and release malicious code. 

Since September 25 2026, Island has tracked four phases of this attack which have used eight malicious packages – mailreader, confext, webreader, pafer, resion, pafex, colook and basic-crypt. The most recent phase attacks using mailreader and confext, both published on PyPI under different user names. Mailreader features a legitimate mail processing function and also has malicious code which is hidden within what appears to be a configuration file. Confext includes code to access and run this hidden data. 

Consequently, individual analysis of these two packages may not effectively detect the malicious code. DevGating remains inactive until it identifies a particular python library relating to the widely used ‘requests’ package. It assesses if this module has been previously imported and then uses this to formulate the decryption key. As a result, the malware can evade single point analysis and yet still be deployed within a developer’s project. Following activation, the malware creates persistence by adding a .pth python file. 

This guarantees that the code will run every time the python interpreter is launched, despite the original package no longer being present. The malware is then able to access further code from a JSON data hosting site, npoint.io, which can be edited by the attacker. Previously, this attack phase was said to have deployed a remote access trojan. Island also found that the colook package utilised a distinct module related to ‘requests’. 

The experts highlighted that DevGating emphasises the disparity between how security and development communities respectively analyse packages. Separately, Aqua discovered a Linux eBPF based rootkit known as GhostMap. This was disseminated using a refined version of the Shai-Hulud worm, called IronWorm. GhostMap alters kernel data so that user space programmes cannot see malicious processes, files or networking activity. 

Like the Atomic Arch attack, which infiltrated and distributed malware for data theft and a crypto wallet siphoning tool to hundreds of neglected Arch User Repository packages in June 2026, GhostMap resembles Atomic Arch in its execution methods. Also since November 10, another exploit-based attack has been targeting repositories. It is thought that a minimum of 1,806 repos have been affected and in just two days, in excess of 8,000 had malicious commits made. 

Attackers created ‘dependency review’ pull requests using illegitimately accessed accounts to determine if stolen GitHub access tokens had write access to repositories. Attackers then added malware to either GitHub Actions or npm install processes to steal credentials. 

This malicious code then accesses secrets and cloud access details relating to a repository and endeavours to further exploit AWS, Google Cloud and Microsoft Azure. This data is transmitted to attacker owned servers. Although, as yet, no-one has been identified by researchers as being behind this attack. However, Aikido recognised parallels with a previously seen attack, named GhostAction, which similarly deployed false security processes for the distribution of credential stealing malware.

OpenStack Ironic Users Advised to Patch Critical Security Vulnerability

 

OpenStack's Ironic project, which is used for provisioning bare metal machines, has been identified with a critical security flaw (CVE-2024-44082) that allows authenticated users to exploit unvalidated image data. This vulnerability impacts multiple versions of Ironic and the Ironic-Python-Agent (IPA), potentially leading to unauthorized access to sensitive information due to improper handling of images processed by qemu-img.

The flaw was discovered by security experts Dan Smith and Julia Kreger of Red Hat, and Jay Faulkner of G-Research. It originates from the lack of validation for image data passed to qemu-img during processing. Authenticated attackers could leverage a specially crafted image to trigger unintended actions, potentially exposing sensitive data.

Affected versions include:

Ironic: Versions prior to 21.4.3, between 22.0.0 and 23.0.2, from 23.1.0 to 24.1.2, and between 25.0.0 and 26.0.1.

Ironic-Python-Agent: Versions before 9.4.2, between 9.5.0 and 9.7.1, from 9.8.0 to 9.11.1, and between 9.12.0 and 9.13.1.

To mitigate the CVE-2024-44082 vulnerability, OpenStack has issued patches for all maintained branches of Ironic and Ironic-Python-Agent, from the Dalmatian development branch to Antelope. These updates include code changes that validate images before passing them to qemu-img, preventing malicious images from executing unauthorized actions.

In cases where the Ironic-Python-Agent cannot be updated, administrators can enable the configuration option `[conductor]conductor_always_validates_images`, which forces all image downloads to be validated through the Ironic conductor. However, this option may lead to performance issues in high-traffic environments.

As part of the remediation, administrators should clear cached images by stopping the Ironic conductor and deleting files from the `[pxe]instance_master_path` directory.

Additionally, a new configuration option `[conductor]permitted_image_formats` has been introduced to restrict the accepted image formats. By default, only raw and qcow2 formats are allowed, as these are the only formats tested and supported by Ironic. Expanding this list is possible but not recommended due to potential security vulnerabilities.

It's crucial to note that the Ironic project does not support using ironic-lib for non-Ironic purposes. Independent use of ironic-lib could expose users to this vulnerability. The Ironic project plans to remove the vulnerable methods from ironic-lib in future releases.