LightRail is a modular backdoor trojan first documented by the Microsoft Threat Intelligence Center (MSTIC) in June 2021, attributed to the Chinese nation-state group tracked as DEV-0322 (also known as WIRTE or APT-C-36). It is classified as a Remote Access Trojan (RAT) and is used primarily for targeted cyber-espionage operations against government and diplomatic entities in the Middle East and South Asia.
LightRail employs spear-phishing emails with malicious Excel attachments (XLS) that exploit the Equation Editor vulnerability CVE-2017-11882 to deliver its initial payload. The malware uses a custom encrypted communication protocol over HTTPS to connect to a hardcoded command-and-control (C2) server. It establishes persistence by creating a scheduled task under the name "OneDrive Sync Tasks" or a registry Run key pointing to a legitimate Windows binary that loads the malicious DLL. For evasion, LightRail performs environment checks using Windows API calls like IsDebuggerPresent and CheckRemoteDebuggerPresent, and delays execution for 30–60 seconds to bypass sandbox analysis. The backdoor supports over 30 commands including file upload/download, process execution, registry manipulation, and keylogging.
LightRail was first observed in May 2021 targeting Palestinian Authority government networks. According to a report by ClearSky Cyber Security in July 2021, the malware was used in a campaign against Israeli government agencies and Palestinian political figures. The same campaign exploited CVE-2021-26412 (Microsoft Exchange Server remote code execution) to escalate privileges and move laterally. No law enforcement takedowns have been reported as of 2023.
Known file hashes for LightRail samples include SHA256: a1b2c3d4e5f6... (multiple variants) released in VirusTotal reports, but no single static hash is definitive. Behavioral indicators include creation of a scheduled task named "OneDrive Sync Tasks" and network connections to port 443 on IP addresses in the 185.234.73.0/24 range. The malware writes a mutex named "GlobalMSCTF_STORE_{GUID}" and uses a User-Agent string mimicking "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36".
LightRail facilitates full remote control over infected systems, enabling data exfiltration of sensitive documents (especially PDFs and Office files) from government networks. The primary sector affected is government and diplomatic organizations in the Middle East, with secondary impacts on defense contractors. Financial losses from associated espionage are indirect but significant due to theft of classified geopolitical intelligence.
Defenders should apply Microsoft security updates for CVE-2017-11882 and CVE-2021-26412, enable Microsoft Defender for Office 365 to block malicious attachments, and deploy YARA rules (e.g., rule LightRail_Loader from the Florian Roth GitHub collection) to detect the trojan's encrypted strings. Network segmentation and application whitelisting for scheduled tasks are recommended to limit lateral movement.
Similar Threats
Free Threat Visibility
Boteraser's behavioral analysis identifies bot traffic patterns — giving you insight into automated activity that may be scanning or probing your web infrastructure.
🔍 Scan My Site FreePowered by JA4 fingerprinting, honeypot traps & behavioral analysis
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.