Skip to main content
Mallory
MalwareRansomwareUsed by 1 actor

HanifNet

HanifNet is a custom backdoor used by the Iranian state-linked threat actor Lemon Sandstorm, also known as Parisite, Fox Kitten, Pioneer Kitten, Rubidium, and UNC757. It was observed in a sustained intrusion against a Middle Eastern critical national infrastructure entity that lasted from at least May 2023 to February 2025, with Fortinet reporting HanifNet was first deployed in August 2023. The malware is described as an unsigned .NET executable that retrieves commands from a command-and-control server and executes them on the victim system. HanifNet was part of a broader custom malware ecosystem that also included HXLibrary and NeoExpressRAT, and was used to maintain long-term access during a multi-phase campaign that began with stolen VPN or SSL VPN credentials and the deployment of web shells on external-facing Microsoft Exchange and other public-facing servers. The campaign involved long-term persistence, lateral movement, targeted email exfiltration, movement toward virtualization infrastructure, and reconnaissance of OT-adjacent network segments. Fortinet assessed the actor’s primary objective was long-term prepositioning toward the victim’s operational technology environment rather than significant data theft, with no evidence that the OT network itself was penetrated. HanifNet has been explicitly cited as one of more than a dozen tools used by Lemon Sandstorm in this campaign. High-confidence infrastructure associated with the broader activity included command-and-control overlaps such as apps.gist.githubapp[.]net and gupdate[.]net.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

THREAT ACTORS

Groups observed using it

1 distinct threat actor attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
Fox Kitten

...the group executed a sustained, multi-phase campaign targeting Middle Eastern energy and infrastructure, beginning with VPN credential theft and progressively deepening access through a custom malware ecosystem that included HanifNet, HXLibrary, and NeoExpressRAT.

via trellix blogtrellix.com
MITRE ATT&CK

Techniques & procedures

4 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

2 techniques
T1078Valid AccountsEvidence1

beginning with VPN credential theft and progressively deepening access

T1133External Remote ServicesEvidence1

“beginning with VPN credential theft”

Execution

1 technique
T1053Scheduled Task/JobEvidence1

“Persistence was maintained through web shells and scheduled tasks …” / command lines show “schtasks /create …” and “Register-ScheduledTask …”

Persistence

4 techniques
T1053Scheduled Task/JobEvidence1

“Persistence was maintained through web shells and scheduled tasks …” / command lines show “schtasks /create …” and “Register-ScheduledTask …”

T1078Valid AccountsEvidence1

beginning with VPN credential theft and progressively deepening access

T1133External Remote ServicesEvidence1

“beginning with VPN credential theft”

T1505.003Web ShellEvidence1

“Persistence was maintained through web shells…” and “IIS-based malware designed to blend seamlessly into legitimate network traffic.”

T1053Scheduled Task/JobEvidence1

“Persistence was maintained through web shells and scheduled tasks …” / command lines show “schtasks /create …” and “Register-ScheduledTask …”

T1078Valid AccountsEvidence1

beginning with VPN credential theft and progressively deepening access

Stealth

1 technique
T1078Valid AccountsEvidence1

beginning with VPN credential theft and progressively deepening access

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution1

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping4

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.