CANFAIL
CANFAIL is an obfuscated JavaScript malware family used by a previously undocumented, suspected Russia-linked threat actor assessed as possibly affiliated with Russian intelligence services. It has been deployed primarily against Ukrainian organizations, including defense, military, government, and energy entities, with reported additional interest in aerospace and drone-linked manufacturers, nuclear and chemical research organizations, humanitarian groups, and other organizations tied to Ukraine; related activity also included targeting or reconnaissance involving Romanian and Moldovan entities.
Observed delivery is via phishing campaigns. The lures have included impersonation of Ukrainian energy organizations and a Romanian energy company, and emails contained Google Drive links to RAR archives carrying the malware. CANFAIL was often disguised with a double extension such as .pdf.js to appear as a document. On execution, the obfuscated JavaScript runs PowerShell to download and execute an additional stage, most commonly a memory-only PowerShell dropper, while displaying a fake error popup or message to the victim.
Reporting also links CANFAIL with the malware family LONGSTREAM as part of Russia-nexus operations targeting Ukrainian organizations. In that context, CANFAIL is described as using LLM-generated decoy logic: large volumes of plausible-looking but functionally inert code woven into the malware to camouflage malicious functionality and hinder analysis and detection. Multiple sources cited in the content describe CANFAIL and LONGSTREAM as examples of AI-enabled malware using benign-looking filler code for obfuscation.
Google Threat Intelligence Group identified CANFAIL in phishing operations and reported that the associated actor used LLMs not only in malware obfuscation but also to support reconnaissance, social-engineering lure creation, and basic technical guidance for post-compromise activity and C2 setup. Related reporting linked the actor to the PhantomCaptcha campaign documented in October 2025.
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.
Techniques & procedures
13 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
threat actors are using large language models to write polymorphic loaders... Public reporting now names specific actor clusters in the wild... APT27... used Gemini to accelerate development of fleet management tooling... APT45... sending thousands of repetitive prompts that recursively analyze CVEs and validate proof-of-concept exploits
Initial Access
2 techniques
Initial Access
Execution
3 techniques
Execution
Stealth
5 techniques
Stealth
Meanwhile, Russia-associated threat actors were reportedly using AI-generated decoy code to conceal malware strains such as CANFAIL and LONGSTREAM.
CANFAIL and LONGSTREAM... ask an LLM to generate large blocks of plausible-looking but functionally inert code, woven through the malicious logic as camouflage. One LONGSTREAM sample reportedly contained 32 separate instances of code querying the system’s daylight saving status
...two newly disclosed malware families that leverage AI for evasive techniques such as polymorphism...
Discovery
1 technique
Discovery
Command and Control
1 technique
Command and Control
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Malware linked to Russia-nexus operations that uses LLM-generated inert code as camouflage to hinder analysis and detection.
Malware linked to Russia-nexus operations that uses LLM-generated inert code as camouflage to make malicious logic appear more legitimate and hinder analysis.
Malware used against Ukrainian targets that employs large volumes of LLM-generated decoy code to conceal malicious behavior and hinder analysis and detection.
A malware strain mentioned as being concealed with AI-generated decoy code by Russia-associated threat actors.
The version that knows your environment.
Match every observed IP, domain, and hash against your live telemetry.
Named campaigns wielding this family, with evidence pinned to each claim.
CVEs this family uses for access and lateral movement.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Every documented technique, ranked by evidence weight.
Reddit, Mastodon, and CTI community discussion around this family.