Case study: Ransomware

Rohith Rajan, Chief Information Security Officer & Head of Global Research and Intelligence Division (GRID), DEF-X Cyber Intelligence, explains how rapid cyber intelligence prevented a ransomware deployment that could have resulted in financial exposure exceeding US$1 million.

The incident

In late 2025, during the November–December period, a Middle East enterprise began noticing unusual behaviour within its corporate email environment. Several external partners reported receiving unexpected messages from legitimate employee email accounts. At first glance, the messages appeared routine — they came from valid corporate addresses and followed familiar communication patterns.

What initially appeared to be a minor irregularity soon raised deeper concerns. The timing and volume of the messages did not match normal user behaviour. Employees whose accounts were sending the emails confirmed they had not written them.

This small anomaly became the first indication of a cyber intrusion. Further examination revealed that multiple user credentials had been compromised through a phishing campaign. Attackers had created a deceptive login page closely resembling a legitimate authentication portal. When employees entered their credentials, the information was captured and transmitted directly to the threat actors.

Using the stolen credentials, the attackers authenticated into the organisation’s cloud email environment and began operating under the guise of authorised users. Because their access relied on legitimate authentication, the activity initially blended into normal system operations. What appeared to be an isolated email misuse was, in fact, the early stage of a much larger attack chain.

The Challenge

One of the most difficult aspects of this incident was distinguishing malicious activity from legitimate user behaviour. Because attackers were using valid credentials, their activity initially appeared normal within authentication logs. Identity-based attacks allow adversaries to operate inside systems while appearing indistinguishable from authorised users — a tactic that has become increasingly common in cloud-centric environments.

The phishing campaign used in this case was carefully designed to mimic a legitimate authentication portal. Once users entered their login credentials, the attackers were able to access the organisation’s cloud email system.

Meanwhile, the compromised accounts were being used to distribute messages to external contacts and business partners. Some organisations began blocking the company’s domain due to the suspicious email activity, creating reputational concerns alongside the security incident.

The Investigation

To determine the extent of the intrusion, investigators initiated a structured digital forensics and incident response process. The first priority was reconstructing the timeline of the attack. Authentication logs from cloud identity systems, email platforms, and the DEF-X ECHO security monitoring platform were analysed to identify abnormal login behaviour.

Several suspicious patterns were identified. Some login sessions originated from geographic locations unrelated to the organisation’s operations — triggering impossible-travel analysis — while others displayed irregular activity patterns such as rapid access across multiple accounts within compressed time windows.

Once the compromised accounts were confirmed, containment measures were implemented immediately. Passwords for affected users were reset, authentication tokens were revoked, and all active sessions were terminated. These actions ensured that the attackers could no longer maintain access using previously issued credentials.

Additional monitoring controls were introduced across the environment to detect further suspicious behaviour. Email security policies were adjusted to prevent compromised accounts from sending additional messages externally. Throughout the investigation, analysts collected indicators of compromise and analysed them against global threat intelligence sources to determine whether the attack infrastructure had been associated with previously observed cybercrime activity.

The Results

The investigation confirmed that attackers had successfully obtained user credentials and had begun early-stage reconnaissance, but had not yet established deeper persistence within the organisation’s infrastructure. No privilege escalation was achieved, no ransomware payloads were staged or deployed, and no critical systems were disrupted.

Rapid containment measures removed all unauthorised access and prevented the attackers from expanding their foothold. Once the compromised accounts were secured, the organisation was able to restore normal communications with external partners whose systems had previously blocked the company’s email domain.

From an operational perspective, early detection proved decisive. By interrupting the attack chain at the reconnaissance and lateral movement probing stage — before privilege escalation or ransomware staging could occur — the organisation avoided what could have escalated into a prolonged and costly cyber incident.

The Future

Although the immediate threat was contained, the incident provided valuable insight into how modern cloud-targeted attacks unfold. The organisation introduced additional identity monitoring capabilities to detect suspicious authentication behaviour, directory enumeration activity and impossible-travel signals. These improvements allow security teams to identify compromised accounts and attacker reconnaissance at an earlier stage.

Phishing-resistant MFA — specifically FIDO2/hardware token-based authentication — was recommended as a priority upgrade to address the session token harvesting vector. Unlike push-based or TOTP multi-factor authentication, FIDO2 credentials are cryptographically bound to the origin domain, rendering AiTM reverse-proxy phishing kits ineffective.

Employee awareness programmes were expanded to help staff recognise AiTM phishing pages, which are visually indistinguishable from legitimate portals. Indicators such as unexpected MFA prompts, unfamiliar redirect URLs, and login requests arriving outside normal working hours were incorporated into awareness training scenarios.

Finally, incident response procedures were refined to codify the classification criteria distinguishing BEC activity from ransomware precursor activity — ensuring that future investigations escalate appropriately when enumeration, lateral movement probing or threat actor infrastructure matches are observed.

Key Defensive Recommendations

  • Deploy FIDO2/hardware-bound MFA to eliminate session token harvesting via AiTM phishing.
  • Enable Continuous Access Evaluation (CAE) and token binding in cloud identity platforms to reduce the validity window of stolen tokens.
  • Implement impossible-travel alerts and anomalous directory enumeration detection in SIEM/XDR platforms.
  • Deploy DMARC enforcement (p=reject) and DKIM signing across all mail domains.
  • Maintain current IOC subscriptions to threat actor infrastructure clusters, enabling rapid classification of novel phishing infrastructure.

The Technology

The investigation utilised cloud authentication telemetry, email security monitoring and digital forensic log analysis. DEF-X ECHO (Enhanced Cyber Heuristic Observatory) — the organisation’s security monitoring platform — was central to identifying abnormal login behaviour, flagging impossible-travel events, and correlating attacker session activity across cloud workloads. ECHO’s integration with global threat intelligence feeds enabled the rapid infrastructure cross-match that confirmed the NEON GHOST actor attribution and justified the ransomware precursor classification.

By combining these technologies with structured forensic investigation techniques, analysts were able to reconstruct the full intrusion path, attribute the activity with confidence, and secure the environment before the attack could escalate to its intended final stage.

Session token hijacking Vs. MFA bypass

Although the organisation had implemented multi-factor authentication, the phishing infrastructure employed an adversary-in-the-middle (AiTM) technique. The deceptive portal acted as a reverse proxy: it relayed the victim’s credentials and MFA response to the legitimate service in real time, then captured the resulting authenticated session token. This means MFA was technically satisfied — the attacker never bypassed MFA but instead harvested a post-MFA session token that was fully trusted by the cloud platform. Once in possession of these tokens, attackers could re-use them to access the environment without triggering additional authentication prompts. This distinction is critical: the presence of MFA did not fail as a technology — the attack circumvented it at the token layer, which requires a different class of defensive control (token binding, continuous access evaluation, and impossible-travel policies).

About DEF-X Cyber Intelligence

DEF-X Cyber Intelligence is a cybersecurity organisation working across offensive security testing, digital forensics and incident response, security operations and governance and compliance advisory. Its Global Research and Intelligence Division (GRID) focuses on studying emerging attack techniques, adversary behaviour, and evolving threat patterns. DEF-X supports organisations in understanding cyber risks, responding effectively to incidents, and strengthening their overall security posture.

Visited 105 times, 1 visit(s) today