TWINLOOT Malware Abuses Microsoft 365

x32x01
  • by x32x01 ||
TWINLOOT Malware Abuses Microsoft 365
TWINLOOT is a Python-based malware that uses Microsoft 365 and Azure services to build a stealthy command-and-control (C2) infrastructure. Instead of relying on suspicious external servers, it hides its communications within legitimate cloud services, making detection more challenging.
🔍 Researchers uncovered several advanced techniques used by TWINLOOT to maintain access, steal credentials, and interact with compromised systems.

🛠️ How TWINLOOT Operates​

  • SharePoint-based C2: Uses SharePoint Online files to store commands and retrieve execution results through the Microsoft Graph API, eliminating the need for a traditional C2 server.
  • Microsoft Edge impersonation: Launches Headless Microsoft Edge to route Microsoft Graph requests through the legitimate [msedge.exe] process, making process-based detection less reliable.
  • Microsoft Teams abuse: Exploits Teams TURN infrastructure and WebRTC DataChannels to establish interactive communication with compromised devices.
  • Credential theft: Displays a fake Windows 10/11 lock screen to capture passwords entered by unsuspecting users.
  • Internal network access: Provides a Reverse SOCKS5 proxy that allows attackers to use compromised machines as gateways to access internal network resources.
  • Privilege-independent persistence: Uses a technique researchers call Corrupting the Hive Mind, involving an unusual NTUSER.MAN profile file to maintain persistence without requiring Administrator privileges.
  • Anti-analysis protection: Its modules were protected with PyArmor 9.2.5. Researchers successfully recovered 115 of 120 encrypted modules, revealing key components of its infrastructure and functionality.



⚠️ Why TWINLOOT Is Dangerous​

TWINLOOT makes malicious activity blend into legitimate Microsoft cloud traffic. Connections to SharePoint, Teams, Azure, or Microsoft Edge are not inherently suspicious, which makes detecting this malware more difficult.
Instead of relying on easily blocked infrastructure, attackers abuse trusted cloud services to conceal their communications and evade traditional security controls.



🛡️ What Security Teams Should Monitor​

  • Unusual Microsoft Graph API activity and unexpected file operations in SharePoint.
  • Suspicious Headless Edge processes and unexpected process relationships.
  • Abnormal Teams-related WebRTC or TURN traffic.
  • Unauthorized access to credentials and suspicious lock-screen behavior.
  • Unexpected SOCKS proxy activity and connections to internal resources.
  • Unusual Windows profile files or persistence mechanisms.
Understanding how malware abuses legitimate cloud services is essential for detecting threats that traditional network-based security tools may overlook.
🔴 Want to explore malware analysis, reverse engineering, and penetration testing in more depth? HDZ VIP offers specialized resources to help you understand how these threats work behind the scenes.
 
Similar threads
x32x01
Replies
0
Views
148
x32x01
x32x01
x32x01
Replies
0
Views
242
x32x01
x32x01
x32x01
Replies
0
Views
172
x32x01
x32x01
x32x01
Replies
0
Views
204
x32x01
x32x01
x32x01
Replies
0
Views
188
x32x01
x32x01
Register & Login Faster
Forgot your password?
Forum Statistics
Threads
1,254
Messages
1,262
Members
20
Latest Member
cositaricagerra
Back
Top