Picture this: a security operations center receives an alert about unusual remote desktop activity. The team traces it back to a Microsoft Teams session where an employee shared their screen with someone claiming to be from IT support. The employee typed their credentials into a plain text file at the stranger’s request. That single moment handed an advanced persistent threat group the keys to the kingdom. But here is the twist — the attackers never intended to encrypt files or demand a ransom. They wanted data, and they wanted to make it look like someone else did it.

Researchers at Rapid7 uncovered exactly this scenario earlier this year. They identified an intrusion with medium confidence as the work of MuddyWater, an Iranian ransomware espionage, an Iranian state-linked cyber unit. The group masqueraded as the Chaos ransomware gang to conceal a covert intelligence-gathering mission. This operation reveals a growing trend where nation-state actors adopt the branding and tactics of criminal ransomware groups to hide their true objectives.
How the Attack Unfolded
The operation began with a social engineering campaign on Microsoft Teams. Attackers contacted employees within targeted organizations and requested screen-sharing sessions. This approach is not unusual — many helpdesk teams use remote assistance tools daily. But what followed required a remarkable degree of persuasion.
Credential Harvesting Through Local Text Files
During the screen-sharing session, the attacker instructed the victim to open a text editor and type their username and password into a plain file. This step bypasses many traditional phishing defenses. No fake login page existed. No malicious link needed to be clicked. The credentials simply sat in a local document, ready to be copied.
The attacker also asked the victim to modify multi-factor authentication settings. This allowed the attacker to enroll their own device as an approved authenticator. Once that change was made, the attacker could log in from anywhere without triggering an MFA challenge. This technique undermines one of the most common security controls used today.
Deploying Remote Management Tools
From there, the attacker installed AnyDesk, a legitimate remote desktop application. AnyDesk is widely used by IT teams for support, which makes its presence less suspicious. The attacker now had persistent, interactive access to the victim’s machine. Browser artifacts later revealed that the attackers had also set up phishing pages, including a fake Microsoft Quick Assist login page, to harvest additional credentials.
The Darkcomp Backdoor and Lateral Movement
With valid credentials in hand, the attackers used Remote Desktop Protocol commands to download payloads directly onto compromised systems. They used curl, a command-line tool included in modern Windows builds, to fetch files from remote servers. This technique avoids the need for email attachments or web downloads that might trigger security alerts.
Payload Components
The downloaded payloads included three distinct components. First, a backdoor malware called Darkcomp provided persistent remote access. Second, a malicious WebView2 loader disguised network traffic to blend in with legitimate Microsoft processes. Third, an encrypted configuration file told Darkcomp how to communicate with its command-and-control server.
The attackers then performed lateral movement. They used additional compromised accounts within the same technique of credential harvesting via Teams to hop from one system to another. Along the way, they collected sensitive data — documents, databases, configuration files, and anything else of intelligence value.
The Fake Ransomware Show
After exfiltrating the data, the attackers shifted to a new phase. They used the same compromised email accounts to send internal emails to employees and leadership. These emails announced that the organization had been breached. They included an onion link pointing to the Chaos ransomware group’s data leak site on the dark web.
A Countdown Timer With No Ransom
The data leak site displayed a countdown timer with all stolen data redacted behind it. This is a standard extortion tactic used by ransomware gangs to pressure victims into paying. Follow-up emails instructed recipients to look for a file containing access credentials that would allow them to begin ransom negotiations.
Here is where the illusion fell apart. That file did not exist. The attackers provided no way to contact them for payment. No ransom demand was ever made. Most tellingly, no file encryption occurred anywhere in the environment. Chaos affiliates typically encrypt files before demanding payment. The absence of encryption was a major red flag.
Despite these inconsistencies, the attackers later published the stolen data on the leak site. Rapid7 assessed the leaked information as legitimate. The data was real, but the ransom demand was a complete fabrication.
Why State Actors Pretend to Be Criminal Gangs
If the goal was not financial gain, then what motivated this elaborate charade? Rapid7 believes the operation served two possible purposes. First, it provided plausible deniability for espionage activity. Second, it could have been prepositioning for a future destructive attack under a false flag.
This is not an isolated incident. MuddyWater, which operates under the Iranian Ministry of Intelligence and Security, has a documented history of false-flag operations. In a previous attack on an Israeli hospital, the group posed as a Qilin ransomware affiliate. After that incident was publicly attributed to Iranian intelligence, the group likely adopted alternative branding to reduce attribution risk.
Masquerading as ransomware criminals offers several advantages for state-sponsored iranian ransomware espionage operations. It muddies the attribution waters. It redirects defensive efforts toward ransomware containment rather than backdoor eradication. It provides a cover story for data theft — victims and incident responders focus on the fake ransom demand instead of the persistent access that remains.
Indicators to Distinguish Espionage From Extortion
Security teams face a difficult challenge when confronted with an incident that looks like ransomware but behaves differently. Several indicators can help distinguish a genuine extortion attempt from a state-sponsored espionage operation using ransomware as a cover.
Absence of File Encryption
This is the most obvious sign. If attackers claim to have deployed ransomware but no files are encrypted, something is wrong. In the Rapid7 case, the attackers never executed any encryption routine. They simply announced a breach and pointed to a data leak site. Genuine ransomware operators always encrypt files as proof of compromise.
No Ransom Negotiation Channel
Real ransomware gangs provide clear instructions for payment. They set up negotiation portals, assign case IDs, and respond to victim inquiries. In this operation, the attackers left no way to contact them. The promised credentials file did not exist. This lack of a negotiation channel strongly suggests the ransom demand was a decoy.
Social Engineering Patterns
The initial access method also provides clues. Using Microsoft Teams screen sharing to harvest credentials into text files is unusual for ransomware groups. Criminal ransomware operators typically use phishing emails with malicious attachments, exploit public-facing applications, or purchase initial access from initial access brokers. The highly interactive social engineering approach seen here is more characteristic of intelligence operations.
Use of Legitimate Remote Management Tools
AnyDesk deployment after credential theft indicates a desire for persistent, interactive access. While ransomware groups sometimes use remote management tools, they typically deploy ransomware payloads quickly after gaining access. Prolonged interactive sessions involving data collection suggest espionage rather than extortion.
Broader Implications for Cybersecurity
The blurring of lines between ransomware gangs and state actors has significant consequences for how organizations prepare for and respond to cyber incidents. Threat intelligence teams must now consider the possibility that a ransomware-branded attack may actually be a sophisticated espionage operation.
Attribution Becomes More Complex
When state actors adopt the tools, tactics, and branding of criminal groups, attribution becomes significantly harder. Security researchers rely on behavioral patterns, infrastructure reuse, and tradecraft consistency to identify threat actors. False-flag operations deliberately break these patterns. This complexity can delay incident response and allow attackers to maintain access longer.
Defensive Priorities Shift
If an organization treats every ransomware-branded incident as a simple extortion attempt, they may miss the real threat. The backdoor remains active. The attacker retains access. Sensitive data continues to flow out. Incident response plans must account for the possibility that the visible ransomware demand is a distraction from a hidden espionage campaign.
You may also enjoy reading: Utah Tech vs Arizona: Step-by-Step Breakdown of 93-67 Win.
Collaboration Tools Become Attack Vectors
Microsoft Teams, Slack, and other collaboration platforms have become essential for remote work. They also represent a growing attack surface. Social engineering through these platforms bypasses email security gateways and often evades security awareness training. Organizations must update their training to cover screen-sharing phishing, credential harvesting via chat, and MFA manipulation techniques.
Practical Steps for Defenders
Organizations can take concrete actions to defend against this type of operation. These steps focus on the specific techniques observed in the Rapid7 case.
Restrict Remote Management Tool Installation
AnyDesk and similar tools should be blocked by default. Only authorized IT personnel should be able to install or execute remote management software. Application whitelisting and execution policies can prevent unauthorized installations. Security teams should monitor for unexpected AnyDesk, TeamViewer, or similar processes.
Monitor MFA Enrollment Changes
Multi-factor authentication provides strong protection only if attackers cannot modify enrollment settings. Organizations should monitor for new device enrollments, especially those occurring outside normal business hours or from unfamiliar locations. Alerts should trigger when an existing user adds a new authentication method immediately after a helpdesk interaction.
Train Employees on Screen-Sharing Phishing
Employees need specific guidance on what constitutes a legitimate screen-sharing request. They should never enter credentials into a text file or notepad document during a remote session. They should verify the identity of anyone requesting screen sharing through an out-of-band channel, such as a phone call to a known number.
Audit RDP Logging and Alerting
Remote Desktop Protocol activity should be logged and monitored. Organizations should track RDP connections from internal workstations to servers, especially when initiated by accounts that do not normally use RDP. Lateral movement via RDP is a common technique in both ransomware and espionage operations.
Review Teams External Access Policies
Microsoft Teams allows external users to initiate chats and calls under certain configurations. Organizations should review their external access settings and restrict them to trusted domains where possible. Security teams should monitor for Teams interactions that involve screen sharing or file transfers from external accounts.
The Evolution of MuddyWater’s Tradecraft
MuddyWater has been active since at least 2017. The group initially focused on traditional espionage using phishing emails with macro-enabled documents. Over time, their techniques have evolved significantly. The use of collaboration platforms for social engineering represents a notable advancement in their tradecraft.
In the Rapid7 case, the attackers demonstrated a multi-stage approach. They used social engineering for initial access. They deployed legitimate tools for persistence. They leveraged valid credentials for lateral movement. They staged a fake ransomware incident to cover their tracks. This level of sophistication suggests a well-resourced operation with clear objectives.
The adoption of Chaos branding also reflects an understanding of the cyber threat landscape. Chaos is a relatively lesser-known ransomware group compared to LockBit or BlackCat. Using a less prominent brand may have been intentional — it attracts less scrutiny from researchers while still providing the desired cover story.
Geopolitical Context
Iranian cyber operations have consistently targeted government agencies, critical infrastructure, and financial institutions in Western countries. These operations serve multiple purposes: intelligence collection, signaling capability, and potential preparation for disruptive attacks. The use of false-flag tactics allows Iran to pursue these objectives while maintaining a degree of plausible deniability.
The Rapid7 case fits within a broader pattern of Iranian cyber activity. Previous operations have targeted Israeli healthcare, Saudi government entities, and US financial institutions. By adopting criminal disguises, Iranian operators hope to avoid direct attribution and the diplomatic consequences that follow.
This strategy also complicates international response efforts. When a ransomware attack occurs, the typical response involves law enforcement investigation and possible sanctions against identified criminals. When the same attack is actually state-sponsored, the response requires different tools — diplomatic pressure, intelligence sharing, and potential retaliatory cyber operations. Misattribution can lead to inappropriate or ineffective responses.
What This Means for Threat Intelligence
For threat intelligence analysts, the MuddyWater case highlights the importance of behavioral analysis over simple branding. Ransomware group names, leak site domains, and communication templates can all be borrowed or imitated. What cannot be easily faked are the underlying operational patterns — the specific tools used, the sequence of actions, and the ultimate objectives.
Analysts should look beyond the surface-level indicators. A data leak site that looks like Chaos may actually be operated by a state intelligence service. The presence of a countdown timer does not guarantee a genuine extortion attempt. The absence of encryption tells a more truthful story than any ransom note.
Cross-referencing techniques, infrastructure, and operational security practices can help distinguish genuine criminal activity from state-sponsored false flags. This requires collaboration between organizations, sharing of telemetry, and careful analysis of even minor technical details.






