Webinar
February 26
Better SOC with Interactive Sandbox
Practical Use Cases
PhantomEnigma (also known as Operation Phantom Enigma) is a sophisticated crimeware operation primarily targeting banking organizations and the public sector in Brazil. The campaign is characterized by its strategic abuse of compromised legitimate infrastructure, specifically Brazilian government (.gov.br) portals and municipal websites, to host and distribute malicious payloads.
|
Backdoor
Type
:
|
LATAM
Origin
:
|
|
1 March, 2025
First seen
:
|
4 August, 2026
Last seen
:
|
|
Type
:
|
LATAM
Origin
:
|
|
1 March, 2025
First seen
:
|
4 August, 2026
Last seen
:
|
A compromised PhantomEnigma website delivering malware
PhantomEnigma is a mature, Brazil-focused crimeware operation that provides a turnkey solution for financial fraud and infrastructure expansion. It operates as a coordinated campaign that combines modular malware, frequently rotated infrastructure, and the exploitation of trusted government hosting to evade traditional security perimeters.
Read extended analysis of PhantomEnigma attacks on ANY.RUN’s Cybersecurity blog
The operation has significantly evolved in technical complexity. Originally documented in 2025 as a browser-extension banker (Generation A), it has transitioned into a sophisticated modular Node.js backdoor (Generation B). A core tactic involves patching legitimate applications, such as the Boostnote note-taking app, and injecting a malicious index.js file into the Electron runtime. This allows the malware to masquerade as legitimate software while performing reconnaissance and executing remote tasks.
A timeline of PhantomEnigma attacks
PhantomEnigma pursues two distinct attack paths:
The operation's resilience is built into its decoupled architecture, where the delivery channel (government portals), command-and-control (C2) servers, and exfiltration endpoints are managed as separate layers. This structure ensures that the malware can continue to function even if individual components are identified and blocked.
For organizations, PhantomEnigma represents a sophisticated threat that extends far beyond simple banking fraud. By infiltrating corporate environments, the group creates a foundation for long-term persistence and large-scale exploitation:
The targeting profile of PhantomEnigma is heavily specialized, with a clear focus on the financial and public sectors within a specific geographic region:
Brazil remains the strongest targeting signal, representing 60.3% of the .gov.br delivery cluster and 46% of the operator C2 cohort observed in ANY.RUN data.
The group’s primary goal is the compromise of users at Brazilian banks. This includes both individual account holders and employees of financial institutions whose corporate systems are targeted to facilitate larger fraud operations.
While municipal and police portals in Brazil are the most frequent delivery channels, they are often the compromised middleman rather than the final victim. At least 20 different government portals have been identified as hosting malicious payloads.
Activity has been observed targeting consulting firms, logistics companies, retail, chemical, and IT sectors. The common denominator is often the use of legitimate corporate email servers to host phishing lures, exploiting the existing trust between business partners.
Detonating a PhantomEnigma sample in the ANY.RUN Interactive Sandbox provides a transparent, step-by-step look at how this modular crimeware operation functions.
View analysis of a PhantomEnigma attack inside ANY.RUN’s Interactive Sandbox
By moving beyond static analysis, defenders can observe the following stages of the attack in real-time:
The infection chain begins with a spoofed email, often appearing as an official "Polícia Civil" summons or a "Procuração Digital" (Digital Power of Attorney) notary notice. To bypass email security filters, the link provided in the email leads to a compromised Brazilian government host (.gov.br) or a police-themed typosquat .com domain.
A fake email sent as part of a PhantomEnigma campaign
Upon clicking the link, the host serves a Delphi-compiled Inno Setup installer, such as Procuracao_Digital.exe. When executed in the sandbox, this installer silently unpacks a patched Electron/Node.js-based application, often masquerading as the legitimate note-taking app Boostnote.
A compromised PhantomEnigma website delivering malware
The malicious logic is contained within a file named index.js hidden inside the application's resources. As the Electron host loads this script, the sandbox reveals several critical behaviors:
PhantomEnigma backdoor code
ANY.RUN analysts have identified at least two parallel beacon generations used by the backdoor:
Once a connection is established, the server can return tasks for the infected machine to execute:
To ensure a long-term foothold, the malware establishes persistence through Registry Run keys or the setLoginItemSettings function. Analysts can observe that while the malware's code remains a durable fingerprint, the C2 infrastructure rotates weekly, moving between different Cloudflare-fronted domains and compromised government portals to stay ahead of static blocklists.
Because PhantomEnigma rotates its command-and-control (C2) infrastructure weekly and utilizes compromised legitimate government portals, static blocklists often fail to provide adequate protection. To counter this, security teams can leverage ANY.RUN’s Threat Intelligence to identify the underlying "build-chain" fingerprints that remain stable even as domains change.
Threat Intelligence Lookup allows analysts to pivot from a single suspicious file to the entire cluster of related activity by searching for the malware's technical DNA rather than just its current address.
TI Lookup displays the latest threat intel on PhantomEnigma attacks
Security teams can identify related activity by searching for specific build-chain tags: domainName:”.gov.br” AND threatName:”nodejs” AND threatName:”inno*”.
This way, SOC teams can track the latest changes in PhantomEnigma’s campaigns and always have actionable intel to enrich and update their defenses.
TI Feeds deliver fresh IOCs to your SIEM/SOAR for proactive threat blocking
For organizations looking to automate their proactive defense, ANY.RUN’s Threat Intelligence Feeds provide a real-time stream of validated indicators based on the latest sandbox investigations by 15K SOCs and 600K analysts. The feeds deliver the most recent C2 domains, IP addresses, and URLs, directly into SIEM, SOAR, and EDR platforms. By integrating these feeds, teams can block emerging malicious infrastructure.
ANY.RUN’s TI Report on PhantomEnigma reveals all domains used by attackers
ANY.RUN also published a dedicated Threat Intelligence (TI) Report on the PhantomEnigma operation. The report presents a deep-dive investigation by ANY.RUN’s dedicated team of TI experts who meticulously track active attacks on businesses. The TI Report provides curated TTPs (Tactics, Techniques, and Procedures) and IOCs, offering security leaders a "playbook" for proactive defense.
By combining the behavioral visibility of the Interactive Sandbox with Threat Intelligence, businesses can effectively track the evolution of PhantomEnigma and secure their infrastructure against trust-based evasion tactics.
PhantomEnigma represents a growing trend of "trust-based" evasion, where attackers bypass traditional security perimeters by hiding behind compromised government infrastructure and legitimate corporate email accounts. The operation remains difficult to track because its infrastructure rotates faster than its code. Reducing business risk requires a transition to behavioral identity analytics and proactive threat hunting that connects fragmented indicators.
PhantomEnigma is a sophisticated crimeware operation targeting Brazilian banking organizations and the public sector. It primarily utilizes a modular Node.js backdoor to steal credentials and maintain persistent access to corporate cloud environments.
The group hijacks legitimate .gov.br municipal and police portals to host its malware. Because the delivery comes from trusted government infrastructure, phishing emails often pass SPF, DKIM, and DMARC checks, reaching victims with a high level of perceived legitimacy.
The most reliable signal is the build chain: a Delphi-compiled Inno Setup installer that silently deploys a patched Electron application (often masquerading as Boostnote). Technically, the malware is identified by network beacons to /laravel.php or /nbw/ endpoints.
Attackers use modular, delayed payloads and trusted infrastructure to appear benign to automated scanners. Many versions also perform reconnaissance and check for specific banking plugins (like Warsaw Technology) before activating their malicious logic.
To mitigate this threat, companies need to integrate interactive sandboxing and proactive threat intelligence to expose the modular logic of malware that often evades traditional automated scanners. By using solutions like TI Lookup and TI Feeds, organizations can identify stable build-chain fingerprints and block rotating infrastructure in real-time. Furthermore, leveraging expert-led TI Reports allows security teams to connect fragmented indicators and significantly shorten the time required for threat containment.