Executive Summary
In July 2026, cybersecurity researchers identified TWINLOOT, a sophisticated Python-based malware framework that exploits Microsoft services like SharePoint Online and Teams for command-and-control operations. The malware gains initial access through social engineering attacks via Microsoft Teams, where attackers impersonate IT support to trick users into executing malicious PowerShell commands. Once installed, TWINLOOT utilizes the victim's Edge browser in headless mode to communicate with the attacker's Azure tenant, making its network activity appear legitimate. It employs fake lock screens to harvest Windows credentials and establishes persistence on the host, facilitating lateral movement within networks.
This incident underscores the evolving tactics of threat actors who are increasingly leveraging trusted cloud services to evade detection. The use of legitimate platforms for malicious purposes highlights the need for organizations to enhance their security measures, particularly in monitoring and controlling access to cloud-based services.
Why This Matters Now
The TWINLOOT incident highlights the urgent need for organizations to strengthen their defenses against sophisticated social engineering attacks and the abuse of trusted cloud services. As threat actors continue to evolve their tactics, leveraging legitimate platforms to evade detection, it is crucial for businesses to implement robust security measures, including advanced monitoring and user education, to mitigate such risks.
Attack Path Analysis
The TWINLOOT attack began with social engineering via Microsoft Teams, leading to the execution of a PowerShell command that downloaded a Python-based implant. The implant escalated privileges by capturing user credentials through a fake lock screen. Using these credentials, the attacker moved laterally within the network via RDP and WinRM. Command and control were maintained through SharePoint Online and Teams TURN servers, utilizing the victim's Edge browser in headless mode. Data exfiltration occurred over these channels, with sensitive information uploaded to the attacker's SharePoint drive. The impact included unauthorized access to confidential data and potential disruption of services.
Kill Chain Progression
This analysis maps confirmed threat intelligence to the full cloud kill chain to show where defensive gaps would emerge as an attack progresses.
Initial Compromise
Description
The attacker used social engineering via Microsoft Teams to trick the victim into executing a PowerShell command that downloaded a Python-based implant.
MITRE ATT&CK® Techniques
Spearphishing Link
PowerShell
SharePoint
Web Protocols
Lateral Tool Transfer
Pass the Hash
Valid Accounts
Component Object Model Hijacking
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
NIST SP 800-53 – Remote Access
Control ID: AC-17
PCI DSS 4.0 – Strong Authentication for Remote Access
Control ID: 8.3
NYDFS 23 NYCRR 500 – Encryption of Nonpublic Information
Control ID: 500.15
DORA – ICT Risk Management Framework
Control ID: Article 6
NIS2 Directive – Cybersecurity Risk Management Measures
Control ID: Article 21
CISA ZTMM 2.0 – Network and Environment Segmentation
Control ID: Pillar 3
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Information Technology/IT
TWINLOOT's Microsoft 365 exploitation creates severe risks for IT infrastructure, enabling lateral movement through compromised credentials and SOCKS5 tunneling.
Financial Services
Remote access trojan targeting SharePoint and Teams poses critical threats to financial data security, compliance frameworks, and encrypted transaction systems.
Computer Software/Engineering
Python-based implant framework exploiting Microsoft cloud architecture threatens software development environments through credential harvesting and network pivoting capabilities.
Government Administration
TWINLOOT's sophisticated C2 infrastructure abusing trusted Microsoft services creates significant risks for government networks and sensitive administrative communications.
Sources
- TWINLOOT Abuses SharePoint and Teams to Steal Credentials and Move Across Networkshttps://thehackernews.com/2026/08/twinloot-abuses-sharepoint-and-teams-to.htmlVerified
- Living Off the Cloud: A Python Implant Hiding Its Entire C2 Inside Microsoft 365 & Azurehttps://www.ontinue.com/resource/python-implant-hiding-its-entire-c2-inside-microsoft-365-azure/Verified
- Traversal Using Relays around NAT (TURN) Protocolhttps://learn.microsoft.com/en-us/openspecs/office_protocols/ms-turn/bf1e2a02-4f6e-4975-b83c-74018546b387Verified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Based on the attack progression modeled above, these are the defensive controls that would constrain each stage.
Aviatrix Zero Trust CNSF is pertinent to this incident as it could have constrained the attacker's ability to move laterally and exfiltrate data by enforcing strict segmentation and identity-aware policies.
Control: Cloud Native Security Fabric (CNSF)
Mitigation: The attacker's initial access may have been limited by enforcing strict identity-based access controls, reducing the likelihood of unauthorized command execution.
Control: Zero Trust Segmentation
Mitigation: The attacker's ability to escalate privileges could have been constrained by enforcing strict segmentation policies, reducing the scope of accessible resources.
Control: East-West Traffic Security
Mitigation: The attacker's lateral movement would likely have been constrained by enforcing east-west traffic controls, limiting unauthorized internal communications.
Control: Multicloud Visibility & Control
Mitigation: The attacker's command and control channels may have been constrained by monitoring and controlling multicloud traffic, reducing unauthorized external communications.
Control: Egress Security & Policy Enforcement
Mitigation: The attacker's data exfiltration efforts would likely have been constrained by enforcing egress policies, limiting unauthorized data transfers.
The overall impact of the attack could have been constrained by limiting the attacker's access to sensitive data and critical services.
Impact at a Glance
Affected Business Functions
- IT Support Services
- Internal Communications
- Data Management
- Network Security
Estimated downtime: 7 days
Estimated loss: $500,000
Employee credentials and internal communications data
Recommended Actions
Key Takeaways & Next Steps
- • Implement Zero Trust Segmentation to restrict lateral movement within the network.
- • Enforce East-West Traffic Security to monitor and control internal communications.
- • Deploy Egress Security & Policy Enforcement to prevent unauthorized data exfiltration.
- • Utilize Multicloud Visibility & Control to detect and respond to anomalous activities.
- • Apply Threat Detection & Anomaly Response mechanisms to identify and mitigate threats promptly.



