NimbleMamba
- Type
- Backdoor
- Capabilities
- ExfiltrationReconnaissanceDefense evasionPost exploitation
- Delivery
- Spearphishing
- Platforms
- Windows
NimbleMamba is a C# implant used in targeted espionage operations attributed to TA402, also known as Molerats, a likely Palestinian-aligned threat actor. It emerged in campaigns observed from late 2021 into early 2022 and is assessed to be a successor to the group’s earlier LastConn backdoor. The malware has been used against Middle Eastern government entities, foreign policy think tanks, and a state-affiliated airline, consistent with intelligence-collection objectives in the Middle East and North Africa.
The implant is delivered through highly tailored spearphishing chains that use geofenced links and staged payload delivery to restrict access to intended victims. Observed delivery mechanisms included malicious archive files distributed through cloud-hosted links and actor-controlled web infrastructure. NimbleMamba is typically deployed as an obfuscated .NET executable and incorporates anti-analysis measures, including basic virtual-machine checks and regional guardrails that verify whether the infected host appears to be located in targeted countries or configured for Arabic-language use.
Operationally, NimbleMamba retrieves remote configuration data, uses Dropbox API-based communications for command-and-control, and exfiltrates data through the same service. Reported functionality includes screenshot capture, process enumeration, user-interaction checks, and retrieval of additional payloads, enabling follow-on tasking and continued access. Its design and deployment patterns indicate active development and selective use in persistent, victim-focused espionage campaigns.
Associated threat actors
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.
ALUMINUM SARATOGA ... Tools ... BlackShades, BrittleBush, DarkComet, LastConn, Micropsia, NimbleMamba, PoisonIvy, QuasarRAT, XtremeRat
An advanced persistent threat (APT) hacking group operating with motives that likely align with Palestine has embarked on a new campaign that takes advantage of a previously undocumented implant called NimbleMamba.
Techniques & procedures
16 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
The development is the latest example of adversaries using cloud services, such as Dropbox, to launch their attacks
Initial Access
2 techniques
Initial Access
Each variant of TA402’s attack chain led to a RAR file containing one or multiple malicious compressed executables.
The spear-phishing emails, which act as the starting point, contain geofenced links that lead to malware payloads — but only if the recipient is in one of the targeted regions.
Execution
1 technique
Execution
more recent variations of the campaign in December 2021 and January 2022 have involved the use of Dropbox URLs and attacker-controlled WordPress sites to deliver malicious RAR files containing NimbleMamba and BrittleBush.
Stealth
2 techniques
Stealth
NimbleMamba is written in C# and delivered as an obfuscated .NET executable using third-party obfuscators.
NimbleMamba contains multiple guardrails to ensure that the malware only executes on targeted machines. | Additionally, the malware does basic virtual machine checks to avoid detection by looking for common strings that indicate a sample is running in a virtual environment.
Discovery
5 techniques
Discovery
The malware then takes the external IP address, username and computer name retrieved earlier, writes them as comma-separated strings, base64 encodes them with stripped padding bytes and then reverses the string.
Functionalities include capturing screenshots and obtaining process information from the computer.
Functionalities include capturing screenshots and obtaining process information from the computer.
NimbleMamba contains multiple guardrails to ensure that the malware only executes on targeted machines. | Additionally, the malware does basic virtual machine checks to avoid detection by looking for common strings that indicate a sample is running in a virtual environment.
The malware will only continue executing if the country of the resolved IP address country code matches one from the following table or if the host computer has an Arabic language pack (code “AR”) installed.
Collection
1 technique
Collection
Functionalities include capturing screenshots and obtaining process information from the computer.
Command and Control
3 techniques
Command and Control
the malware "uses the Dropbox API for both command-and-control as well as exfiltration," suggesting its use in "highly targeted intelligence collection campaigns."
NimbleMamba uses the Dropbox API for both command and control as well as exfiltration.
From there, the malware starts communicating with Dropbox to obtain a RAR file and a decoy file that is immediately displayed to the user if present.
Exfiltration
2 techniques
Exfiltration
NimbleMamba uses the Dropbox API for both command and control as well as exfiltration.
the malware "uses the Dropbox API for both command-and-control as well as exfiltration"
Observables
12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.