Pakistan-Linked SideCopy APT Deploys XenoRAT in Spear-Phishing Campaign Against Afghanistan's Ministry of Finance

SideCopy APT Targets Afghanistan's Finance Ministry in 'XENOFISCAL' Espionage Campaign

HIGH
June 2, 2026
6m read
Threat ActorMalwarePhishing

Related Entities

Organizations

Afghanistan Ministry of Finance

Products & Tech

mshta.exe

Other

XenoRAT

Full Report

Executive Summary

The Pakistan-linked Advanced Persistent Threat (APT) group SideCopy, a subgroup of Transparent Tribe (APT36), has been identified as the actor behind a new cyber-espionage campaign named Operation XENOFISCAL. This highly targeted operation is aimed at the Afghanistan Ministry of Finance, specifically its provincial directorates and Pashto-speaking officials. The attack employs a classic spear-phishing vector, using a ZIP archive containing a malicious LNK file disguised with a Pashto filename. The infection chain is designed to be evasive, leveraging legitimate Windows processes and a compromised Afghan educational domain to download and execute the final payload: the open-source XenoRAT remote access trojan. The campaign's goal is espionage, enabling the attackers to conduct surveillance and exfiltrate sensitive government data.


Threat Overview

Operation XENOFISCAL demonstrates SideCopy's deep understanding of its target environment. The campaign is not a wide-net phishing attack but a carefully crafted operation focused on specific individuals within the Afghan government.

  • Targeting: The attack specifically targets all 34 provincial revenue and finance directorates (Mustoufiats) of Afghanistan's Ministry of Finance.
  • Social Engineering: The lure is highly tailored, using the Pashto language and a document listing real provincial finance directors invited to a seminar. This suggests significant pre-operational intelligence gathering.
  • Initial Access: The attack begins with a spear-phishing email containing a ZIP file. Inside is a malicious Windows Shortcut (LNK) file.
  • Payload Delivery: When the victim clicks the LNK file, it executes mshta.exe to fetch and run a remote HTML Application (HTA) file from a compromised Afghan education domain (abimj.edu.af).
  • Final Payload: The HTA file initiates a multi-stage, in-memory infection process that culminates in the deployment of XenoRAT version 1.8.7, a powerful open-source RAT.

This campaign is consistent with SideCopy's known TTPs, which involve using lures relevant to South Asian politics and military affairs and customizing open-source malware for their operations.


Technical Analysis

The infection chain is designed for stealth and persistence:

  1. Spear-phishing (T1566.001): The user receives a ZIP file via email.
  2. Malicious LNK File (T1204.002): The user opens the LNK file within the ZIP.
  3. HTA Execution via mshta.exe (T1218.005): The LNK file's command line executes mshta.exe to download and run an HTA file from a remote, compromised server.
  4. In-Memory Loader: The HTA file contains obfuscated JavaScript that downloads and executes a .NET-based loader DLL in memory.
  5. RAT Deployment: The loader DLL decrypts and deploys the final payload, XenoRAT, into memory.
  6. Persistence (T1547.001): The malware creates a registry run key, often mimicking a legitimate application like Microsoft Edge, to ensure it runs every time the system starts.
  7. Decoy Document: To avoid suspicion, a benign decoy document (the seminar invitation list) is opened for the victim.
  8. C2 Communication (T1071.001): XenoRAT connects to its command-and-control server (e.g., 185.235.137.106) over TCP to receive commands and exfiltrate data.

XenoRAT Capabilities: Once active, XenoRAT provides the attacker with extensive control over the victim's machine, including keylogging, screen capture, file system access, webcam and microphone activation, and the ability to drop additional malware.


Impact Assessment

The successful compromise of systems within Afghanistan's Ministry of Finance could have significant geopolitical and security implications. The impact includes:

  • Espionage: Theft of sensitive government financial data, strategic plans, and internal communications.
  • Intelligence Gathering: Gaining insight into the financial stability and operations of the Afghan government.
  • Surveillance: Monitoring the activities and communications of key government officials.
  • Further Intrusion: Using the compromised ministry as a beachhead to launch further attacks against other Afghan government entities.

The campaign highlights the persistent cyber-threats faced by government institutions in geopolitically sensitive regions.


IOCs — Directly from Articles

Type
domain
Value
abimj.edu.af
Description
Compromised domain used to host the malicious HTA file.
Type
ip_address_v4
Value
185.235.137.106
Description
Command and Control (C2) server for XenoRAT.

Cyber Observables — Hunting Hints

Security teams can hunt for this activity using the following clues:

