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.
13 distinct techniques documented for this family, organized by ATT&CK tactic.
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
"Recent phishing campaigns have involved the threat actor impersonating legitimate national and local Ukrainian energy organizations to obtain unauthorized access to organizational and personal email accounts."
"The attack chains seemingly contain LLM-generated lures and embed Google Drive links pointing to a RAR archive containing CANFAIL malware."
"...designed to execute a PowerShell script that, in turn, downloads and executes a memory-only PowerShell dropper."
"CANFAIL is an obfuscated JavaScript malware that's designed to execute a PowerShell script..."
“Phishing emails… contain… Google Drive links which host a RAR archive…”
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...
CANFAIL and LONGSTREAM... ask an LLM to generate large blocks of plausible-looking but functionally inert code, woven through the malicious logic as camouflage... making the malware look like legitimate administrative software to a casual reviewer.
...the development of evasive malware. The report highlighted two previously discovered and two newly disclosed malware families that leverage AI for evasive techniques...
...the development of evasive malware. The report highlighted two previously discovered and two newly disclosed malware families that leverage AI for evasive techniques...
“…runs a PowerShell script to download and execute a second-stage payload…”
“Messages include Google Drive links hosting a RAR archive with CANFAIL malware…”
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.