BackdoorDiplomacy — threat against Ministries of Foreign Affairs
BackdoorDiplomacy is a group that has targeted Ministries of Foreign Affairs and telecommunications companies in Africa and the Middle East since 2017.
This criminal group, classified as an APT (Advanced Persistent Threat), favours vulnerable devices exposed on the Internet, typically web servers and network device management interfaces.
Once inside the system, the group employs open-source tools for scanning and lateral movement activities. Interactive access to machines is obtained through the use of the Turian backdoor or through remote administration tools (RAT).
ESET Analysis: https://www.welivesecurity.com/2021/06/10/backdoordiplomacy-upgrading-quarian-turian/
Similarities with Known Groups
The BackdoorDiplomacy group shares certain characteristics with known groups originating from Asia. In particular, the compromise mechanisms deployed are very similar to those of the groups Rehashed Rat, MirageFox (APT15), and CloudComputating.
The backdoor used (Turian) is very similar to a backdoor called Quarian, also used in attacks against the diplomatic sector.
Compromise Chain
BackdoorDiplomacy exploits vulnerabilities in devices publicly exposed on the Internet, such as Microsoft Exchange servers or F5 BIG-IP appliances. Reconnaissance and lateral movement operations follow, conducted with the aid of open-source tools:
- EarthWorm, a simple network tunnel with SOCKS v5 server and port forwarding functionality
- Mimikatz
- Nbtscan, a command-line scanner for NetBIOS
- NetCat, a network utility that reads and writes data across network connections
- PortQry, a tool to display the status of TCP and UDP ports on remote devices
- SMBTouch, used to determine whether a target is vulnerable to EternalBlue
- Various tools from the ShadowBrokers dump of NSA tools, including but not limited to:
- DoublePulsar
- EternalBlue
- EternalRocks
- EternalSynergy
The Turian backdoor is loaded into memory and executed. The first phase of execution consists of generating a temporary file tmp.bat, containing the following commands to establish persistence and delete the file once execution is complete:
ReG aDd HKEY_CURRENT_USER\sOFtWArE\MIcrOsOft\WindOwS\CurRentVeRsiOn\RuN /v Turian_filename> /t REG_SZ /d "\" /f
ReG aDd HKEY_LOCAL_MACHINE\sOFtWArE\MIcrOsOft\WindOwS\CurRentVeRsiOn\RuN /v /t REG_SZ /d "\" /f
del %0
After checking for the presence of the Sharedaccess.ini file and the Command and Control server address within it, the backdoor connects to the C2 server address present in its configuration. Our Cyber Threat Intelligence operations have tracked this connectivity pattern across multiple victim environments in the targeted regions.
Indicators of Compromise
SHA-1
3C0DB3A5194E1568E8E2164149F30763B7F3043D
32EF3F67E06C43C18E34FB56E6E62A6534D1D694
8C4D2ED23958919FE10334CCFBE8D78CD0D991A8
C0A3F78CF7F0B592EF813B15FC0F1D28D94C9604
CDD583BB6333644472733617B6DCEE2681238A11
FA6C20F00F3C57643F312E84CC7E46A0C7BABE75
5F87FBFE30CA5D6347F4462D02685B6E1E90E464
B6936BD6F36A48DD1460EEB4AB8473C7626142AC
B16393DFFB130304AD627E6872403C67DD4C0AF3
9DBBEBEBBA20B1014830B9DE4EC9331E66A159DF
564F1C32F2A2501C3C7B51A13A08969CDC3B0390
6E1BB476EE964FFF26A86E4966D7B82E7BACBF47
FBB0A4F4C90B513C4E51F0D0903C525360FAF3B7
2183AE45ADEF97500A26DBBF69D910B82BFE721A
849B970652678748CEBF3C4D90F435AE1680601F
C176F36A7FC273C9C98EA74A34B8BAB0F490E19E
626EFB29B0C58461D831858825765C05E1098786
40E73BF21E31EE99B910809B3B4715AF017DB061
255F54DE241A3D12DEBAD2DF47BAC5601895E458
A99CF07FBA62A63A44C6D5EF6B780411CF1B1073
934B3934FDB4CD55DC4EA1577F9A394E9D74D660
EF4DF176916CE5882F88059011072755E1ECC482
IP Addresses
199.247.9[.]67
43.251.105[.]218
43.251.105[.]222
162.209.167[.]154
43.225.126[.]179
23.247.47[.]252
43.251.105[.]222
162.209.167[.]189
23.83.224[.]178
23.106.140[.]207
43.251.105[.]218
45.76.120[.]84
78.141.243[.]45
78.141.196[.]159
45.77.215[.]53
207.148.8[.]82
43.251.105[.]139
43.251.105[.]139
45.77.215[.]53
152.32.180[.]34
43.251.105[.]218
23.106.140[.]207
23.228.203[.]130
Domains
systeminfo.myftp[.]name
systeminfo.oicp[.]net
dynsystem.imbbs[.]in
officeupdate.ns01[.]us
officeupdates.cleansite[.]us
web.vpnkerio[.]com
www.freedns02.dns2[.]us
pmdskm[.]top
szsz.pmdskm[.]top
Infoafrica[.]top
icta.worldmessg[.]com
winupdate.ns02[.]us
winupdate.ns02[.]us
www.intelupdate.dns1[.]us
www.intelupdate.dns1[.]us
www.intelupdate.dns1[.]us
nsupdate.dns2[.]us
bill.microsoftbuys[.]com
systeminfo.cleansite[.]info
updateip.onmypc[.]net
buffetfactory.oicp[.]io