Type
command_line_pattern
Value
mshta.exe http://* or mshta.exe https://*
Description & Context
Look for mshta.exe making network connections to download remote HTA or JS files, a common TTP for this and other threat actors.
Type
file_name
Value
*.lnk in *.zip
Description & Context
Monitor email gateway logs for ZIP attachments containing LNK files, especially if the LNK filename uses non-standard character sets.
Type
registry_key
Value
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
Description & Context
Monitor this registry key for the creation of new persistence entries, especially those with suspicious executable paths or names mimicking legitimate software.
Type
network_traffic_pattern
Value
Outbound TCP connections to 185.235.137.106
Description & Context
Block and alert on any traffic to known SideCopy C2 infrastructure.

Detection & Response

  1. Email Security: Use email security gateways to block or quarantine emails with ZIP attachments containing LNK files. Scan attachments for known malicious indicators.
  2. Endpoint Detection (EDR): Monitor for suspicious process chains, such as outlook.exe -> explorer.exe -> mshta.exe. EDR rules can be created to alert on mshta.exe spawning from an Office application or a LNK file execution and making a network connection. This is an application of Process Lineage Analysis.
  3. Network Filtering: Block known malicious domains and IPs at the firewall or web proxy. Use DNS Denylisting (D3-DNSDL) for domains like abimj.edu.af.
  4. Scripting Protection: Use tools like Windows Defender Attack Surface Reduction (ASR) rules to block or audit the execution of obfuscated scripts and HTA files.

Mitigation

  1. User Training (M1017): Train users to be suspicious of unsolicited emails, especially those with attachments. Teach them to recognize the dangers of LNK files and other script-based attachments.
  2. Attack Surface Reduction: Implement ASR rules to block mshta.exe from executing potentially malicious code. For example, the rule "Block all Office applications from creating child processes" can be highly effective.
  3. Application Control: Use application allow-listing (e.g., AppLocker) to prevent the execution of unauthorized scripts and executables like mshta.exe in user directories.
  4. Change File Associations: As a hardening measure, consider changing the default file handler for .hta and .js files from mshta.exe/wscript.exe to a benign application like notepad.exe. This prevents accidental execution by the user.

Timeline of Events

1
June 2, 2026
This article was published

MITRE ATT&CK Mitigations

Train users to identify and report spear-phishing emails and to be wary of unexpected attachments, especially ZIP files containing shortcuts.

Block known malicious C2 domains and IPs at the network perimeter.

Use Attack Surface Reduction (ASR) rules or application control policies to block or restrict the execution of mshta.exe.

Ensure endpoint security solutions are up to date to detect known loaders and RATs like XenoRAT.

D3FEND Defensive Countermeasures

A key part of the SideCopy attack chain is the abuse of the legitimate Windows utility mshta.exe. Implement application control policies, such as Windows AppLocker or Defender Application Control, to restrict or block the execution of mshta.exe. For most modern enterprise environments, there is no legitimate business need for users to run HTML Applications. By creating a denylist rule for mshta.exe or, more effectively, an allowlist that does not include it, you can break the infection chain at a critical point. This preventative control is highly effective against this and many other 'living-off-the-land' attack techniques.

Deploy network traffic analysis to detect the C2 communication of XenoRAT. Specifically, configure your firewall, proxy, and DNS logs to be ingested into a SIEM. Create alerts for any outbound connections from your network to the known C2 IP address 185.235.137.106 or the compromised domain abimj.edu.af. Beyond these specific IOCs, use behavioral analysis to look for signs of RAT activity, such as persistent, low-volume 'heartbeat' connections over TCP to a single external IP, or sudden bursts of data transfer from a workstation that is not expected to be uploading large files. This provides a crucial detection layer for when an endpoint is successfully compromised.

Enhance email security gateways with advanced file analysis and sandboxing. Configure policies to specifically analyze ZIP files containing LNK, HTA, or script files. The sandbox should be able to 'detonate' the LNK file and observe the subsequent process chain, including the call to mshta.exe and the network connection to the remote server. Any email containing an attachment that exhibits this behavior should be automatically quarantined, and an alert should be sent to the security team. This automated analysis of incoming files is essential for stopping the initial delivery vector before it reaches the user's inbox.

Sources & References

Pakistan-Linked SideCopy Targets Afghanistan Finance Ministry with Xeno RAT
The Hacker News (thehackernews.com) June 2, 2026
SideCopy Deploys Persistent XenoRAT Against Afghanistan Finance Ministry
GBHackers on Security (gbhackers.com) May 30, 2026

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Tags

SideCopyAPT36Transparent TribeXenoRATAPTEspionageAfghanistanPakistanPhishing

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.