Connect with us

Hi, what are you looking for?



Iran-Linked Hackers Use Python-Based Backdoor in Recent Attacks

The Iran-linked Chafer threat group has used a new Python-based backdoor in November 2018 attacks targeting a Turkish government entity, Palo Alto Networks reveals. 

The Iran-linked Chafer threat group has used a new Python-based backdoor in November 2018 attacks targeting a Turkish government entity, Palo Alto Networks reveals. 

Active since at least 2014 and mainly focused on surveillance operations and the tracking of individuals, the hacking group was observed expanding its target list and the arsenal of tools over the past couple of years. 

The recently observed attacks leveraged infrastructure previously associated with the group, namely the win10-update[.]com domain and delivered the new malicious payload from IP address 185.177.59[.]70, Palo Alto Networks’ security researchers reveal

Dubbed MechaFlounder, the newly observed payload appears to be the first Python-based malware used by the threat actor. Used as a secondary payload, the backdoor is supposedly used for post-exploitation activities on the compromised host. 

Delivered from the attackers’ command and control (C&C) server via an HTTP request, the payload was bundled as a portable executable using PyInstaller. The backdoor allows attackers to upload and download files and run additional commands and applications on the compromised system.

Once installed, the malware enters a loop and continuously attempts to communicate with its C&C server using HTTP. Based on received commands, the backdoor can terminate connection, download/upload files, set sleep interval between C&C beacons, change the current working directory, and attempt to run supplied data as a command on the command line.

When uploading a file from the compromised system, the Trojan uses the Browser class in the mechanize module to submit the file to an HTML form on the C&C server, the security researchers explain. It also reports back on the result of executed commands. 

Analysis of the malware also revealed the use of a parameter previously seen in VBScript downloader payloads installed by delivery documents associated with both Oilrig and Chafer, which suggests the two groups might be sharing code. 

Advertisement. Scroll to continue reading.

While the researchers couldn’t establish the specifics of code sharing between the two groups, the fact that the actors are collaborating isn’t surprising. In fact, Iranian actors were observed sharing malware code before. 

“MechaFlounder was created by Chafer using a combination of actor developed code and code snippets freely available online in development communities. The MechaFlounder Trojan contains enough functionality for the Chafer actors to carry out the necessary activities needed to accomplish their goals, specifically by supporting file upload and download, as well as command execution functionality,” Palo Alto Networks concludes. 

Related: Iran-Linked Hackers Use Array of Tools to Steal Data: FireEye

Related: Iran-Linked Chafer Group Expands Toolset, Targets List

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join us as we delve into the transformative potential of AI, predictive ChatGPT-like tools and automation to detect and defend against cyberattacks.


As cybersecurity breaches and incidents escalate, the cyber insurance ecosystem is undergoing rapid and transformational change.


Expert Insights

Related Content


The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.


As it evolves, web3 will contain and increase all the security issues of web2 – and perhaps add a few more.


A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...


Luxury retailer Neiman Marcus Group informed some customers last week that their online accounts had been breached by hackers.


Zendesk is informing customers about a data breach that started with an SMS phishing campaign targeting the company’s employees.


Satellite TV giant Dish Network confirmed that a recent outage was the result of a cyberattack and admitted that data was stolen.

Artificial Intelligence

The release of OpenAI’s ChatGPT in late 2022 has demonstrated the potential of AI for both good and bad.


A new study by McAfee and the Center for Strategic and International Studies (CSIS) named a staggering figure as the true annual cost of...