Summary
Operation ShadowCloud is a cyber-espionage campaign against government networks in Asia and Africa that abuses the MeshCentral Agent to drop DLL-sideloaded loaders, which decrypt the GitDoor and GraphDoor backdoors in memory. The backdoors hide command-and-control traffic inside legitimate cloud services (GitHub, Microsoft SharePoint via the Graph API, and Ably), load modular plug-ins and shellcode for credential theft, keylogging, screen capture and proxy tunneling, and exfiltrate encrypted victim data to attacker-controlled repositories and cloud storage.
Attack Details
The initial access vector for Operation ShadowCloud is unknown, though evidence suggests the attackers reused a prior compromise on the victim network, with infrastructure prepared from September 2024 onwards. In a confirmed case at a Taiwanese organization, a MeshCentral Agent hard-coded to connect to 27[.]102[.]66[.]162 on port 443 was used to drop a trusted executable, a malicious loader DLL, and an encrypted payload named config.ini.
Execution relies on DLL sideloading through trusted binaries such as javaw.exe (jli.dll), Sandboxie's start.exe (SbieDll.dll), pythonw.exe renamed dtsapo4service.exe (python39.dll), and zoomit.exe (WINMM.dll) running as a Windows service. The Type 1 loader decrypts the payload with RC4 and XOR over a custom Base64 alphabet, rebuilds shellcode from MAC-address strings, and resolves APIs by CRC32 or FNV-1 hashing, while the Type 2 loader (SbieDll_st.dll) checks for hooks, clears DR7 hardware breakpoints, and validates the host process.
The GitDoor and GraphDoor backdoors run entirely in memory, protected by control flow flattening, indirect calls, encrypted strings and API hashing, with GraphDoor calling DJB2-resolved APIs through a vectored exception handler. A moveDir plug-in relocates and relaunches the backdoor and its loaders, and a log.lock marker file in APPDATA controls keylogger start-up.
The backdoors load COFF-based plug-ins and a shellcode toolkit that injects into processes via CreateRemoteThread, SetThreadContext, NtQueueApcThread and KernelCallbackTable abuse, and creates services, scheduled tasks and local accounts. Discovery modules enumerate services, tasks, users, groups, directories, network connections, firewall settings and user activity, and a WinPTY-based reverse shell provides interactive access.
Credentials are harvested with a Mimikatz variant (imzimzgo 2.2.0 x64) running sekurlsa::logonpasswords full and lsadump::sam, CookieKatz dumping Chrome, Edge and WebView2 cookies, a PetitPotam-style EFSRPC module forcing NTLM authentication, and a WhatsAppKey module extracting the WhatsApp database key. Cobalt Strike beacons communicating with twnic[.]top and ekmt[.]tw were also deployed, and staging directories overlapped with FamousSparrow and CopperTurtle activity, including pdfset.exe injecting the PLEAD RAT, within a day of GitDoor.
GitDoor pulls commands from a public GitHub repository and pushes results to a private one, using issues labelled bug and commit messages such as commit from INSOMNIA, alongside Ably REST channels. GraphDoor authenticates to Microsoft Entra ID with a hard-coded client ID and secret and exchanges commands and files through SharePoint via the Microsoft Graph API, while operators supply C2 hostnames through an Erfrp-derived proxy or Ably, including a SOCKS5 tunnel over Ably's WebSocket.
Victim data and command output are AES-encrypted and Base64-encoded, with GitDoor adding a filename-keyed XOR layer, then uploaded as main.<victim_code>.js.map files to GitHub or SharePoint. A dedicated Fileupload module also exfiltrates files to upload.gofile.io.
Recommendations
- 01
Protect LSASS and Credential Stores
Enable LSA protection (RunAsPPL) and Credential Guard, alert on Mimikatz command strings and handle access to LSASS, and monitor for in-memory cookie dumping from Chrome, Edge and WebView2 processes.
- 02
Mitigate NTLM Coercion
Apply mitigations against PetitPotam-style EFSRPC coercion by enabling Extended Protection for Authentication and SMB/LDAP signing, disabling NTLM where feasible, and filtering EFSRPC calls on domain controllers and certificate servers.
- 03
Restrict Access to Foreign SharePoint Tenants
Use tenant restrictions to stop corporate devices from authenticating to SharePoint tenants outside the organization, and flag Graph API client-credentials token requests originating from endpoints, including traffic to buildersemp and cskautogo SharePoint sites.
- 04
Detect DLL Sideloading from Unusual Locations
Alert on trusted binaries such as javaw.exe, start.exe, pythonw.exe, zoomit.exe, pdf.exe and dtsapo4service.exe loading jli.dll, SbieDll.dll, python39.dll, WINMM.dll or similar DLLs from System32 subfolders, ProgramData, or Program Files\PDF24, and on config.ini files placed beside them.
- 05
Deploy Memory and Behavioral Detection
Use EDR capable of detecting in-memory shellcode execution, APC and KernelCallbackTable injection, hardware breakpoint tampering and API hashing, since the GitDoor and GraphDoor payloads never touch disk unencrypted.
- 06
Monitor Cloud Service Abuse from Servers and Endpoints
Baseline which hosts legitimately reach api.github.com, graph.microsoft.com, login.microsoftonline.com, rest.ably.io, main.pusher.ably.net and upload.gofile.io, and investigate non-browser processes, services or sideloaded binaries contacting them. Consider blocking Ably and gofile.io where there is no business need.
- 07
Hunt for Unauthorized MeshCentral Agents
Inventory every MeshAgent installation and remove any not deployed by IT, prioritizing agents that connect to 27[.]102[.]66[.]162 or to agent.ashx endpoints on unknown servers. Restrict remote-management tools to an approved allowlist through application control.
- 08
Reset Credentials and Revoke Sessions on Affected Hosts
For any confirmed infection, reset local and domain account passwords exposed on the host, remove attacker-created local accounts and group memberships, and invalidate browser sessions and tokens that CookieKatz could have stolen.
Indicators of Compromise (IoCs)
| Type | Value |
|---|---|
| MD5 | 74b025084026d8d9a64661bf995d835b32151547d912488ac5242731057170a3e9d4081fac4a5111e6856f333d490439e63ec733393e4e7e3424cbff918003a33896d44bc6d517291c60ee3f70543a31b930fb3ab14fe45b378d5acfa6e0a7636a54f8008ee659b6923abf5dba2b2cc1552f0a9cc5fc3755721fa49be05e803514ec33ea808e697870d00c5e434c2952d89b2fe0759df2d534e7a728700a6f8cb4956b230d296cb4b015b42b11d80e3286a46af43e18288e1df439b2a9a6f7ca733f8002aa9531b25384c0014d15cc1f91bee19d31d32346cd4d1febb430860645b3aa39bc33528650d9181cd946b2df9a5e0ab7466594dcf46943c413db7b81 |
| IPv4 | 27[.]102[.]66[.]162104[.]194[.]154[.]28216[.]73[.]158[.]72122[.]147[.]252[.]16103[.]106[.]230[.]33123[.]58[.]205[.]105223[.]165[.]4[.]203172[.]86[.]66[.]19103[.]214[.]68[.]20216[.]146[.]25[.]173103[.]137[.]63[.]39103[.]227[.]224[.]189104[.]194[.]152[.]17366[.]42[.]52[.]137153[.]75[.]94[.]14845[.]59[.]124[.]164104[.]194[.]153[.]161153[.]75[.]95[.]27216[.]73[.]158[.]117154[.]205[.]154[.]20943[.]134[.]62[.]11138[.]54[.]17[.]11338[.]52[.]17[.]113 |
| IPv4:Port | 27[.]102[.]66[.]162[:]443 |
| Domain | twnic[.]topms[.]twnic[.]topekmt[.]twbuildersemp[.]sharepoint[.]comcskautogo[.]sharepoint[.]com |
| URL | wss[:]//27[.]102[.]66[.]162[:]443/agent[.]ashxhxxps[:]//github[.]com/LatonyCharnleyaWhxxps[:]//github[.]com/StevenDFournierhxxps[:]//github[.]com/JeneLeohxxps[:]//github[.]com/VenoraKlanimUhxxps[:]//github[.]com/AlexandaJazzmynwChxxps[:]//github[.]com/FloraineSuvitChxxps[:]//github[.]com/bvgarciajocelynxccZhxxps[:]//github[.]com/Eclemensadolph1nhxxps[:]//github[.]com/aYulysseserinYtas |
Potential MITRE ATT&CK TTPs
T1583Acquire InfrastructureT1583.006Web ServicesT1588Obtain CapabilitiesT1588.002ToolT1059Command and Scripting InterpreterT1059.003Windows Command ShellT1106Native APIT1569System ServicesT1569.002Service ExecutionT1053Scheduled Task/JobT1053.005Scheduled TaskT1543Create or Modify System ProcessT1543.003Windows ServiceT1136Create AccountT1136.001Local AccountT1098Account ManipulationT1134Access Token ManipulationT1055Process InjectionT1055.004Asynchronous Procedure CallT1055.003Thread Execution HijackingT1574Hijack Execution FlowT1574.001DLLT1574.013KernelCallbackTableT1027Obfuscated Files or InformationT1027.007Dynamic API ResolutionT1027.013Encrypted/Encoded FileT1140Deobfuscate/Decode Files or InformationT1622Debugger EvasionT1620Reflective Code LoadingT1036MasqueradingT1036.005Match Legitimate Resource Name or LocationT1070Indicator RemovalT1070.004File DeletionT1112Modify RegistryT1003OS Credential DumpingT1003.001LSASS MemoryT1003.002Security Account ManagerT1539Steal Web Session CookieT1187Forced AuthenticationT1056Input CaptureT1056.001KeyloggingT1552Unsecured CredentialsT1007System Service DiscoveryT1049System Network Connections DiscoveryT1016System Network Configuration DiscoveryT1087Account DiscoveryT1087.001Local AccountT1069Permission Groups DiscoveryT1083File and Directory DiscoveryT1057Process DiscoveryT1033System Owner/User DiscoveryT1518Software DiscoveryT1518.001Security Software DiscoveryT1010Application Window DiscoveryT1113Screen CaptureT1074Data StagedT1074.001Local Data StagingT1102Web ServiceT1102.002Bidirectional CommunicationT1071Application Layer ProtocolT1071.001Web ProtocolsT1219Remote Access ToolsT1090ProxyT1090.002External ProxyT1573Encrypted ChannelT1573.001Symmetric CryptographyT1132Data EncodingT1132.002Non-Standard EncodingT1105Ingress Tool TransferT1008Fallback ChannelsT1567Exfiltration Over Web ServiceT1567.001Exfiltration to Code RepositoryT1567.002Exfiltration to Cloud StorageT1041Exfiltration Over C2 ChannelReferences & Patch Links
References
- https://securelist.com/operation-shadowcloud-gitdoor/122004/
- https://securelist.com/operation-shadowcloud-gitdoor/122005/
What Next?
At Hive Pro, it is our mission to detect the most likely threats to your organization and to help you prevent them from happening.
