Security Experts:

Connect with us

Hi, what are you looking for?



Kaspersky Analyzes Hacking Group’s Homegrown Attack Tools

Kaspersky Details MuddyWater’s Post-Infection Tools

The MuddyWater cyberespionage group is making use of a broad range of post-infection tools in their attacks, mostly developed in-house, Kaspersky Lab’s security researchers reveal.

Kaspersky Details MuddyWater’s Post-Infection Tools

The MuddyWater cyberespionage group is making use of a broad range of post-infection tools in their attacks, mostly developed in-house, Kaspersky Lab’s security researchers reveal.

First detailed in 2017, MuddyWater is a highly active threat actor mainly focused on governmental and telco targets in the Middle East (Iraq, Saudi Arabia, Bahrain, Jordan, Turkey and Lebanon) and nearby regions (Azerbaijan, Pakistan and Afghanistan).

After successfully compromising a system, the group has been using various tools developed in Python, C# and PowerShell to complete infiltration and perform data exfiltration, including download/execute tools, remote access Trojans (RATs), and tools for extraction of credentials, history and more.

Analysis of the threat actor also revealed the use of deceptive techniques to divert investigations, which include Chinese strings, Russian strings and impersonation of the “RXR Saudi Arabia” hacking group, Kaspersky says. Multiple OPSEC mistakes were also discovered. 

Most of the tools that Kaspersky’s researchers have analyzed are written in Python or PowerShell (some in C#), but the group also leverages utilities such as Py2Exe, PyInstaller, or PS2EXE to compile various scripts into executables for portability. 

The first of the MuddyWater malicious applications that Kaspersky has analyzed is Nihay, a C# Download-and-Execute Trojan basic in nature, designed to download a PowerShell one-liner from a hardcoded URL. 

Next comes the LisfonService RAT, similar to a previously detailed backdoor, and designed to randomly select a URL from an array of hardcoded Proxy URLs that hides the real command and control (C&C) server. 

The malware also collects basic information about the victim (username, domain or workgroup name, machine name, internal and public IP address, and OS version and build). It assigns an ID to registered victims and uses it to request commands from the C&C. is a Python RAT likely developed by MuddyWater and deployed on victim computers as a compiled Python executable. The threat can collect basic information about the machine but also supports a range of commands to log keystrokes, steal passwords from Chrome, kill task manager, achieve remote command execution, and display an alert message to the victim. is a SSH Python script that employs the Python paramiko plugin to create a SSH connection to the C&C (a hard-coded IP address). is a basic Python RAT deployed in the form of a UPX-packed executable. It supports a small number of commands to collect credentials from Chrome, IE, Mozilla, Opera and Outlook; change directories, extract info about victim machine, spawn new processes, receive file from the C&C, and terminate itself. 

MuddyWater also makes use of various VBScript and VBA files in their attacks, Kaspersky’s security researchers explain. Third-party scripts are also used, including several “Lazagne“-based scripts, such as Losi Boomber and Muddy for extracting credentials and stealing browsing history. 

Other similar scripts include (a compiled Python script that establishes a reverse TCP tunnel), and Cr.exe (a compiled Python script based on CrackMapExec, used for credential gathering and lateral code execution). 

The group is also employing PowerShell scripts for different purposes, such as fetching a second-stage PowerShell script, implementing functions to collect user info, and changing policy settings for PowerShell security settings. 

“MuddyWater attacks have been expanding in recent years in terms of targets and malware functionality. The attackers seem to be reasonably well-equipped for their goals, with relatively simple and expendable tools to infiltrate victims and exfiltrate data, mostly using Python and PowerShell-based tools. These tools also seem to allow them flexibility to adapt and customize the toolset for victims,” Kaspersky concludes. 

Related: Highly Active MuddyWater Hackers Hit 30 Organizations in 2 Months

Related: New PowerShell Backdoor Resembles “MuddyWater” Malware

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 this webinar to learn best practices that organizations can use to improve both their resilience to new threats and their response times to incidents.


Join this live webinar as we explore the potential security threats that can arise when third parties are granted access to a sensitive data or systems.


Expert Insights

Related Content


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


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


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


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

Application Security

PayPal is alerting roughly 35,000 individuals that their accounts have been targeted in a credential stuffing campaign.


No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.


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...


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