Skip to main content
Mallory
MalwareUsed by 2 actors

HexEval

HexEval is a hex-encoded JavaScript malware loader used in the DPRK-linked Contagious Interview software supply chain campaign. It has been distributed via typosquatted and otherwise malicious npm packages targeting developers and technical job seekers, particularly in Web3, cryptocurrency, and blockchain-related contexts. The campaign uses recruiter impersonation on platforms such as LinkedIn and malicious coding assignments that cause victims to install trojanized packages.

HexEval stores its stage-two payload as long hex strings, decodes them at runtime, and executes the recovered plaintext with eval(). Reported package-install behavior includes collecting host metadata, fingerprinting the system, decoding follow-on scripts, and conditionally fetching and executing BeaverTail as a second-stage payload. Some variants perform additional reconnaissance including collection of OS platform, hostname, username, and MAC addresses. The loader has been described as decoding hex strings to recover module names and command-and-control URLs, POSTing environment data to remote infrastructure, and then evaluating the server response in memory.

HexEval is associated with North Korean threat activity tracked as Contagious Interview and linked in the content to broader DPRK supply chain operations. It is used as part of a multi-stage infection chain intended to reduce registry artifacts and evade static detection, representing an evolution from earlier campaigns that embedded obfuscated BeaverTail directly in npm packages. BeaverTail, delivered by HexEval, is described as an infostealer/loader that can lead to deployment of the InvisibleFerret backdoor.

Observed infrastructure associated with HexEval includes Vercel-hosted endpoints such as hxxps://log-server-lovat[.]vercel[.]app/api/ipcheck/703, hxxps://ip-check-server[.]vercel[.]app/api/ip-check/208, and hxxps://ip-check-api[.]vercel[.]app/api/ipcheck/703. In one related cluster, a second-stage payload was reported from 172[.]86[.]80[.]145:1224. The content notes these endpoints may selectively return only IP geolocation data or undefined, suggesting conditional payload delivery based on runtime conditions.

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

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

View more details
Contagious Interview

The activity is an expansion of an attack wave spotted last month that involved the distribution of 35 npm packages that deployed another loader referred to as HexEval.

via the hacker newsthehackernews.com
North Korean threat actors

...using them to deliver malware families like HexEval, XORIndex, and encrypted loaders that deliver BeaverTail...

via the hacker newsthehackernews.com
MITRE ATT&CK

Techniques & procedures

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

Initial Access

1 technique
T1195Supply Chain CompromiseEvidence1

The North Korean threat actors linked to the Contagious Interview campaign have been observed publishing another set of 67 malicious packages to the npm registry, underscoring ongoing attempts to poison the open-source ecosystem via software supply chain attacks.

Execution

1 technique
T1059.007JavaScriptEvidence2
TacticExecution

The attack chains using malicious npm packages are fairly straightforward in that they serve as a conduit for a known JavaScript loader and stealer called BeaverTail.

Stealth

1 technique
T1027.013Encrypted/Encoded FileEvidence1
TacticStealth

MITRE ATT&CK# T1027.013 — Obfuscated Files or Information: Encrypted/Encoded File

Discovery

2 techniques
T1033System Owner/User DiscoveryEvidence1
TacticDiscovery

The XORIndex Loader, like HexEval, profiles the compromised machine... with second and third-generation versions introducing rudimentary system reconnaissance capabilities.

T1082System Information DiscoveryEvidence1
TacticDiscovery

The XORIndex Loader, like HexEval, profiles the compromised machine... Early iterations have been found to lack in obfuscation and reconnaissance capabilities, while keeping their core functionality intact, with second and third-generation versions introducing rudimentary system reconnaissance capabilities.

T1071Application Layer ProtocolEvidence1

The XORIndex Loader, like HexEval, profiles the compromised machine and uses endpoints associated with hard-coded command-and-control (C2) infrastructure to obtain the external IP address of the host. The collected information is then beaconed to a remote server, after which BeaverTail is launched.

T1105Ingress Tool TransferEvidence1

The attack chains using malicious npm packages are fairly straightforward in that they serve as a conduit for a known JavaScript loader and stealer called BeaverTail... as well as deploy a Python backdoor referred to as InvisibleFerret.

INDICATORS OF COMPROMISE

IOCs tracked for this family

8 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
4 tracked

IPs, domains, and DNS infrastructure linked to this family.

Other
4 tracked

Other indicator types observed in public reporting.

TypeValueLatest sighting
domain●●●●●●●●●●●●View more in app4 months ago
domain●●●●●●●●●●●●View more in app8 months ago
ip.v4●●●●●●●●●●●●View more in app1 year ago
uri●●●●●●●●●●●●View more in app1 year ago
uri●●●●●●●●●●●●View more in app1 year ago
uri●●●●●●●●●●●●View more in app1 year ago
ACTIVITY FEED

Recent activity

5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

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 matching8

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

Threat actor attribution2

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 mapping7

Every documented technique, ranked by evidence weight.

Researcher chatter

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