Skip to content

Image: unit42.paloaltonetworks.com · rights & removal

Executive Summary

A command and control framework named Falcon was utilized to compromise victims' browsers by executing malicious JavaScript, enabling attackers to steal sensitive data such as passwords, emails, session cookies, and communications from webmail portals and government applications. The framework served as a delivery mechanism for an implant called Antino, which used Microsoft OneDrive as a command and control channel. Analysis identified compromises across government entities in one Middle Eastern country and four Southeast Asian countries between March and May 2026, targeting ministries of foreign affairs, defense, interior, and law enforcement agencies.
The Falcon framework has significant technical overlap with other scripting tools like PeckBirdy regarding URL structures and payload delivery methods, suggesting they may be variants of the same core system. The implant employs a multi-tiered storage strategy involving browser local storage, cookies, and a browser extension cache for persistence. Communication with the C2 server is maintained via a persistent, TLS-encrypted WebSocket connection that uses AES for data encryption.
The extension functionality grants operators extensive control over the victim's browser, including monitoring credentials, history, downloads, clipboard, and real-time network activity by hooking functions like window.fetch and XMLHttpRequest. This capability extends to exfiltrating data from applications like Discord and Zalo, scraping X/Twitter direct messages, and intercepting file downloads for code execution on the victim's system through specialized download interception techniques.

Facts Only

* Falcon is a command and control (C2) framework that compromises browsers by running malicious JavaScript.
* Attackers leveraged Falcon to compromise visitors of webmail portals and government web applications by injecting malicious JavaScript.
* The framework allowed attackers to sideload malicious Chrome extensions and steal passwords, emails, session cookies, and communications.
* Falcon delivered an implant named Antino using Microsoft OneDrive as a C2 channel.
* Compromises were identified in one Middle Eastern country and four Southeast Asian countries between March and May 2026.
* Targeted entities included ministries of foreign affairs, defense, interior, and law enforcement agencies.
* The framework uses obfuscation, XOR encoding, and session identifiers stored in local storage, cookies, and browser extension caches for persistence.
* C2 communication is established via a TLS-encrypted WebSocket connection with a heartbeat mechanism.
* Cryptographic key exchange involves RSA for session key negotiation and AES-256-CBC for subsequent payload encryption.
* Implant commands include xgnote (set session label), xgsend (send arbitrary JSON), xgdata (exfiltrate data), and xgnotify (send notification via Telegram).
* The Falcon Browser Extension masquerades as a PDF reader and requests 40 permissions to grant full control over browser functions.
* The extension capabilities include monitoring credentials, cookies, history, clipboard events, and downloading files.
* File downloads can be intercepted and replaced with operator-controlled URLs.
* Network hooking is implemented for window.fetch and XMLHttpRequest operations to intercept and exfiltrate HTTP request/response data.
* Data exfiltration methods target Discord messages, Zalo chat databases, and Gmail data via session cookie access.

Full Take

The existence of overlapping structures between Falcon and PeckBirdy strongly suggests that these frameworks are manifestations of a unified, evolving methodology for exploiting browser environments. The shared use of Baidu-mimicking naming conventions for session IDs further points to a cohesive, potentially AI-assisted development approach aimed at maximizing persistence across different operational contexts.
The architecture of the implant is highly sophisticated, utilizing deep integration with native browser APIs (Web Crypto API) alongside complex communication protocols (WebSocket/Comet fallback). The multi-stage process—from initial implantation to establishing persistent tracking via local storage and extension installation—demonstrates a commitment not just to data exfiltration but to achieving full session takeover within the victim's environment.
The breadth of post-exploitation capabilities, spanning credential theft, network proxying, file replacement for code execution, and scraping specific application data (like X/Twitter messages and Zalo databases), indicates a strategic focus on high-value intelligence gathering across diverse geopolitical targets. The targeting patterns—government ministries in the Middle East and law enforcement/police entities in Southeast Asia—suggest a standardized playbook applied with localized adaptations, where the choice of implant delivery varied based on the specific target environment's web application structure.
Bridge questions: If the framework evolves, how will the observed overlap between Falcon and PeckBirdy influence future threat detection strategies? What external pressures or internal design constraints might have driven the use of AI in developing such complex, interdependent frameworks? How can defensive measures be designed to account for dynamic, context-aware implants that leverage native browser features for persistence rather than relying on static signature matching?

From the original · Unit 42 Palo Alto Networks

Executive Summary Unit 42 has identified Falcon (aka XG or Xiàng Gē), which is a command and control (C2) framework that compromises victims' browsers by running malicious JavaScript. An actor leveraged Falcon to compromise visitors of webmail portals and government web applications by placing malicious JavaScript directly within these sites.
Read the full story at unit42.paloaltonetworks.com

Sentinel unavailable

The automated check of the source article's wording did not complete, so no result is shown.

This looks only at the wording of the original source article, not at this page's AI-written sections. A small local AI model made this estimate. It has not been checked against known human and machine texts, so treat it as provisional. It cannot show who wrote an article.

The XG Files: Falcon C2 Flying Under The (Browser) Radar | Huntaegis