Skip to main content
Mallory
Malware

function-color

Tracked since Oct 8, 2026 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK2Techniques
IOCs0Tracked
Type
Loader
Platforms
Windows

function-color is a malicious npm package used as a dependency wrapper in the MALFEX software supply-chain campaign targeting Windows systems. It contains no malicious payload of its own; instead, it installs function-flag, whose malicious installation-time behavior downloads and executes a Windows executable. The downstream executable in the analyzed function-flag delivery chain was not recovered, so its capabilities remain undetermined. This chain is distinct from other MALFEX delivery paths distributing Overlord RAT and the movinlike information stealer. No geographic or industry-specific targeting has been established.

function-color was also used in an attempted compromise of an AI coding agent through a planted local instruction file. Disguised as routine engineering guidance, the instructions directed OpenAI Codex to install the package and separately configure an attacker-controlled server for subsequent sessions. The observed installation attempt was blocked before malicious code executed, and the instruction file's original delivery mechanism was not established. The persistent agent-configuration changes belong to the surrounding attack rather than demonstrated functionality of function-color itself. The package was subsequently removed from npm.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

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

Initial Access

1 technique
T1195.002Compromise Software Supply ChainEvidence1

« Le paquet npm function-color (depuis retiré de npm) est le payload utilisé dans la campagne réelle ».

Execution

1 technique
T1059Command and Scripting InterpreterEvidence1

« Le fichier malveillant réel a conduit Codex à installer le paquet npm malveillant function-color » ; « l’exécution de code arbitraire via des tool calls injectés ».

Activity feed

Recent activity

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

View more in app →
mkd cirtNews · Oct 26, 2026Злонамерна датотека во папката „Downloads“ се обидува да измами AI агент за програмирање да инсталира малициозен софтвер | MKD-CIRT | Национален центар за одговор на компјутерски инцидентиMalicious npm package associated with the campaign named MALFEX. Attackers attempted to induce an AI coding agent to install it through instructions planted in AGENTS.md. It introduces function-flag, which downloads and executes a Windows payload. The observed customer attempt was stopped before code execution.Read more ↗help net securityNews · Oct 26, 2026AI coding agents fall for malicious instructions planted in the Downloads folder - Help Net SecurityMalicious npm package distributed through a campaign that abused coding-agent instruction files. A planted AGENTS.md in the Downloads folder induced Codex to change its settings and install the package. The settings changes caused subsequent Codex sessions to execute the attacker’s command across projects. npm removed the package, and the researchers advise treating systems where it was installed as compromised. The package’s specific payload capabilities are not described.Read more ↗the hacker newsNews · Oct 26, 2026Malicious File in Downloads Folder Tries to Trick AI Coding Agent Into Installing MalwareMalicious npm package that pulls in the function-flag downloader. A planted AGENTS.md attempted to trick a coding agent into installing it. The customer incident was blocked before code executed; isolated Codex tests reportedly executed the malware in more than 90% of attempts.Read more ↗cyberveilleNews · Oct 25, 2026Injection d'instructions malveillantes via le dossier Downloads pour détourner les agents IA de codage | CyberVeilleMalicious npm package identified as the payload in a real-world campaign targeting AI coding agents. An attacker-planted AGENTS.md file in ~/Downloads induced Codex to install function-color and modify its global configuration to add an attacker-controlled MCP server, establishing persistence across Codex sessions. The content does not specify the package's internal capabilities separately from the instruction-file attack. Reportedly removed from npm and active for approximately two years before public documentation. These claims and indicators are explicitly described as not externally verified.Read more ↗
+1 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

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 matchingMatch every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping2Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.