SideCopy APT Deploys XenoRAT to Target Afghanistan Finance Ministry

A highly targeted spear phishing campaign attributed with medium-to-high confidence to SideCopy, a Pakistan-linked Advanced Persistent Threat (APT) group operating under the broader Transparent Tribe / APT36 umbrella.

According to Seqrite, the campaign surgically targets Afghanistan’s Ministry of Finance (MoF) and all 34 provincial revenue directorates (Mustoufiats), ultimately deploying a customized XenoRAT 1.8.7 implant beaconing to bulletproof European infrastructure.

The attack opens with a ZIP archive containing a malicious LNK file with a carefully crafted Pashto-language filename that translates to “List of Employees Who Were Introduced to the Intellectual and Psychological Warfare Seminar”.

The deliberate use of Pashto, the dominant language across Afghanistan’s government institutions, signals deep operational familiarity with the target environment and its provincial finance officials, Seqrite said.

SideCopy APT Deploys XenoRAT

The decoy document dropped during execution is a detailed Afghan MoF provincial staff directory spanning all 34 provinces, listing Finance Directors, Revenue Chiefs, and direct mobile numbers in Dari and Pashto, suggesting extensive prior intelligence gathering by the threat actor before the campaign was launched.

Infection Chain (Source: seqrite)
Infection Chain (Source: Seqrite)

The campaign executes through a sophisticated infection chain engineered to minimize disk artifacts and evade detection at every layer.

The chain begins with the LNK file abusing mshta.exe as a Living-off-the-Land Binary (LOLBIN) to silently fetch a remote PHP-hosted HTA payload from the compromised Afghan education domain abimj[.]edu[.]af, executing all script content entirely in memory.

The second stage delivers a heavily obfuscated JScript payload containing hex-encoded string arrays, a custom Base64 decoding routine, and .NET BinaryFormatter.Deserialize_2() executed via ActiveXObject to load a Loader DLL.

Stage three introduces a .NET DLL that simultaneously drops a decoy PDF to distract the victim, creates the directory C:\Users\Public\USOShared-1de48789-1285\, and establishes Registry-based persistence under HKCU\...\CurrentVersion\Run using the typosquatting value name “Edgre” to mimic a legitimate Microsoft Edge process.

 Preparing and launching the final Xeno RAT payload (Source: Seqrite)
 Preparing and launching Xeno RAT payload (Source: Seqrite)

In stage four, a second .NET shellcode loader DLL downloads a GZIP-compressed, Base64-encoded payload disguised as ayui.vmxx, reconstructs it entirely in memory using VirtualAlloc() with RWX permissions, and triggers execution via CreateThread().

Seqrite stated that before launching the final payload, it patches AmsiScanBuffer() to disable AMSI scanning and use Assembly.Load(byte[]) for fully reflective, fileless in-memory execution.

The fifth and final stage delivers XenoRAT 1.8.7, connecting to the C2 server 185.235.137.106 over TCP using AES-encrypted and RTL-compressed traffic, with mutex “clouda” enforcing single-instance execution on the compromised host.

SideCopy’s adoption of XenoRAT is consistent with the group’s documented shift toward customized open-source RATs, a pattern Seqrite Labs confirmed in December 2024 following prior AsyncRAT adoption.

Once deployed, XenoRAT delivers a comprehensive post-exploitation toolkit: keylogging, screen capture, webcam and microphone surveillance, SOCKS5 network tunneling, and dynamic in-memory DLL loading via Assembly.Load.

Government Network Asset Identified via ASN
Government Network Asset Identified via ASN (Source: Seqrite)

The delivery domain abimj[.]edu[.]af resolved to IPs 103.132.98.224 and 103.132.98.226 within AS58469, deliberately staging malicious traffic alongside over 200 legitimate Afghan government.

The RAT C2 server at 185.235.137.106 is hosted by HZ Hosting Ltd (AS59711) in Frankfurt, a Bulgaria-registered bulletproof provider previously documented in prior SideCopy infrastructure clusters tracked by Seqrite.

The naming overlap between the delivery path (cloudiyaf) and the RAT’s hardcoded mutex (clouda) ties both infrastructure tiers to a single operator managing the full attack lifecycle.

The LNK → mshta.exe → remote HTA execution chain is a signature SideCopy TTP documented consistently since 2019, and Registry persistence via a Windows application name typosquat is equally consistent with the group’s documented post-exploitation behavior.

IOCs

ArtifactSHA256
ZIP Archive194B912C242604D6F9A79369F22338C58A13CE0CC2ED280CE505075808BC2F14
LNK File3B4194BDFE40D94031A94B30397FFD8A4B09D0A4057668E897B8BDCD1703DD01
Decoy PDFDF9173A28C0B0B878C10A53D35CD7CE6F6ED66D207B6B7C4FF723721F1C027AB
ugayt.htaA63E90EE57A1F213A8FE76EF1A6CFF5AE9ED7EBCEDA258431533825E648C0C67
noway.bat5833917BD137804F5A021D2CB37ADFE5C4B7B67DBB06D59C3B9C5CF393835E45
zuidrt.hta99127C8C67D90E2776BEEB85281F9C68399BF4567B07A6B638D68B760212E88D
WayBroad.dll8F2D979EF33B2900351C94C7335275A9342C75189E1A901998E90A539E944A1A
Aotestpass.dll0019212F25EB04BBB33BB194879C095265DB7855D6003BDD777CF0CBB90EB772
XenoRAT9AE3D785486022AF82EA92E51B26E3F55C1BBA88A7BE2AD9790F4240E8499D14

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories