Lemon Duck is a monerocrypto-mining malware. This malware was first spotted in China but has hence spread to other parts of the world. Lemon Duck starts with single infection and spreads rapidly across the entire network converting the resources of an organization into cryptocurrency mining slaves.

Researchers from TrapX-Labs have reported that Lemon Duck has especially targeted IoT Devices running Windows 7 Embedded in its campaigns. Microsoft has declared that no further updates would be released for Windows 7. In the absence of regular updates, the severity of the upcoming malware attacks on systems running Windows 7 could be disastrous. Also, it is distressing to indicate that 200 million devices are still using the outdated Windows 7.

Lemon Duck malware was written in Python using PyInstaller for compilation. This malware’s main strategy is fileless infection using PowerShell modules. The infection on the network happens through the exploitation of a critical SMB vulnerability(CVE-2017-0144) and brute-force attacks.


Description

Malware Capabilities

  • Delivers XMR miners to mine for cryptocurrency.
  • Uses fileless infection techniques.
  • Steals information such as computer name, machine UUID, MAC address, and IP address, etc. and sends them to the C&C server.
  • Modifies Windows Firewall settings to open port 65529/TCP on compromised machines.
  • Implants 32- and 64-bit versions of malicious DLL components to removable and network drives.
  • Register shortcut (LNK) files in the startup folder to execute malicious javascript upon reboot.
  • Executes PowerShell code remotely using WMI.
  • Uses open-source tools such as PowerDump, freerdp, and Mimikatz to carry out various actions.
  • Includes an Installation Tracking C2 module which reports the machine profile and status of every executed module to the C2 server. Another Continuous Monitoring C2 module is used to send details about the compromised user accounts, machine configuration, user privilege and exploitation or mining payloads status.
  • Leverages the Windows Scheduled Tasks mechanism to download fresh copies of malicious scripts at regular intervals.

Malware Infection and Propagation Methods:

1) EternalBlue Exploit (CVE-2017-0144): Lemon Duck scans the network on TCP Port 445 using the PingCastle scanner to look for devices with the EternalBlue vulnerability. Lemon Duck launches ‘SMB Exploitation Module’ on devices that are vulnerable to the EternalBlue exploit.

2) Windows LNK Remote Code Execution Vulnerability (CVE-2017-8464): LemonDuck infects removable USB drives and network drives by implanting malicious DLLs in a folder along with a shortcut (LNK) file. When a user opens the drive in any application which parses the .lnk Shortcut file, the shortcut executes the malicious DLL component.

3) Mimikatz module and PassTheHash attacks: A powershell script is used to download a Mimikatz module from a specific URL. The Mimikatz module is used for collecting user information. This information along with hard-coded lists of passwords and NTLM hashes is used to launch PasstheHash(PtH) and brute force attacks.

4) RDP brute force attacks: Lemon Duck includes an RDP module which scans for the open servers using the default RDP Port 3389 and attempts to login with the “administrator” user name. A freerdp module downloaded with the Mimikatz module, provides a list of hardcoded passwords which are used in RDP brute force attacks.

5) Brute forcing of MS-SQL servers: A script included in the malware checks for an open port 1433/TCP used by the Microsoft SQL service and tries to brute force against the “SA”(system administrator) user account.


SanerNow lists the potential targets for malwares in an enterprise network (shown in the figures below).

Fig1. SanerNow listing of potential targets in an organization for Lemon Duck Malware

Fig2. Details about Lemon Duck Malware

SanerNow detects and mitigates the vulnerabilities which could be used as infection vectors for spreading Lemon Duck Malware. Download SanerNow and keep your systems updated and secure.


General Recommendations

1) Keep your systems up-to-date with the latest security patches.
2) Use strong and complex passwords
3) Refrain from opening any suspicious emails or links.
4) Manage network shares and disable anonymous logins.


Subscribe For Latest Updates

Get the latest research, best practices, industry trends and cybersecurity blogs from SecPod security experts

Invalid email address
We promise not to spam you. You can unsubscribe at any time.
Summary
Lemon Duck Malware : Infecting outdated Windows systems using EternalBlue
Article Name
Lemon Duck Malware : Infecting outdated Windows systems using EternalBlue
Author
Publisher Name
SecPod Technologies
Publisher Logo

Leave a Reply

Your email address will not be published. Required fields are marked *