LastConn
- Type
- Backdoor
- Capabilities
- ExfiltrationPersistenceDefense evasion
- Delivery
- Spearphishing
- Platforms
- Windows
LastConn is a .NET backdoor associated with the Palestinian-aligned espionage group Molerats, also tracked as TA402 and commonly linked to the broader Gaza Cybergang ecosystem. It has been assessed as an updated successor to SharpStage and was later superseded by NimbleMamba. The malware has been used in targeted intelligence-collection operations against Middle Eastern government organizations and other entities with diplomatic or policy relevance in the region, including victims in countries such as Israel, the United Arab Emirates, and Turkey.
LastConn has been delivered through spearphishing campaigns and is tied to operations focused on exfiltrating sensitive information. Its functionality and tradecraft overlap with SharpStage, including implementation in .NET, use of the Dropbox API for communications, and checks related to Arabic-language environments that help constrain execution to intended victims. Public analysis also notes obfuscation and anti-analysis measures including .NET Reactor protection, encrypted strings, control-flow obfuscation, junk code, and a date-based execution guard in at least one analyzed sample.
Operationally, LastConn is best characterized as a targeted espionage implant used for persistent remote access and data theft rather than broad criminal deployment. Reporting links it to the same operator set that later adopted NimbleMamba, with technical continuity across tooling and infrastructure usage supporting that relationship.
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
...resulting in the development of NimbleMamba, which is designed to replace LastConn, which, in turn, is believed to be an upgraded version of another backdoor called SharpStage...
Techniques & procedures
6 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
The prime focus of the attackers is to exfiltrate sensitive information in order to gather intelligence, using spear-phishing as an initial infection vector.
Stealth
3 techniques
Stealth
One of the discovered samples utilised an obfuscator that De4Dot could not successfully deobfuscate, known as .NET Reactor... the main methods of protection in this binary surround the string encryption and control flow obfuscation, as well as the addition of junk code.
At a first look, my thoughts were that the main payload was packed, resulting in the large file size, however upon opening the sample in dnSpy we can see that it is not packed
However, just before that we do encounter the very first “anti-analysis” check, which is a date check. The sample will refuse to continue execution if it has been executed after the 30th of June, 2021.
Discovery
1 technique
Discovery
However, just before that we do encounter the very first “anti-analysis” check, which is a date check. The sample will refuse to continue execution if it has been executed after the 30th of June, 2021.
Command and Control
1 technique
Command and Control
NimbleMamba uses the Dropbox API for both command and control as well as exfiltration.
Exfiltration
1 technique
Exfiltration
The SharpStage backdoor, developed in .NET, utilised DropBox API for exfiltration... LastConn also implemented similar checks, as well as the DropBox API for communication.
Observables
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.