BadPatch is a Windows espionage malware family associated with long-running Middle East-focused activity and linked by MITRE to the Gaza Hackers group, also known as Molerats. It functions as a surveillance and collection implant with capabilities centered on victim monitoring, host profiling, document theft, and data exfiltration over HTTP-based command and control.
Observed functionality includes keylogging, screenshot capture, local file collection, and system reconnaissance. BadPatch can capture screenshots in JPG format and exfiltrate them, record keystrokes, collect host metadata such as operating system details, MAC address, and computer name, and search for documents and archives of interest based on extension. Reported targeted file types include common office documents, PDFs, databases, and compressed archives, indicating an emphasis on intelligence collection from user workstations. Collected information may be staged in local log files before exfiltration.
For environmental awareness, BadPatch uses WMI to enumerate installed security products, consistent with security software discovery prior to follow-on actions. For persistence, it establishes a foothold by placing a shortcut to its executable in the Windows Startup folder so it will execute after user logon. Command and control communications have been observed over HTTP, and reporting has also associated the family with command and control of Windows systems over a nonstandard SMTP-related port.
BadPatch has also been linked through shared infrastructure and malware-family overlap to Android espionage activity in the Middle East, including the Welcome Chat operation targeting Arabic-speaking users. That linkage suggests a broader campaign ecosystem operated by the same threat cluster, though BadPatch itself is directly documented here as a Windows malware family.
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The Welcome Chat espionage app belongs to the very same Android malware family that we identified at the beginning of 2018. That malware used the same C&C server, pal4u.net, as the espionage campaign targeting the Middle East that was identified in late 2017 by Palo Alto Networks and named BadPatch.
The Welcome Chat espionage app belongs to the very same Android malware family that we identified at the beginning of 2018. That malware used the same C&C server, pal4u.net, as the espionage campaign targeting the Middle East that was identified in late 2017 by Palo Alto Networks and named BadPatch.
14 distinct techniques documented for this family, organized by ATT&CK tactic.
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[BadPatch](https://attack.mitre.org/software/S0337) establishes a foothold by adding a link to the malware executable in the startup folder.(Citation: Unit 42 BadPatch Oct 2017)
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[BadPatch](https://attack.mitre.org/software/S0337) establishes a foothold by adding a link to the malware executable in the startup folder.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) attempts to detect if it is being run in a Virtual Machine (VM) using a WMI query for disk drive name, BIOS, and motherboard information. (Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) has a keylogging capability.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) collects the OS system, OS version, MAC address, and the computer name from the victim’s machine.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) searches for files with specific file extensions.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) attempts to detect if it is being run in a Virtual Machine (VM) using a WMI query for disk drive name, BIOS, and motherboard information. (Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) uses WMI to enumerate installed security products in the victim’s environment.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) collects files from the local system that have the following extensions, then prepares them for exfiltration: .xls, .xlsx, .pdf, .mdb, .rar, .zip, .doc, .docx.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) has a keylogging capability.(Citation: Unit 42 BadPatch Oct 2017)
The content repeatedly describes adversaries and malware storing collected data, command output, credentials, archives, or files in local temporary folders, working directories, hidden directories, registry locations, recycle bins, or specific files prior to exfiltration.
[BadPatch](https://attack.mitre.org/software/S0337) stores collected data in log files before exfiltration.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) captures screenshots in .jpg format and then exfiltrates them.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) uses HTTP for C2.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) uses SMTP for C2.(Citation: Unit 42 BadPatch Oct 2017)
[BadPatch](https://attack.mitre.org/software/S0337) can download and execute or update malware.(Citation: Unit 42 BadPatch Oct 2017)
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
26 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.