HXLibrary
- Type
- Backdoor
- Capabilities
- PersistencePost exploitationDefense evasion
- Platforms
- Windows
HXLibrary is a malicious .NET Internet Information Services (IIS) module used as a backdoor for persistent access on compromised Windows web servers. It has been associated with long-duration intrusions attributed to the Iranian threat actor commonly tracked as Lemon Sandstorm, also known as Parisite, Pioneer Kitten, and Fox Kitten, including espionage and strategic prepositioning activity against critical infrastructure in the Middle East. In observed operations, HXLibrary was installed on external-facing IIS servers as a rogue module, enabling the operator to maintain covert access and exert deep control over the host. The malware retrieves configuration data from cloud-hosted text resources to obtain command-and-control information and then communicates with attacker-controlled infrastructure through web requests. Its use alongside other custom implants such as HanifNet and NeoExpressRAT indicates a broader malware ecosystem designed for durable access, post-compromise operations, and long-term persistence inside strategically important networks. HXLibrary targets Windows systems running IIS and has been observed in campaigns affecting energy and infrastructure environments.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\Microsoft.WSMan.Management.Activities.dll ... HXLibrary
On 10 October 2023, the adversary registered a malicious IIS module on the previously uncompromised external facing IIS webserver, WEB-5... This module is a type of backdoor malware FortiGuard tracks as HXLibrary.
Techniques & procedures
8 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
beginning with VPN credential theft and progressively deepening access
“beginning with VPN credential theft”
Execution
2 techniques
Execution
“Persistence was maintained through web shells and scheduled tasks …” / command lines show “schtasks /create …” and “Register-ScheduledTask …”
HanifNet, HXLibrary, and NeoExpressRAT, enabling command execution, file operations, and system discovery.
Persistence
5 techniques
Persistence
“Persistence was maintained through web shells and scheduled tasks …” / command lines show “schtasks /create …” and “Register-ScheduledTask …”
beginning with VPN credential theft and progressively deepening access
“beginning with VPN credential theft”
“Persistence was maintained through web shells…” and “IIS-based malware designed to blend seamlessly into legitimate network traffic.”
HXLibrary – Malicious IIS module enabling deep system control
Privilege Escalation
2 techniques
Privilege Escalation
“Persistence was maintained through web shells and scheduled tasks …” / command lines show “schtasks /create …” and “Register-ScheduledTask …”
beginning with VPN credential theft and progressively deepening access
Stealth
1 technique
Stealth
beginning with VPN credential theft and progressively deepening access
Discovery
2 techniques
Discovery
enabling command execution, file operations, and system discovery
the adversary successfully browsed and accessed a significant number of sensitive documents stored on numerous file shares and local files throughout the victim’s network.
Observables
5 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.