npm

The function-flag npm Supply Chain Attack (MALFEX)

Updated 9 Oct 2026 · Incident date 1 Jul 2024

function-flag 2.3.5 and later on npm added a postinstall script that downloaded and ran a hidden Windows program, from 1 July 2024.

CloudSEK and Checkmarx Zero call the wider campaign MALFEX. It has eight malicious packages, and function-flag has 37,419 of the 40,767 lifetime downloads.

What happened

One publisher group put eight malicious npm packages on the registry. All three delivery paths target Windows.

  • function-flag downloader: A postinstall hook downloads a hidden program to %APPDATA%\node.exe.
  • Overlord RAT loaders: tlxbnhd, tldriver and mxdriver download a file from api.imghippo.com, run it and delete it. The file runs Overlord, an open-source Go remote access tool.
  • Stealer chain: native-runner wraps img-to-native, which requires cdn-img-fetch. It runs at package load. It writes %APPDATA%\Microsoft\Windows\node_runtime_helper.exe, which fetches the stealer movinlike.
  • Overlord can capture the screen, log keys, read the clipboard, search files and open a remote shell.
  • movinlike targets eight Discord clients, Chromium browsers, Telegram session data and crypto wallets. It sends the data to a Discord webhook.

Checkmarx dates the operator's first npm activity to 6 August 2023.

Affected versions

  • function-flag: 2.3.5 to 2.3.9, 3.0.0, 4.0.0 and 1.7.3. Version 2.3.4 is the only clean release.
  • function-color: 1.0.0 and 1.7.3.
  • cdn-img-fetch, img-to-native and native-runner: 1.0.0 to 1.0.3 each.
  • tlxbnhd 0.0.1, tldriver 0.0.1, mxdriver 0.0.1 and 0.0.2.
  • The GitHub advisory GHSA-ggcg-4pv7-wf9m marks every function-flag version as affected. OpenSSF record: MAL-2026-17648.
  • OpenSSF: MAL-2026-16383, MAL-2026-16384, MAL-2026-16385, MAL-2026-17216, MAL-2026-17218, MAL-2026-17320.

Indicators of compromise

  • npm publisher accounts: malfexkkj, malfex_user, malfexteste2, malfexteste3, malfexteste4.
  • api.imghippo.com/files/hOG8244hc.png (Overlord).
  • raw.githubusercontent.com/cavecrew/proj/main/banner.png (stealer).
  • raw.githubusercontent.com/cavecrew/proj/main/banner.jpg (cdn-img-fetch 1.0.3).
  • 104.234.65.75:700/setup.exe and 104.234.65.75/setup.exe (movinlike).
  • cdnzona.discloud.app/node.exe (function-flag 1.7.3).
  • apicdn.squareweb.app (function-flag 4.0.0).
  • bypasscdn.onrender.com (function-flag 3.0.0).
  • 45.89.30.194 (function-flag 2.3.8 and 2.3.9).
  • 191.96.81.101 (function-flag 2.3.7).
  • apizona.onrender.com (function-flag 2.3.6).
  • 51.137.158.178/download (function-flag 2.3.5).
  • www.image.com (mxdriver).
  • %LOCALAPPDATA%\ScopeSmart Technologies Inc\ with AutoIt3.exe, h.a3x and SmartScope.vbs.
  • Scheduled task \Maiden, which runs AutoIt3.exe every 5 minutes.
  • gldriver_pre_core.exe and gldriver_pre_asset.exe in the package folder.
  • %APPDATA%\Microsoft\Windows\node_runtime_helper.exe, %TEMP%\._cif_data and %APPDATA%\node.exe.
  • SHA-256, Overlord PNG: 9aba4685af072231aee049e1a5e294965580001b364d7d00152d84fcec1ce793.
  • SHA-256, AutoIt3.exe: 5d69a932a077fee044b193c28e84564143f5c7e51079ab48e88fef74ab0b77b7.
  • SHA-256, Oxygen.a3x / h.a3x: fd199d3977e1a2945b6031fc8696660a980e4f4617899baa045efe7ccbc8de67.
  • SHA-256, Overlord decoded: 2989244eac2a4bc7a13a09dec003e5c05ef7c80b2afe0958ce25042d5b804210.
  • SHA-256, banner.png: 4f4f7d64139bde6d458a061c7fb7dd247f70f60a1ab47d87fd3634656586c106.
  • SHA-256, stealer downloaders: 889e13e227bc2b762178b88c35c691db3256e72be64d92ff1f381d29a2789849, e7f86f6cc4380db66d333eaf6f7dfc2c12d232c2bcd526434681245dea25efa4, ff826d2778ea1d40ce8ebfd9d66ecc86d4c811f5654b8a466a7e220ebbbc6807, 2f268ca76ab27971d8b16bd4ded26e1f9cd3d4460b894af2d4bdf89f0ab7ec4b.
  • SHA-256, tlxbnhd postinstall.js: 7acf331117900179b483142f216fdcb22c671eb0b1971abd57f01bc036248a6e.
  • SHA-256, movinlike: c9c374afba4658dff15f71801e88c4d199c91dd2622d72c7b0c55577c8f73437.

How to check

Run this command in each project folder. It lists any of the eight packages, including deep dependencies.

npm ls function-flag function-color cdn-img-fetch img-to-native native-runner tlxbnhd tldriver mxdriver --all

On a Windows machine that installed one of them, look for the scheduled task.

schtasks /query /tn "\Maiden" /fo LIST /v

What to do now

  1. If a Windows machine installed any of these packages, isolate it and keep its logs and files as evidence.
  2. Delete the \Maiden task, the ScopeSmart folder, node_runtime_helper.exe and %APPDATA%\node.exe.
  3. From a clean machine, change the passwords for Discord, browser-saved accounts and other accounts used on that host. End Telegram sessions and move crypto funds.
  4. Block all eight packages at your registry proxy and block the download addresses above.

What Vigilance would show

These examples show an install hold and the corresponding owner report.

Example install message

Vigilance blocked `function-flag` 2.3.5. This version is too new or changed in a way Vigilance must check first.

Example owner report

Bad update

function-flag 2.3.5

A small text-art package gained an install step that quietly downloaded and ran a hidden Windows program.

See what to do now.

No security team? See who reads the alert.

Frequently asked questions

What is the MALFEX npm campaign?

MALFEX is the name CloudSEK and Checkmarx gave to eight malicious npm packages, led by function-flag. They download Windows stealers and the Overlord remote access tool.

Which function-flag versions are malicious?

Checkmarx lists 2.3.5 through 2.3.9, 3.0.0, 4.0.0 and 1.7.3 as malicious and 2.3.4 as clean.

Is --ignore-scripts enough to stay safe?

No. The stealer chain in img-to-native and cdn-img-fetch runs when the package loads, so it needs no install script.

Sources

  1. checkmarx.com/zero-post/malfex-npm-malware-campaign-three-payloads-and-an-adversary-that-signs-their-work/
  2. cloudsek.com/blog/malfex-malicious-npm-postinstall-supply-chain-campaign
  3. github.com/advisories/GHSA-ggcg-4pv7-wf9m
  4. osv.dev/vulnerability/MAL-2026-17648

Send this page to the person who looks after AI at your company.

Email it

More supply chain attacks

All 179 attacks in the library · npm supply chain attacks · How to prevent supply chain attacks

Check the next update before you install it

Vigilance compares the version you trust with the new one. It names the one file that gained a power the old version did not have.

Start the free 14-day trialBrowse the attack library