In a detailed expose, the Socket Threat Research Team has uncovered an ongoing and highly targeted supply chain attack attributed to North Korean threat actors, believed to be linked to the βContagious Interviewβ campaign. The attackers are leveraging typosquatted npm packages and sophisticated social engineering to compromise developers and software engineers actively seeking jobs.
The attackers have published 35 malicious npm packages using 24 npm accounts, with six still live at the time of reportingβincluding react-plaid-sdk, sumsub-node-websdk, and vite-loader-svg. Together, these have been downloaded over 4,000 times.
Each package contains a malicious hex-encoded JavaScript loader known as HexEval. Socket describes its role:
βHexEval Loader collects host metadata, decodes its follow-on script, and, when triggered, fetches and runs BeaverTail, the infostealing second-stage malware linked to the Democratic Peopleβs Republic of Korea (DPRK) attackers.β
This layered malware structureβHexEval β BeaverTail β InvisibleFerretβevades static code scans and leaves little forensic trace in the npm registry.
The campaign begins with convincing social engineering. North Korean operatives masquerade as recruiters on LinkedIn and lure developers with lucrative job offers (e.g., $16,000β$25,000/month). The attackers deliver code assignments embedded with malicious packages, urging victims to execute them outside containerized environments while screen-sharing.
βVictims are approached with lucrative job offersβ¦ instructing blockchain developers to interact with a Bitbucket repository as part of a fake recruitment process.β
Once the code is executed, HexEval transmits environment data to a C2 server and fetches BeaverTail, a second-stage malware that targets browser cookies, IndexedDB data, cryptocurrency wallets, and macOS Keychain files. Socket notes:
βBeaverTail scans local file systemsβ¦ including Brave, Chrome, and Opera profiles. It attempts to extract files like Solanaβs id.json and Exodus wallet data.β
The malware adapts dynamically to Windows, macOS, and Linux hosts. In some cases, a third-stage backdoorβInvisibleFerretβis also deployed.
Several packages contain reconnaissance scripts that fingerprint the host:
In the case of jsonsecs, a cross-platform keylogger was also embedded, hooking into OS-level input functions to capture keystrokes in real-time.
βThe jsonsecs package includes compiled native binariesβ¦ enabling exfiltration or real-time surveillance by the threat actors.β
The attackers are evolving. Socket notes a shift from directly embedding malware to a modular, fetch-on-demand approach using HexEval. This makes detection harder and delays the execution of payloads until runtime conditions are met.
Socket warns:
βThe campaign is still active, and we expect additional malicious packages to surface.β
They recommend developers:
- Avoid installing npm packages from unfamiliar or suspicious accounts.
- Use sandboxed or containerized environments for running unknown code.
- Check for typosquatting and inspect the source code of dependencies.
- Use automated supply chain security tools that detect behavior-based anomalies.
Related Posts:
- Malicious Go Packages Target Developers with Hidden Loader Malware on Linux and macOS
- North Korean APT Lazarus Uses Malicious npm Package to Target Developers
- Typosquatting & Backdoors: Lazarus’ Latest npm Campaign
- Developers Targeted: North Korean Hackers Deploy “BeaverTail” Malware via NFTs
- Cyber Espionage Campaign: North Korean Actors Deploy BeaverTail and InvisibleFerret
Support Our Threat Intelligence
If you find our CVE report and cybersecurity news helpful, consider supporting our work.