What do hackers already know about your business? Get Your Free Report
KmeX Operation: IMSS Breach Exposes 280M+ Mexican Records
53 Mins Read
Summarize with:

KmeX Operation: IMSS Breach Exposes 280M+ Mexican Records

Since September 2026, the SOCRadar Threat Research Unit (STRU) has tracked an intrusion operation targeting public and private sector organizations in Mexico. The operation runs on very limited infrastructure. It exploits known vulnerabilities in legacy environments and uses a custom post-exploitation framework, internally named kx, along with a web-based victim management panel.

The adversary, tracked as KmeX, compromised or reached at least fourteen organizations, including the Mexican Social Security Institute (IMSS), in the insurance, telecommunications, public healthcare, government, and enterprise messaging services sectors.

High-value targets include an enterprise communications provider whose customer database was exfiltrated. KmeX may have used that data in the campaigns covered here or in other operations, which could affect the provider’s downstream supply chain. When the operation was detected, the actor controlled twenty-five beacons active at the same time, and the activity continued for several weeks afterward.

The operation consists of two campaigns that overlapped in time. The first began around September 2026 and targeted an enterprise messaging service provider to reach its corporate customer database and exfiltrate proprietary data. The second ran from September to October 2026 and deployed kx against a wider set of organizations through several initial access vectors:

  • exploitation of Oracle WebLogic (CVE-2019-2729)
  • compromised VPN credentials
  • possibly, information obtained in the first campaign

With victims across public healthcare, government, and insurance, and a high level of technical sophistication, KmeX is one of the most significant incidents detected in Mexico in 2026.

mexico kmax major incident 2026

Key Takeaways

  • A small number of IP addresses acted as C2 servers, management panels, and exfiltration servers throughout the operation, centralizing control over at least twenty-five simultaneously active beacons
  • The actor operated a custom post-exploitation framework (named kx) with beaconing, keylogging, screenshot capture, tunneling, and staged exfiltration capabilities. The comments in most scripts and the way the infrastructure and tools are developed suggest, with low confidence, that AI may have been used in their creation
  • The compromise of an enterprise communications provider exposed its corporate customer database, potentially expanding the campaign’s reach to dozens of organizations
  • Initial access to an insurance company was obtained by exploiting CVE-2019-2729 in an internet-exposed Oracle WebLogic instance, a 2019 vulnerability that was still present in production at the time of the attack
  • The VPN credentials used to access at least one organization in the insurance sector presumably originated from the dataset leaked by the Initial Access Broker Belsen Group in January 2025, suggesting an incubation period of more than one year between the credential leak and its operational use
  • Exfiltrated data includes more than 280 million records from IMSS-linked social security, population registry, and tax systems, as well as electoral mapping documents, increasing the political sensitivity of the incident
  • The majority of confirmed victims are Mexican organizations, with a sectoral profile consistent with espionage operations, potential subsequent use for criminal activities, extortion, or possible resale of access

KmeX Threat Actor Profile

KmeX demonstrates a level of technical competence that goes beyond the use of publicly available tools. Although the actor relies on documented exploits for initial access, most of its post-exploitation tools are custom-developed, potentially with the assistance of AI.

The kx framework includes a beaconing system, keylogging capabilities, screenshot capture, staged exfiltration, network tunneling, and pivoting, all integrated into a management panel with a web interface.

KmeX threat actor card: a Spanish-speaking intrusion operator targeting Mexico
KmeX threat actor card: a Spanish-speaking intrusion operator targeting Mexico

The development of tools such as kn_listener.py, qvd_upload.py, glpixss_listener.py, and the multiple components of the kx framework that will be discussed below demonstrates the actor’s ability to develop custom software.

The choice of Python as the primary language for the server infrastructure, combined with the implementation of custom communication protocols, suggests an actor with experience in software development and offensive operations.

Excerpt of kn_listener.py, the kx C2 listener on port 8880, with comments written in Spanish
Excerpt of kn_listener.py, the kx C2 listener on port 8880, with comments written in Spanish
qvd_upload.py loading its TLS certificate from /root/exfil.crt to receive QVD uploads over HTTPS
qvd_upload.py loading its TLS certificate from /root/exfil.crt to receive QVD uploads over HTTPS

From an operational perspective, the actor demonstrates the ability to maintain persistent access across multiple networks simultaneously and manage twenty-five active beacons in a coordinated manner. This approach supports exfiltration over extended periods while attempting to avoid triggering security controls.

The observed compartmentalization between the reconnaissance phase, data exfiltration, and deployment of the kx framework suggests mature operational planning.

Geographical and Sectoral Focus

Overall, confirmed victims indicate a focus on Mexico. The actor shows particular interest in sectors with high intelligence or economic value, including public healthcare (IMSS), government (entities with potentially linked electoral infrastructure), telecommunications, insurance, and enterprise communications service providers.

This sectoral concentration, together with the presence of sensitive data such as hospital records and potential electoral data, could indicate motivations that go beyond direct financial gain. Further details are available in the Victimology section.

Language and Cultural Indicators

Several samples from the operation exhibit characteristics suggesting that the actor is Spanish-speaking or has a functional knowledge of Spanish. Script and directory names (kx_cb, fire2, qvd_exfil, Azazel) combine technical English with naming conventions consistent with Latin American developers. Some victim identifiers in the kx framework logs use hostnames that reflect Mexican corporate naming conventions.

Ultimately, up to four independent indicators point to a Spanish-speaking developer, possibly originating from or based in Mexico:

  • The HTML source code of the Azazel panel includes the lang=”es” attribute in the <html> tag, and the main container div has the id raíz, instead of the conventional root commonly used by English-speaking developers. These two details are consistent with a potential Spanish-speaking developer generating the frontend using a standard template or an English-language LLM without subsequent customization
  • SQLite database scripts found in the OpenDir contain comments written in Spanish, suggesting that the actor naturally writes their own development notes in Spanish rather than as a result of translation
  • Finally, the handle rodrigo appears in the bash history of multiple nodes, while the path /mnt/russo/ is used as a mount point on the main server. These are the only available personal identifiers. Although insufficient on their own for individual attribution, they are consistent with the linguistic profile described above

Nevertheless, the STRU team maintains that these indicators are insufficient to establish geographical attribution or a state nexus with reasonable confidence.

Infrastructure & Pivoting

The adversary has operated a small but functionally specialized network of nodes. Each node has a differentiated role: one centralizes C2 and receives exfiltrated data, another manages and normalizes stolen data, a third acts as the actor’s operational pivot, and the remaining nodes cover testing, initial access, or occasional exfiltration functions. This separation of roles suggests a deliberate design intended to compartmentalize the operation.

N001
C2 and Exfiltration
162.35.188.56
InterServer, New Jersey, US
  • :8880kx framework C2
  • :8443/8445Exfil receiver
  • :4444Reverse shell
  • :4646WebLogic callback
  • :4647XSS pixel tracking
  • :4690Chisel from IMSS
  • :1080SOCKS proxy
  • :8082Exposed OpenDir
  • :53Internal DNS
INSTANCE 2
Secondary Azazel
205.209.102.101
Identical HTML and JS bundles
Overview of the KmeX infrastructure: N001 runs the kx C2, receives exfiltrated data and stages tools for the operator’s other nodes, while N002 hosts the Azazel panel that normalizes the stolen data

Main Node: C2 and Exfiltration (N001)

Most of the operation converges on the first node (N001), hosted at 162.35.188.56, an Interserver VPS (AS26666) located in New Jersey with the hostname vps3532757.trouble-free.net. This node centralizes the kx framework C2, tool staging, exfiltration reception, and the entry point for remote shells throughout the analyzed period.

PortFunction
8880kx framework C2 (kn_listener.py)
8443 / 8445HTTPS exfiltration receiver (PUT)
4444TCP reverse shell (x.ps1, continuous reconnection)
4646WebLogic RCE callback receiver (CVE-2019-2729)
4647XSS pixel tracking receiver (glpixss_listener.py)
4690Chisel reverse SOCKS5 listener (tunnel from the IMSS network)
1080Outbound SOCKS proxy for the established Chisel tunnel
8082OpenDir, tool staging and distribution
53Internal DNS (kxlab.test)

Three TLS certificates on N001 provide indicators directly linked to the framework: CN kx-cams (unique on the internet), CN nodenms_server (correlates with the .xmc backdoor on the IMSS NMS), and CN chisel (confirms the use of the tunnel documented later). The self-signed certificate containing 162.35.188.56 was issued on September 29, 2026, a date that coincides with the establishment of the first Chisel tunnel from the IMSS infrastructure.

TLS certificate common names observed on N001: kx-cams, nodenms_server, and chisel
TLS certificate common names observed on N001: kx-cams, nodenms_server, and chisel

Azazel Panel and TLS Relay (N002)

Another important node is hosted at 162.35.188.166 (the same /24 and ASN as N001, Interserver) and serves a dual purpose: it operates as a TLS relay with N001 (bilateral :443 traffic confirmed in the extracted pcap) and hosts the Azazel panel on port 3000.

Azazel is a system for large-scale identity (individual) resolution and normalization, as its login screen subtitle makes clear: “Mass Data Normalization”. The system implements an automatic classification pipeline across several tiers:

  • T0 makes decisions based on metadata without opening the file
  • T1 reads only the file signature (first few KB)
  • T2 analyzes the header structure (entropy, format), while the gray zone (files whose scores fall between the cold/HOT thresholds) is reserved for resolution by the next tier
  • T3 (ML) is suspected to involve manual review. Files above the HOT threshold are sent to active storage, while those below the cold threshold are sent to MinIO (cold object storage)

The underlying stack consists of nginx/1.31.5 serving the frontend on port 3000, FastAPI acting as the backend API on port 8000, Caddy operating as a reverse proxy with HTTPS redirection on port 80, and Ncat on port 443 providing an additional proxy or tunneling layer. The frontend was deployed on September 8, 2026, and the panel remained active in late November 2026.

Azazel frontend served by nginx 1.31.5 on port 3000, last modified on September 8, 2026
Azazel frontend served by nginx 1.31.5 on port 3000, last modified on September 8, 2026

The system’s core functionality is identity deduplication and consolidation through four main sections: CURP, RFC, email, and phone. Once resolved, the entity is projected into external systems through recipes (configurations that define which fields are sent, in what format, and to which destination).

This projection is performed by the receiving orchestrator, not Azazel. Data transmission is incremental (only new or changed data) and resumable. Machine consumers access the system directly through the POST endpoint using an X-API-Key, without requiring a browser session.

Azazel login page with the subtitle “Normalización masiva de datos” (mass data normalization)
Azazel login page with the subtitle “Normalización masiva de datos” (mass data normalization)

The system defines three roles: reader (search, view dashboards and entities, download originals), operator (all of the above, plus launch runs, reprocess data, and edit filters), and admin (all of the above, plus manage users, API keys, recipes, and resources). The backend combines OpenSearch for indexing, MinIO for cold object storage, and PostgreSQL as a job queue.

Azazel frontend code referencing the OpenSearch index and the PostgreSQL queue
Azazel frontend code referencing the OpenSearch index and the PostgreSQL queue

A second Azazel instance with identical HTML and JS bundles was identified on a separate node, 205.209.102.101, which also hosts an additional SQLite console panel not present on N002. The actor registered the domain lilith-baseofknowledge.com in September 2026, one day before its Let’s Encrypt certificate was issued, pointing it to N002 as the primary Azazel endpoint.

It followed a structure similar to the one mentioned above, continuing the demon naming theme used for Azazel. This suggests a second deployment by the same actor for another campaign or as a redundancy measure.

Lilith login page, presented as an SQLite database console
Lilith login page, presented as an SQLite database console

Operational Pivot Node (N003)

The third node, hosted at 131.196.248.183, belongs to COEFICIENTE COMUNICACIONES S.A. de C.V. (AS265524), based in Zapopan, Jalisco. C2 logs show this node operating the jit2 testing group (SERVER-JIT2, forti_jit2, recon_jit2, scan_jit2, ppk_jit2), consistent with a workstation used by the actor to validate the framework before deploying it against actual victims, although the available data is not sufficient to confirm this.

SERVER-JIT2 also beaconed to the N001 C2, as confirmed in kx_cb.log on October 11, 2026. This means that the adversary installed its own framework on this node, which could indicate that it uses the same environment for both operations and development, or that it verified beacon behavior from a controlled environment before the large-scale deployment the following day.

C2 log entries showing SERVER-JIT2 (131.196.248.183) beaconing to N001 on October 11, 2026
C2 log entries showing SERVER-JIT2 (131.196.248.183) beaconing to N001 on October 11, 2026

The Zapopan-based Mexican ASN associated with SERVER-JIT2 (COEFICIENTE COMUNICACIONES) is the most specific geographic indicator available. However, the presence of a node in that ASN does not imply that the operator is physically located there, as it could be a VPS, a compromised system, or remote access via a proxy.

Kali Testing Machine (N004)

The adversary’s infrastructure also includes 149.88.22.167 and 149.88.22.136 (AS212238 Datacamp), which appear to be the adversary’s Kali workstation. C2 logs record downloads of h.ps1, d.ps1, and kxstage.ps1 from these IP addresses. These are kx framework staging tools, consistent with the operator preparing deployments from their attack machine.

Root SSH logins from 149.88.22.167 and 149.88.22.136, the IP addresses of the actor’s Kali workstation
Root SSH logins from 149.88.22.167 and 149.88.22.136, the IP addresses of the actor’s Kali workstation

Like N003, this machine geolocates to Mexico.

OpenDir Download Node (N005)

The adversary may also have used machines such as 85.203.21.5 and 85.203.21.53 (VPNs belonging to AS206092 F.n.s Holdings Limited), as records show these IP addresses downloading the complete OpenDir from N001 on October 11, including chisel.exe, kxbt.ps1, and cmd_SERVER-JIT2.ps1. Downloading the entire arsenal before the large-scale deployment could correspond to a second session by the same operator, a testing environment, or a collaborator preparing their environment.

GET /
Client: 85.203.21.5
Host: 162.35.188.56:4647
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Accept-Encoding: gzip

Pivoting

The starting point was the N001 OpenDir exposed on port 8082 between October 11 and 12. This exposure revealed the server’s entire filesystem, where the STRU team found scripts containing hardcoded paths, C2 logs, SSH keys (jit-guadalajara.ppk, qualitas_persist, kxhny_rsa), and the kx framework modules ready for distribution.

From there, correlating bash_history across the first node, compromised nodes, and N003 revealed the operational IP addresses. The operator handle (rodrigo, path /mnt/russo) appears across multiple nodes with identical histories, suggesting a single operator or a small team. The correlation was completed using passive traffic data, the discovery of identical files on other servers, and N001 TLS certificates. In particular, Subject Common Names were used to identify the remaining infrastructure mentioned above, as well as the victims reached.

Bash history showing rsync transfers of data/ and pagos-src to /mnt/russo/infopasada as the user rodrigo
Bash history showing rsync transfers of data/ and pagos-src to /mnt/russo/infopasada as the user rodrigo

The oast.pro platform (178.128.212.209, DigitalOcean Singapore) appears in the network capture with more than 3,000 packets and 11 DNS callbacks on September 6, 2026. The actor used this public out-of-band (OOB) testing service to verify outbound DNS connectivity on targets before launching exploits, confirming active reconnaissance prior to the documented initial access.

178.128.212.209 resolving to oast.pro on DigitalOcean infrastructure in Singapore (AS14061)
178.128.212.209 resolving to oast.pro on DigitalOcean infrastructure in Singapore (AS14061)
DNS callbacks received by the oast.pro payload on September 6, 2026
DNS callbacks received by the oast.pro payload on September 6, 2026

Numerous victims were identified in the logs, some of which were subsequently correlated with victim organizations, while others were classified as testing targets during the stages preceding the attack.

Campaigns

The operation attributed to KmeX is structured around two distinct campaigns which, although sharing exfiltration infrastructure and management tools, rely on different initial access vectors, objectives, and execution methods.

The first campaign focused on compromising an enterprise messaging service provider with the aim of obtaining data from its corporate customer database. The second involved deploying the kx framework against a broader set of targets using multiple initial access vectors, including credential dumps from the IAB known as Belsen Group. Both campaigns overlapped temporally during September and October 2026 and shared the same data management node for exfiltrated information: the Azazel panel hosted at 162.35.188.166 (N002).

Overview of the two KmeX campaigns: the Auronix supply chain compromise and the KX framework operation both send stolen data to the N001 C2 server, and the Azazel panel on N002 merges it into identity records
Overview of the two KmeX campaigns: the Auronix supply chain compromise and the KX framework operation both send stolen data to the N001 C2 server, and the Azazel panel on N002 merges it into identity records

The diagram illustrates the actor’s operational structure, with two parallel attack chains converging at a single data normalization and storage point. This architecture suggests that the actor deliberately designed its infrastructure to handle multiple targets simultaneously, separating the access and exfiltration phases from the data processing phase.

Campaign 1: Supply Chain Compromise

The initial focus of KmeX’s first campaign was Auronix, an enterprise messaging and communications service provider whose platform is used by dozens of organizations across the Mexican public and private sectors. The actor identified and compromised a QlikView server within the organization’s environment, thereby gaining access to business intelligence data covering the platform’s corporate customer base.

Script recreating a PHP web shell through MySQL INTO OUTFILE on an Auronix host
Script recreating a PHP web shell through MySQL INTO OUTFILE on an Auronix host

The first indications of access to the Auronix environment were detected in September 2026, coinciding with the actor’s initial access activities against other infrastructure, which will be covered in subsequent sections.

QlikView Reconnaissance and Extraction

After gaining access, the actor deployed reconnaissance scripts designed to map the server structure and locate data files in QVD (QlikView Data) format. The exploration revealed the path D:\BI_QlikView\, which contained hundreds of QVD files distributed across different subdirectories, each corresponding to a different corporate customer of the platform.

qvd_recon.ps1 mapping drives and counting QVD files under D:\BI_QlikView\
qvd_recon.ps1 mapping drives and counting QVD files under D:\BI_QlikView\
Commands counting QlikView project (.qvw) files and listing PowerShell and cmd processes on the Auronix server
Commands counting QlikView project (.qvw) files and listing PowerShell and cmd processes on the Auronix server

The QVD files contained processed data from the CalixtaSend and CalixtaChat messaging services, including customer identifiers, sending volumes, account configurations, and potentially enterprise communications content. The nature of this data makes this access an ideal starting point for social engineering or targeted fraud operations against Auronix customers, serving as an initial foothold for reaching its customers through a supply chain attack.

Requests for QVD files from the actor’s /exfil/ directory, including CalixtaSend and CalixtaChat datasets
Requests for QVD files from the actor’s /exfil/ directory, including CalixtaSend and CalixtaChat datasets

Exfiltration

After collecting the data by executing various scripts, the adversary proceeded to exfiltrate the QVD files using the qvd_exfil1.ps1 script, which establishes an HTTPS connection to N001 (162.35.188.56) and transfers the files using HTTP PUT. 190 QVD files were exfiltrated to the actor’s main node, where they could subsequently be processed by the Azazel panel.

qvd_exfil1.ps1 uploading 16 selected QVD files via HTTP PUT
qvd_exfil1.ps1 uploading 16 selected QVD files via HTTP PUT

Exfiltration was performed over port 8443 using the PUT method, as shown in the previous image. This is consistent with the exfiltration pattern documented in other scripts used by the actor, which relies on its own HTTP servers rather than standard file transfer protocols to avoid traffic inspection.

Azazel

The exfiltrated QVD files were temporarily stored on N001 in the path /root/exfil/qvd/ using qvd_upload.py, which accepted PUT requests and saved each file using the base name of its original path. From there, the files were processed by the Azazel dashboard hosted on N002, which acts as a data platform shared by both campaigns.

qvd_upload.py PUT handler storing received files under /root/exfil/qvd
qvd_upload.py PUT handler storing received files under /root/exfil/qvd

Azazel classifies each imported file into tiers T0 to T2 by its actual content rather than its metadata, reading file signatures to determine the data level. Records that exceed the HOT threshold are fed into the entity resolution engine, which deduplicates individuals using the CURP, RFC, email address, and phone number, consolidating records that appear in multiple sources under a single identity.

Azazel processing states and the T0 to T2 classification tiers
Azazel processing states and the T0 to T2 classification tiers

The dashboard displays the processing counters via a PostgreSQL queue. At the time of detection, this view included entries for SIPARE and RENAPO with counts that matched the figures retrieved from the Oracle extract (260,608,734 and 9,693,494, respectively), confirming that, at least, these two datasets had been processed through the channel.

The QVD files stolen from Auronix were received on N001 (190 files, 1.9 MB, as recorded in the QVD_progress.log file on September 29, 2026, at 23:34 UTC). The connection between the QVD exfiltration chain and the Azazel ingestion is evident from the shared infrastructure, where N001 receives all exfiltrated data, and Azazel on N002 is the sole processing system within that infrastructure. The 16 QVD filenames include client-assigned identifiers (ExtCalixtaSend_clientes, ExtCalixtaChat_Tenants, T1CalixtaSend_Clientes, etc.) that match the multi-client pipeline structure that Azazel is designed to process.

2026-09-29 23:34:01 files=190 size=1.9M

The resulting data is incrementally projected to the configured external system (AEB), without restarting the process from scratch. The record counters visible in the panel at the time of detection confirm that processing had been completed for at least part of the received data.

Conclusion and Supply Chain Implications

The most significant aspect of this campaign is Auronix’s position within the Mexican business ecosystem, more than the volume of data exfiltrated. By compromising the messaging platform of a provider with dozens of corporate customers, the threat actor obtained access to information that could be used to:

  • Identify high-value target organizations among Auronix’s customers
  • Facilitate targeted phishing attacks against employees of those organizations using information from internal communications
  • Expand access to customer environments through credentials or tokens obtained from intercepted communications

This pattern is consistent with an actor seeking to maximize the impact of a single initial access point by compromising the trusted ecosystem surrounding the target, an approach that scales further through the second campaign.

Campaign 2: KX Framework

The second campaign documents the systematic deployment of the kx framework against multiple organizations during September and October 2026. Unlike the first campaign, where access was concentrated on a single provider, this campaign used heterogeneous initial access vectors, including the exploitation of known vulnerabilities in legacy software, the use of compromised credentials obtained from public sources, and pivoting through internal infrastructure.

The actor’s extensive arsenal supports different activities depending on the campaign. This section first reviews how the kx framework works, then details the most relevant operational phases.

KX Framework

Unlike commercial or publicly available post-exploitation frameworks such as Cobalt Strike, Sliver, and Havoc, kx consists entirely of Python and PowerShell scripts developed by the actor, with no dependencies on third-party projects found. Given the extensive list of scripts and modules used, the remaining indicators can be found in the IOC section. This section focuses on the most relevant components for understanding the operation.

Architecture

The central server-side component is kn_listener.py. Its purpose is to receive beacons from agents deployed on victims and log their activity. The name kn suggests “kx node” or “kx network”. It operates over TCP port 8880 on N001.

The beacon format is structured JSON containing at least four fields:

{
“host”: “<compromised_host_name>”,
“ts”: “<timestamp>”,
“mod”: “<reporting_kx_module>”,
“data”: “<module_payload>”
}

This compact format is evidenced by the kxdata_HHMMSS__<module>_<HOST>.bin files observed in the OpenDir. The filename encodes the UTC time of reception (HHMMSS), the module that generated the beacon (kxbt, kxkey, kxstage, kxsniff), and the name of the compromised host.

kxdata_*.bin files produced by the kxbt module for SERVER-JIT2
kxdata_*.bin files produced by the kxbt module for SERVER-JIT2

The most direct evidence of the framework’s active operation is the volume and regularity of the kxdata_* files stored in the root directory. Hundreds of files corresponding to multiple captured hosts and modules were observed. The logs and information returned by each module have helped reconstruct the purpose of each component.

Modules and Agent

The kxdata_* files make it possible to identify which modules were operational at the time of capture, along with their respective victim hosts:

kxbt: Persistence

The basic beaconing module. It is deployed on the compromised host and periodically sends a heartbeat packet to the listener. kxbt_*.bin files have been observed for dozens of nodes. Its activity also appears in the C2 log.

Requests retrieving kxbt beacon data files for SERVER-JIT2
Requests retrieving kxbt beacon data files for SERVER-JIT2

kxkey: Keylogger

The keylogging module. The observed kxkey_*.bin files range in size from 50 to 112 bytes, consistent with transmissions of captured keystrokes. The module actively reports from the same hosts where kxbt is detected. Files associated with different victims indicate that the module transmits keystrokes in batches or at timed intervals. Its activity also appears in the C2 log.

kxstage: Staging and Lateral Deployment

The staging module. kxstage_*.bin files were also observed across numerous confirmed victims. The appearance of kxstage files for a host precedes the corresponding kxbt files in the captured data, suggesting that kxstage handles the initial deployment of the beacon on a newly compromised host, probably through lateral movement. Like the other modules, it appears in the C2 log.

Deployment and Persistence on Systems

KmeX also has complementary persistence mechanisms adapted to each compromised environment. Analysis of the modules revealed techniques targeting Windows, Linux, and network equipment, reflecting a redundancy strategy in which losing one access vector does not necessarily result in losing access to the environment.

deploy31d: Agent Installer

The main persistence mechanism for Windows hosts is the deploy31d.py pair (Python orchestrator on the server) and deploy31d.ps1 (PowerShell payload installed on the client). The Python script automates the deployment process by connecting to the compromised host, transferring the PowerShell payload, and installing it as a Windows service or scheduled task.

Code creating SYSTEM-level scheduled tasks on a compromised host
Code creating SYSTEM-level scheduled tasks on a compromised host

The staging activity followed immediately by the kxbt beacon recorded in the logs confirms the workflow: staging > installation > active beacon.

x.ps1: Reverse Shell

The x.ps1 file implements a PowerShell reverse shell to port 4444 on N001. Unlike the kx beacon (which reports periodically and waits for instructions), x.ps1 establishes an interactive shell that allows the actor to execute commands in real time. If the connection is interrupted, the script automatically attempts to reconnect to the C2, ensuring persistence of the interactive channel.

x.ps1 reverse shell connecting back to 162.35.188.56:4444 in a reconnect loop
x.ps1 reverse shell connecting back to 162.35.188.56:4444 in a reconnect loop

kxstage.ps1: PowerShell Staging Module

Complementary to deploy31d.ps1, kxstage.ps1 manages the staging phase prior to the full deployment of the agent. It handles downloading the agent from the attacker’s nodes, verifying its integrity, and preparing the execution environment before invoking the persistence mechanism.

As dozens of files and modules were used during deployment, the framework’s components are summarized in the following figure:

The kx framework's per-host infection cycle: each implant stage reports to kn_listener.py on N001, which had 25 active beacons at the time of detection
The kx framework’s per-host infection cycle: each implant stage reports to kn_listener.py on N001, which had 25 active beacons at the time of detection

The kx framework represents a significant custom development capability. Its modular design (central listener, lightweight agents, and interchangeable modules), the presence of an alternative DNS-based C2 channel, and its adaptation to multiple platforms (Windows/Linux/IoT) demonstrate operational maturity that goes beyond the opportunistic use of public tools. Evidence of simultaneously compromised hosts at the time the OpenDir was captured, with keylogging active on most of them, indicates that the actor maintained persistent access and continuous credential collection across multiple organizations throughout the campaign.

Phase 0: Reconnaissance and Preparation

With the framework covered, this section examines how infrastructure preparation began for the second campaign, which can be traced back to early August 2026. The first server was registered in May, several months before the operation was carried out. Logs from the main VPS show activity on August 2, 2026, when the actor appears to have configured the exfiltration services, the kn_listener listener, and the TLS certificate system. The self-signed certificate with CN=162.35.188.56 was issued on September 29, 2026, coinciding with the establishment of the Chisel tunnel into the IMSS network.

As part of the preparation, the actor verified the reachability of target systems using the OOB testing platform oast.pro (178.128.212.209). On September 6, 2026, the interactsh payload daeb8c8ca2kk5k7hneggwx3czthbbn91k.oast.pro received 11 DNS callbacks within seconds, originating from multiple resolvers associated with a single target. This pattern, multiple rapid DNS lookups on a single out-of-band (OOB) subdomain, is characteristic of outbound connectivity verification prior to executing an exploit. The available evidence consists of the DNS callbacks documented in the network capture.

interactsh, the ProjectDiscovery out-of-band interaction tool used with the oast.pro payload
interactsh, the ProjectDiscovery out-of-band interaction tool used with the oast.pro payload
interactsh client output listing a DNS callback for the oast.pro payload on September 6, 2026
interactsh client output listing a DNS callback for the oast.pro payload on September 6, 2026

One potential source of initial access is the Belsen Group credential dump. The actor stored a copy of the FortiGate VPN credential dump published by Belsen Group in January 2025 on its infrastructure. The dataset included credentials for 15,474 devices across 145 countries, of which 1,603 were located in Mexico. Files containing a random code in their names, in addition to vpn-passwords.txt, were found in the actor’s OpenDir. These files contain the data organized by network ranges, with the marker -=-= Belsen Group -=-= preceding each credential block.

Belsen Group FortiGate VPN credential files (config.conf and vpn-passwords.txt) stored by the actor (redacted)
Belsen Group FortiGate VPN credential files (config.conf and vpn-passwords.txt) stored by the actor (redacted)

This marker is associated with Belsen Group, which released the dataset for free on a cybercrime forum in January 2025.

SOCRadar Threat Hunting results for “Belsen Group”
SOCRadar Threat Hunting results for “Belsen Group”

The following section provides a graphical overview of how the entire campaign unfolded along the adversary’s timeline and how its infrastructure was used to affect dozens of companies:

KmeX Operation Timeline

  1. Infrastructure
    First Server Registered
    Set up several months before the operation began.
  2. Infrastructure
    N001 Configured
    Exfiltration services, the kn_listener C2 and the TLS certificate system set up on the main VPS.
  3. Campaign 2
    Pre-Exploit DNS Checks
    An oast.pro payload receives 11 DNS callbacks within seconds, confirming a target’s outbound connectivity.
  4. Infrastructure
    Azazel Panel Deployed
    The data normalization frontend goes live on N002.
  5. Campaign 2
    IMSS Mass Exfiltration
    More than 280 million SIPARE, RENAPO and RFC/SAT records pulled from IMSS Oracle systems.
  6. Campaign 2
    Chisel Tunnel into IMSS
    Reverse SOCKS5 tunnel from an IMSS host to N001 port 4690. N001’s self-signed certificate is issued the same day.
  7. 23:34 UTC
    Campaign 1
    Auronix Data Received
    190 QVD files (1.9 MB) from the Auronix QlikView server logged on N001.
  8. Campaign 2
    SERVER-JIT2 Beacons
    The actor’s own node beacons to the kx C2, and the full OpenDir on N001 is downloaded.
  9. 04:41 UTC
    Campaign 2
    Mass kx Deployment
    Hosts across at least two organizations compromised within minutes. 25 beacons were active at detection.
  10. Infrastructure
    Azazel Still Online
    The panel remains active in late November 2026.
KmeX operation timeline, from the first server registration in May 2026 through the mass kx deployment on October 12 to the Azazel panel still running in late November

Initial Access

In addition to the previously mentioned access obtained through credentials acquired by the adversary, three other initial access vectors were identified, based on the exploitation or abuse of other applications.

CVE-2019-2729: Oracle WebLogic

The first intrusion vector involves the exploitation of CVE-2019-2729, a deserialization vulnerability in Oracle WebLogic that allows unauthenticated remote code execution. The exploit2729.py script found on the actor’s infrastructure is configured to target several servers belonging to companies operating in Mexico’s insurance and financial sectors.

exploit2729.py generating the ysoserial payload and sending it to the target endpoints
exploit2729.py generating the ysoserial payload and sending it to the target endpoints

The exploit sends a Java deserialization payload to the /wls-wsat/* and /_async/AsyncResponseService endpoints, using a gadget chain generated through ysoserial. The payload embedded in the XML establishes a verification callback to 162.35.188.56:4646 (N001). Data exfiltrated from one of the affected companies after the script was run was also found, confirming that this method was used. From the compromised system, the actor could chain execution with the qc2.sh script, which establishes a reverse shell to the main VPS and can pivot to 172.16.5.139:8001, an additional WebLogic server within the organization’s internal network.

Pivot script using qc2.sh to send the payload to the internal WebLogic server at 172.16.5.139:8001
Pivot script using qc2.sh to send the payload to the internal WebLogic server at 172.16.5.139:8001

Data exfiltration from the affected companies took place shortly after initial access. The tokenizacion.csv file and the pagos-src/ directory contained tokenized payment data, with a total volume of 1.65 GB subsequently transferred to 201.151.239.113 (Alestra, Mexico).

CVE-2021-35464: ForgeRock AM (OpenAM)

The second vector uses CVE-2021-35464, a Java deserialization vulnerability in the jato.pageSession parameter of ForgeRock Access Management (AM, formerly OpenAM). The target is IMSS (Instituto Mexicano del Seguro Social), where the adversary attacked the centralized authentication server.

The Gen.java script generates the deserialization payload through the PriorityQueue > TemplatesImpl > Column$ColumnComparator chain, compiled in Java 6 for compatibility with the server’s JVM. The payload is injected through the jato.pageSession parameter using a null prefix (0x00). The exec_cmd.py script automates the entire process, including payload generation, submission with the correct F5 session cookie to pin the backend, and in-band retrieval of the results through the _loot.txt file written to disk by the payload.

Gen.java building the deserialization payload for CVE-2021-35464
Gen.java building the deserialization payload for CVE-2021-35464
exec_cmd.py automating CVE-2021-35464 exploitation against OpenAM with in-band output retrieval
exec_cmd.py automating CVE-2021-35464 exploitation against OpenAM with in-band output retrieval

This vector provides the actor with access to the IMSS internal network infrastructure, which is subsequently exploited during the lateral movement and mass exfiltration phases.

Command output confirming root access and dumping /etc/shadow (redacted)
Command output confirming root access and dumping /etc/shadow (redacted)

JMX MLet RCE: GlassFish (CGV)

The third vector exploits the JMX (Java Management Extensions) interface of a GlassFish server, with the VM identified at 74.112.250.119. The attack chain follows the classic JMX MLet RCE pattern, in which the actor causes the remote server’s JVM to load an mlet.html file hosted on its infrastructure. This file, in turn, instructs the JVM to download and execute payload5.jar.

JMX MLet chain: mlet.html loads payload5.jar from 162.35.188.56, the host VM4424 is enumerated, and stage.ps1 writes the cgv.jsp web shell
JMX MLet chain: mlet.html loads payload5.jar from 162.35.188.56, the host VM4424 is enumerated, and stage.ps1 writes the cgv.jsp web shell

The JAR ultimately writes the cgv.jsp webshell to two document roots on the GlassFish server and downloads stage.ps1 to establish the kx beacon, as shown in the previous image. The execution chain follows this sequence:

JMX MLet > mlet.html > payload5.jar > cgv.jsp (webshell) + stage.ps1 (kxstage)

Ultimately, KmeX has several methods and tools in its arsenal to gain access to different types of infrastructure, capabilities it demonstrated on multiple occasions, as detailed below.

Phase 1: Lateral Movement Within the IMSS Infrastructure

One of the most significant intrusions involved the previously mentioned CVE-2021-35464. Following this compromise, the adversary initiated a systematic lateral movement process within the IMSS infrastructure, which continued over the following weeks.

The first documented milestone was the establishment of a Chisel reverse SOCKS5 tunnel in September 2026. A Chisel client was activated from a compromised host within IMSS and connected to the actor’s listener at 162.35.188.56:4690, establishing the proxy. This tunnel provided the actor with transparent access to the entire IMSS internal network from its VPS.

2026/09/29 01:33:17 server: session#1: tun: proxy#R:127.0.0.1:1080=>socks: Listening

Through the SOCKS proxy, the actor identified and compromised the NMS (Network Management System) at 10.254.217.11, gaining access using the available credentials. From the NMS, the actor escalated privileges to root through the hidden binary /usr/local/bin/.xmc -p and configured a second SOCKS proxy on port :1081, providing a redundant access channel. The actor also accessed the server’s iDRAC using default credentials.

imss-connect.sh routing SSH through the Chisel SOCKS proxy to the NMS at 10.254.217.11, with root, iDRAC, and SOCKS (:1081) options
imss-connect.sh routing SSH through the Chisel SOCKS proxy to the NMS at 10.254.217.11, with root, iDRAC, and SOCKS (:1081) options

The imss-connect.sh script documents the complete access architecture, as shown in the previous image. It establishes an SSH tunnel to weblogic using the private key /root/.ssh/id_vps, with a ProxyCommand configured over the Chisel SOCKS proxy. This provides access to the Oracle client residing on the compromised server, allowing direct connections to the organization’s production Oracle instances.

In parallel, the actor conducted reconnaissance of the Oracle environment using the exa_*.sql and enum_bdtu_users.sql scripts, which target the production Exadata environment. The queries search for DBLinks to other federal government Oracle systems, grants for Oracle packages with outbound network capabilities (UTL_HTTP, UTL_TCP, DBMS_LDAP), and public synonyms related to healthcare systems (VACUN, CART, COVID, CLIMSS, NSSA).

Oracle reconnaissance queries for private DB links and PUBLIC grants on network-capable packages
Oracle reconnaissance queries for private DB links and PUBLIC grants on network-capable packages
Query counting rows and listing the columns of the IDSE_CORRECCION_DICTAMEN table
Query counting rows and listing the columns of the IDSE_CORRECCION_DICTAMEN table

The actor uses basic obfuscation in SQL queries to evade auditing. One example is avoiding the direct use of USERENV: the function name is constructed through character concatenation: chr(85)||chr(83)||chr(69)||chr(82)||chr(69)||chr(78)||chr(86). Although basic, this technique suggests that the actor is aware of SQL auditing mechanisms within compromised systems.

Phase 2: Mass Exfiltration

Once the required data had been identified, the adversary moved on to exfiltrating data from the IMSS production systems. This phase took place around mid-September 2026 from an IMSS host, using an account with sysdba privileges over the Oracle instances. Access at this stage was apparently obtained by exploiting CVE-2021-35464, before the Chisel pivot was established.

One of the scripts used, dump31d.ps1, establishes multiple parallel TCP streaming connections to the main VPS to extract table contents through SQL queries executed using the local Oracle client.

Stream-Copy function streaming query output over TCP to the actor’s VPS
Stream-Copy function streaming query output over TCP to the actor’s VPS

The data exfiltrated during this phase and its volume included:

  • Sistema de Pago Referenciado (SIPARE): 260,608,734 records containing data on Social Security contributions and benefits for IMSS beneficiaries, including the NSS, RFC, full name, and employment information. This count comes from the dump31d.ps1 output on the CSC system, which logged the rows written across seven periods
  • Registro Nacional de Población (RENAPO): 9,693,494 records containing the CURP, NSS, and RFC of Mexican citizens, obtained by cross-referencing data from the RENAPO population registry and IMSS internal systems. This count is directly reflected in the statistics from the Oracle data dictionary retrieved from the interactive SQLPlus session logged in the .shell4646.log file
    • The same session confirmed the actor’s access to RENAPO through two additional channels: dba_synonyms pointing to a remote ENJM schema via a RENAPO database link, and dba_source entries for stored procedures that referenced RENAPO schemas, confirming that the actor could move from the IMSS Oracle instance to RENAPO data directly via configured database links without the need for a separate intrusion
  • RFC/SAT: 11,813,818 tax records, totaling 743 MB. This count is directly reflected in the Oracle data dictionary statistics in the .shell4646.log file
Synonyms reaching RENAPO tables through the DBLINKENJM database link
Synonyms reaching RENAPO tables through the DBLINKENJM database link
Recovered database and directory connection entries (redacted)
Recovered database and directory connection entries (redacted)

Additionally, the actor exploited a vulnerability in the serviciosdigitales.imss.gob.mx portal through cartilla_pwn.py, which implements a CAPTCHA bypass using OCR to massively enumerate the National Health Card database. The actor feeds the system with the CURP/NSS pairs obtained from the RENAPO dump, performing individual queries for each record.

cartilla_pwn.py retrieving National Health Card pages from serviciosdigitales.imss.gob.mx
cartilla_pwn.py retrieving National Health Card pages from serviciosdigitales.imss.gob.mx
National Health Card reprint form requiring a CURP, NSS, email address, and CAPTCHA
National Health Card reprint form requiring a CURP, NSS, email address, and CAPTCHA

The resulting PostgreSQL dump of the sis.cartilla_nacional_salud table reached 737 MB of personal data.

Dump of the sis.cartilla_nacional_salud table (redacted)
Dump of the sis.cartilla_nacional_salud table (redacted)

KmeX also accessed the SIARHE (vaccination) system, from which approximately 171 MB of data was exfiltrated through 17 parallel streaming channels in less than one hour, adding to the data already obtained from other portals.

SIARHE dump files written by parallel streams under /root/siarhe_dumps
SIARHE dump files written by parallel streams under /root/siarhe_dumps

The exfiltration used the SOCKS5 proxy at 200.9.184.249:3730 (AITelecom Mérida, Mexico) as the egress node for connections to the IMSS production systems, with 404 packets recorded in the network capture. This egress node, geographically located in Mérida, could be an additional VPS operated by the actor or a commercial proxy used to conceal the actual origin of the connections.

Egress: SOCKS 127.0.0.1:1083 (exits through 200.9.184.249 MX)

With access to the production systems, in this case IMSS, and the exfiltration of more than 280 million records, the adversary could move on to the next phase, deploying its own kx framework against the set of victims identified during the previous phases.

Phase 3: Mass Deployment of the KX Framework

Following exfiltration, the deployment of the kx framework became a crucial step, as it established the actor’s own network of compromised nodes from which it could operate. The mass deployment of the kx framework took place on October 12, 2026, and is documented in detail in the C2 log (kx_cb.log). The persistence and execution capabilities described earlier allow the adversary to perform different tasks on each victim.

C2 log entries from October 12, 2026, as the kxkey and kxsniff modules are pulled and start reporting
C2 log entries from October 12, 2026, as the kxkey and kxsniff modules are pulled and start reporting

Preparation began several days earlier, when KmeX conducted internal tests from 127.0.0.1 and from its Kali testing machine (149.88.22.167, identified as KALI-LX-TEST in the log), which downloaded the h.ps1, d.ps1, and kxstage.ps1 modules. On October 11, the SERVER-JIT2 node (131.196.248.183, AS265524, COEFICIENTE COMUNICACIONES, Zapopan, Jalisco) started beaconing, confirming that the actor had the framework operational on its own workstation.

KALI-LX-TEST beacons sent from 149.88.22.167
KALI-LX-TEST beacons sent from 149.88.22.167
131.196.248.183 registered to COEFICIENTE COMUNICACIONES (AS265524) in Mexico
131.196.248.183 registered to COEFICIENTE COMUNICACIONES (AS265524) in Mexico

Mass deployment began on October 12 at 04:41 UTC. Within minutes, the actor had compromised at least 14 hosts distributed across the networks of at least two different organizations (anonymized for security reasons):

  • Organization A: Up to 14 confirmed hosts were identified, including servers and workstations across multiple branches: headquarters, the 8 de Julio, Mostrador, Facturación, Recepción, and Super 2 branches, as well as branches in Tepic (Nayarit) and Coyula. The source IP ranges correspond to different internet connections belonging to these branches, confirming that the actor compromised multiple independent networks within the same organization
kx module traffic from Organization A branch hosts (redacted)
kx module traffic from Organization A branch hosts (redacted)
  • Organization B: At least five hosts with generic Windows names (DESKTOP-XXX) were identified across three different IP ranges, suggesting an organization with multiple locations or a segmented corporate network

The infection cycle documented in the logs follows this sequence for each host:

1. kxstage → POST /kxstage_<HOST> – confirms implantation
2. kxbt → POST /kxbt_<HOST> – first beacon with sysinfo
3. kxbt → GET /kxbt_cmd_<HOST> (polling every ~5 min) – waits for commands
4. kxkey → POST /kxkey_<HOST> – keylogging in progress
5. kxh → POST /kxh_<HOST> – credential harvesting

Additional modules, including kxpb (clipboard and screen capture), kxsniff (network sniffer for lateral discovery), and kxmass (mass deployment), are selectively activated depending on the host. The kxwatch_25 module, running from 127.0.0.1 at intervals of a few minutes, corresponds to the C2’s internal watchdog, monitoring the status of the 25 simultaneously active beacons documented at the time of detection.

Network trace started on a compromised host and written to kxs.etl
Network trace started on a compromised host and written to kxs.etl

Some of these files were not found on any of the analyzed servers, with their existence only confirmed through references in logs or executions triggered by other scripts, which revealed their nature. One example is the beacon count, for which the logs revealed 25 simultaneously active paths:

POST /kxwatch_25 len=64 path=/kxwatch_25

In addition to the count and frequency of the POST requests, unique active paths were also identified in the C2 log at the time of capture, all indicating 25 simultaneously active sessions.

Additionally, network captures were identified showing traffic distribution. At the time of observation, more than 7,000 packets were directed to N001 (162.35.188.56), 422 to N002 (162.35.188.166), and 102 to N003 (131.196.248.183). This distribution indicates that N001 concentrates active C2 activity, while N002 is used to manage and normalize exfiltrated data.

Packet capture showing MQTT and TCP traffic to 162.35.188.56
Packet capture showing MQTT and TCP traffic to 162.35.188.56

A command capture was also identified within the pcap, showing the actor conducting internal reconnaissance across the victims’ networks from one of the compromised hosts. The command searched for Oracle WebLogic instances on port :7001, video surveillance management software (Milestone, Genetec, Hanwha, Avigilon, Exacq, Witness, Optix), and internal network ranges (10.0., 10.27., 172.16., 172.18.). The response identified the sntlkeyssrvr.exe process on port 7001 (SafeNet License Server) and VMS software installed under the name “Informes Analíticos de Aranxel”, an ERP system for customs and foreign trade management.

Additionally, analysis of the DNS queries in the previously mentioned network capture revealed two domains of interest in Mexico’s transportation sector, each resolved 32 times to 72.167.133.69 (cPanel server). These domains belong to a company in that sector, potentially indicating an additional reconnaissance target or a victim with kx implanted on a host whose IP address was not identified in the log.

All operations ultimately converge on Azazel, the identity resolution and normalization system deployed on N002. Azazel receives exfiltrated data from both campaigns, including QVDs from Auronix, Oracle dumps from IMSS, and payment records, then consolidates them and projects the resolved entities to the external orchestrator (AEB).

Azazel identity resolution fields: CURP, RFC, email, and phone
Azazel identity resolution fields: CURP, RFC, email, and phone

At the time of detection, the panel counters included datasets such as the 260 million SIPARE records and the 9.7 million RENAPO records that had already been processed. The fact that the actor operates multiple Azazel nodes simultaneously points to a normalization infrastructure designed to scale to higher-volume operations.

Victimology

The operation, which was captured while active over several months, affected a heterogeneous set of Mexican organizations across both the public and private sectors. The selection of victims does not follow a single profile, as the actor combined high-value institutional targets, service providers with access to multiple customers, and organizations from various sectors. This suggests a strategy aimed both at obtaining massive volumes of data and gaining access to trusted ecosystems that could facilitate subsequent operations. This section does not account for potential access obtained through credentials from the Belsen Group dump, so the actual impact and number of accesses are likely greater than described here.

Organizations Affected by KmeX

14victims identified
5public sector institutions9private companies

Public Sector

5 institutions
  • IMSS
    Healthcare and social security
    260.6 million SIPARE records and 11.8 million RFC/SAT tax records, plus health card and vaccination data.
    Data exfiltrated
  • RENAPO
    National population registry
    9.7 million identity records with CURP, NSS and RFC, reached through IMSS database links.
    Data exfiltrated
  • INE
    Electoral institution
    8,884 AMGE2023 electoral mapping documents taken from a publicly accessible Firebase bucket.
    Data exfiltrated
  • Secretaría de Bienestar
    Federal government
    Welfare Program tables with more than 65 million beneficiary records reached through DBLinks.
    Access confirmed
  • Secretaría de Salud
    Health
    National Health Card and SIARHE vaccination data exposed through shared IMSS infrastructure.
    Collateral victim

Private Sector

9 companies
  • Quálitas
    Automobile insurance
    1.65 GB of tokenized payment data exfiltrated after CVE-2019-2729 exploitation, with persistent SSH access.
    Data exfiltratedReported
  • Auronix / Calixta
    Enterprise messaging
    190 QVD files with data on corporate customers, including TotalPlay. Supply chain risk for its client base.
    Data exfiltratedReported
  • Santander OneTrade
    Banking, online trading
    Management endpoints accessed and configuration obtained from DEV, PRE and PROD environments.
    Access confirmedReported
  • CAGSA
    Retail and distribution
    Workstations and servers across multiple branches running the kx framework, the most hosts of any victim.
    Access confirmed
  • Caja Gonzalo Vega (CGV)
    Financial services
    GlassFish server compromised through JMX MLet RCE, followed by a web shell and kx staging.
    Access confirmed
  • Seguritech
    Physical security, video surveillance
    IoT gateway credentials giving access to video platforms tied to a government surveillance center.
    Access confirmed
  • Cervantech
    Technology integration
    CRM accessed with an active session cookie. No data exfiltration documented.
    Access confirmed
  • Billpocket
    Fintech and payments
    Targeted through a pre-authentication IDOR. A 402 MB file was identified; full scope unconfirmed.
    Scope unconfirmed
  • ABG Camiones
    Transportation
    Company domains resolved at a rate consistent with kx beaconing. Compromise or active reconnaissance.
    Scope unconfirmed
The 14 organizations affected by the KmeX operation, grouped by sector and documented compromise status

For the purposes of this analysis, victims are classified according to the documented status of the compromise, including confirmed access with data exfiltration, confirmed access without identified exfiltrated data, and targets in the active reconnaissance phase at the time of detection.

Public Sector

Within the public sector, victims can be differentiated according to the government institution or body to which they belong, as the affected systems include social security, government, and even electoral institutions.

Healthcare and Social Security (IMSS)

IMSS is the victim with the greatest documented impact across the entire operation. The actor gained initial access by exploiting CVE-2021-35464, as mentioned in the Campaigns section, reaching the centralized authentication server and progressively expanding that access until multiple systems were compromised.

The bulk of the exfiltrated data was found in:

  • SIPARE: 260,608,734 records containing contribution and entitlement data, including NSS, RFC, names, and employment information
  • RENAPO (through cross-referencing with IMSS systems): 9,693,494 records containing CURP, NSS, and RFC data belonging to Mexican citizens
  • RFC/SAT: 11,813,818 tax records (743 MB)
  • National Health Card: PostgreSQL dump of the sis.cartilla_nacional_salud table, totaling 737 MB
  • SIARHE (vaccination): approximately 171 MB exfiltrated through 17 parallel streaming channels

RENAPO was both a data source accessed through IMSS systems and a source identified in the recovered Oracle connection strings. The exfiltrated records, which included cross-referenced CURP, NSS, and RFC data, were used by the actor as input for the mass enumeration of the National Health Card database.

In parallel, the SIARHE and National Health Card data link the Ministry of Health to the incident as a collateral victim of the access obtained through IMSS, given that both systems share database infrastructure with the social security entitlement systems.

Federal Government

The compromised Exadata environment mentioned earlier contained DBLinks to schemas belonging to the Welfare Program, with tables containing data on social program beneficiaries. The bienestar_1.sql and bienestar_2.sql files recovered from the OpenDir document access to these tables. The number of records in the referenced tables exceeds 65 million.

Electoral Institutions

The bucket_dump.sh script targeted the Firebase bucket ine-carto-next, which was publicly accessible at the time of extraction. However, it is not possible to determine whether this accessibility was intentional or the result of a misconfiguration. A total of 8,884 electoral mapping documents corresponding to the AMGE2023 redistricting process were documented as having been exfiltrated. Although access was technically public, the systematic extraction and storage of this data on the actor’s infrastructure indicate an interest in this data, regardless of its public nature.

Private Sector

The impact on the private sector follows a different pattern. The actor did not limit its activities to a single subsector, instead simultaneously targeting service providers, payment companies, security infrastructure, and distributors. This potentially points to an effort to build an access base combining identity data, financial information, and control over private critical infrastructure.

  • Enterprise Messaging and Communications: Auronix, a provider of enterprise messaging and omnichannel communications services with operations in Mexico and other Latin American markets, was compromised during the first campaign. The adversary accessed their business intelligence server and exfiltrated 190 QVD data files distributed across customer subdirectories, containing operational data from their CalixtaSend and CalixtaChat messaging platforms, including client identifiers, tenant configurations, and account data for corporate customers including other companies. As noted earlier, this access represents a potential supply chain attack vector against Auronix’s client ecosystem
  • Insurance: Quálitas, a leading company in the Mexican automobile insurance market, was compromised through the exploitation of CVE-2019-2729 against their Oracle WebLogic server. The actor pivoted from the exposed server to an additional node within the internal network and exfiltrated payment data totaling 1.65 GB. The SSH key qualitas_persist recovered from the actor’s OpenDir indicates that access remained active through installed persistence mechanisms
  • Financial Services: CGV (Caja Gonzalo Vega), a Mexican financial institution operating a branch network, was compromised through a JMX MLet RCE attack against their GlassFish application server, delivered via mlet.html and payload5.jar, which deployed the cgv.jsp web shell and initiated the kx staging chain
  • Retail and Distribution: CAGSA, a distribution chain with multiple branches across Mexico, was the victim with the highest number of hosts compromised through the kx framework, with more than 14 confirmed workstations and servers distributed across different branches. Reconnaissance conducted from the compromised hosts suggests that the initial compromise was an entry point toward higher-value targets within the organization’s network
  • Fintech and Payments: Billpocket, a payment processor operating in Mexico, was targeted through a pre-authentication IDOR exploit. The transaction records included payment data containing PAN information. The total volume of potentially accessed records has not been fully confirmed. A 402 MB file associated with this victim was identified
  • Banking: Santander OneTrade, the online trading platform of an international banking institution with operations in Mexico, was subjected to active reconnaissance. The actor accessed management endpoints and obtained configuration information from DEV, PRE, and PROD environments. The execution of at least one action against the system was documented. The full scope of access and the data potentially obtained cannot be fully determined
  • Technology and Integration: Cervantech, a Mexican technology integrator, was accessed using an active CRM session cookie. No data exfiltration was documented beyond the initial access. However, the nature of a technology integrator’s CRM implies potential exposure of its corporate customers’ data
  • Physical Security and Video Surveillance: Seguritech, a private security services provider with operations linked to public sector monitoring infrastructure, was targeted by the video exfiltration module of the kx framework. The actor obtained credentials for the organization’s IoT gateway, allowing access to the NxWitness and AXXON video surveillance platforms associated with a government video surveillance control center
  • Transportation: DNS queries and the network capture include domains belonging to Grupo ABG, a company in the transportation and truck distribution sector, resolved at a frequency consistent with the kx framework’s beaconing pattern. The organization may have compromised hosts that were never registered in the C2 log under their own identifiers, or it may have been a target undergoing active reconnaissance at the time of capture

The victim set is highly diverse, indicating that the adversary adopted a regional rather than a sector-specific focus, as discussed below.

Geographical Scope

The operation is geographically concentrated in Mexico. All confirmed targets operate within Mexican territory, and Mexico accounts for 1,603 of the 15,474 devices (about 10%) in the Belsen Group FortiGate dump, the largest share of any country in the dataset. Exploits against Mexican federal government systems and the deployment of the kx framework against Mexican corporate networks are consistently oriented toward the country’s digital ecosystem.

The only documented exception is the international banking institution, whose headquarters are located in Spain but whose compromised infrastructure belongs to its local operations. There is no evidence that the actor expanded its targets beyond the Mexican market during the analyzed period. However, further lateral movement using the information obtained from this target and the others remains a possibility.

Geographic scope of the KmeX operation: all confirmed victims are in Mexico, with Santander's parent group in Spain and Auronix's wider Latin American customer base as potential secondary exposure
Geographic scope of the KmeX operation: all confirmed victims are in Mexico, with Santander’s parent group in Spain and Auronix’s wider Latin American customer base as potential secondary exposure

This geographical focus, combined with the linguistic indicators described in the Actor Profile section, reinforces the hypothesis of an actor with in-depth knowledge of the Mexican technological and regulatory ecosystem. The selection of targets such as SIPARE, RENAPO, and the National Health Card requires prior knowledge of which systems exist, what data they contain, and how they are interconnected, going beyond what an external actor could obtain through passive reconnaissance.

Conclusion

Operation KmeX is one of the most extensive intrusion operations documented against Mexican infrastructure, in which at least fourteen organizations were compromised or reached, more than 280 million citizen records were exfiltrated, and an actor developed its own C2 framework and a data normalization platform designed to deliver the stolen data to an as-yet-unidentified external recipient.

The combination of mature techniques, exploitation of years-old CVEs in critical production environments, sustained internal pivoting, and silent persistence reveals patterns that point to an actor more capable than its public profile might suggest.

The impact extends beyond the organizations directly affected. Cross-referencing IMSS, RENAPO, and SAT records with financial data from the simultaneously compromised private sector creates a national identity repository with long-term exploitation potential for tax fraud, identity theft, and large-scale banking fraud.

The actor has remained operational for months, and the C2 infrastructure has proven resilient, making coordinated notification and mitigation efforts toward victims and potential future targets necessary to contain and prevent the damage.

KmeX MITRE ATT&CK TTPs

TacticTechniqueProcedure
TA0001 Initial AccessT1190 Exploit Public-Facing ApplicationExploitation of CVE-2021-35464 on imss.gob.mx to achieve remote code execution
TA0001 Initial AccessT1190 Exploit Public-Facing ApplicationExploitation of CVE-2019-2729 using exploit2729.py with a payload and callback to 162.35.188.56:4646
TA0002 ExecutionT1059.001 PowerShellExecution of dump31d.ps1, qvd_exfil1.ps1, qvd_recon.ps1, stage.ps1, kxstage.ps1, and other kx framework modules via PowerShell on compromised hosts
TA0002 ExecutionT1059.006 PythonExecution of kn_listener.py, qvd_upload.py, cartilla_pwn.py, cartilla_oracle.py, and other Python-based server-side components used by the threat actor
TA0003 PersistenceT1505.003 Web ShellDeployment of cgv.jsp on a GlassFish server as a post-exploitation web shell following JMX MLet RCE
TA0006 Credential AccessT1056.001 KeyloggingThe kxkey module of the kx framework captures keystrokes on compromised hosts and periodically transmits them to the C2 server (162.35.188.56:8880)
TA0006 Credential AccessT1555 Credentials from Password StoresThe kxh module of the kx framework harvests credentials stored on compromised hosts
TA0007 DiscoveryT1046 Network Service DiscoveryUse of the dnsbrute.py script for internal DNS brute-forcing within imss.gob.mx domains, and a reconnaissance command issued via C2 to identify Oracle WebLogic (:7001) and VMS software across internal network ranges
TA0009 CollectionT1119 Automated Collectiondump31d.ps1 performs automated data extraction through multiple parallel TCP connections to Oracle using SYSDBA privileges, while cartilla_pwn.py performs automated mass enumeration of National Health Card records with CAPTCHA bypass
TA0009 CollectionT1113 Screen CaptureThe kxpb module of the kx framework captures screenshots on compromised hosts
TA0009 CollectionT1115 Clipboard DataThe kxpb module of the kx framework captures clipboard data on compromised hosts
TA0009 CollectionT1125 Video CaptureThe kxsniff module of the kx framework acts as a network sniffer for lateral discovery, while the zspray.sh and kxconf.py scripts target CCTV cameras (Dahua, Hikvision) and Cassia IoT gateways
TA0010 ExfiltrationT1041 Exfiltration Over C2 ChannelExfiltration of Auronix QVD files using qvd_exfil1.ps1 via HTTPS PUT requests to 162.35.188.56:8443, along with other data exfiltration activities, including Oracle database dumps via TCP streaming to N001
TA0010 ExfiltrationT1048.002 Exfiltration Over Asymmetric Encrypted Non-C2 ProtocolUse of HTTPS (port 8445 using qvd_upload.py) with a self-signed certificate as an exfiltration channel for QVD files from Auronix
TA0011 Command and ControlT1071.001 Web ProtocolsThe kx framework uses HTTP/HTTPS for beaconing: POST /kxbt_<HOST>, GET /kxbt_cmd_<HOST>, POST /kxkey_<HOST>, etc., with a User-Agent impersonating PowerShell, communicating with 162.35.188.56:8880
TA0011 Command and ControlT1105 Ingress Tool TransferUse of mlet.html referencing payload5.jar via JMX MLet to remotely load a web shell (cgv.jsp) and stage.ps1 onto the compromised host
TA0011 Command and ControlT1090.001 Internal ProxyChisel reverse SOCKS5 tunnel on port 4690 from a compromised IMSS host to N001 (162.35.188.56)
TA0011 Command and ControlT1090.003 Multi-hop ProxyUse of SOCKS5 node 200.9.184.249:3730 as an egress node to conceal the actual origin of exfiltration connections, with 404 packets observed in cap_agent.pcap

KmeX Arsenal and IOCs

The remaining indicators are available on the SOCRadar platform.

IP Addresses

IndicatorRoleASN / Organization
162.35.188.56N001: Primary C2 server, exfiltration receiver, and open directoryAS26666, InterServer, New Jersey, US
162.35.188.166N002: Azazel panel and TLS relay for N001AS26666, InterServer, New Jersey, US (same /24 subnet as N001)
131.196.248.183N003: Threat actor’s operational workstation and testing pivotAS265524, Coeficiente Comunicaciones, Zapopan/Tlaquepaque, MX
149.88.22.167N004: Threat actor’s Kali Linux workstationAS212238, Datacamp
149.88.22.136N004: Threat actor’s Kali Linux workstation (alternate IP)AS212238, Datacamp
85.203.21.5N005: Toolset download nodeAS206092, F.n.s Holdings Limited
85.203.21.53N005: Toolset download node (alternate IP)AS206092, F.n.s Holdings Limited
205.209.102.101Secondary Azazel instance and Lilith panelAS19318, InterServer
178.128.212.209Out-of-band (OOB) testing infrastructureDigitalOcean, Singapore

Scripts

ScriptMD5Description
_mysql_greet.pyf403daf32817f8627e991edc2737f34dMySQL connection testing and basic enumeration
_mysql_recon.py3a67ee4b6a063e334d2121bfb118b0e2Comprehensive MySQL reconnaissance, including databases, tables, and configuration
cartilla_confirm.py3bb8fa3fb099d59f84ebb567cc2a73e3Verification of previously enumerated National Health Card records
cartilla_full.py1fbdfa846b926900f04ab138235e200cFull enumeration of National Health Card records across the entire RENAPO dataset
cartilla_oracle.py762b78675e6d4e57c49b63c5703e88efDirect extraction of National Health Card records from Oracle
cartilla_pwn.py9a673d9ea0edcdf2b4060bc862371ee1OCR-based CAPTCHA bypass for mass enumeration of National Health Card records (v1)
cartilla_pwn3.py58b0b0d4ef3b2ce6e0b9bbd7490880e1National Health Card CAPTCHA bypass with improved reliability and retry mechanisms (v3)
cartilla_tight.pyb5a655d1a1e67494ae4772c788dee52cNational Health Card record enumeration optimized for low latency
cartilla_vps.pyc7a13606349030759ee82b0adf9d6d58National Health Card record enumeration orchestrated from the threat actor’s VPS (v1)
cartilla_vps2.py08f50e4d981fe1083fdb46a4b7c5c142National Health Card record enumeration from a VPS (v2)
dnsbrute.py8b60a2ba5b6a3a4a4d7b45a998a8d8fbDNS brute-force enumeration of imss.gob.mx subdomains
exfil_listener.pyca32f0fbdc3c3c33658446cb8bc71d40Generic TCP exfiltration listener hosted on N001
exploit2729.pyf075fdc37e9403b2fba5e8ac985c6e2eExploit for CVE-2019-2729 (Oracle WebLogic XMLDecoder RCE). Uses a ysoserial Jdk7u21 payload with a reverse shell callback to 162.35.188.56:4646
kn_listener.py09aac3c1a3c252a9f7d6b3053d4ff640kx C2 server listening on 162.35.188.56:8880 and receiving JSON beacons containing host, ts, mod, and data fields
kxbyp.py960bfc5db27f2132f78504d8250a2023SQL injection and WAF bypass testing against the Seguritech platform
kxbyhost.py8951a725cfacaf9a71d6ae9192eb5899Queries the status of kx beacons by hostname on the C2 server
kxclip.py6074daf52c6ee51bf537e9f07c5c2f19kx module for clipboard data collection and screen capture
kxconf.pyc69fc4a550f389042a8988c655bb3f75Exploitation of Cassia IoT Gateway targeting Seguritech infrastructure
qvd_upload.pycf0c340a9a91b9b5b132ddf91a36f848HTTPS receiver hosted on N001 (port 8445). Stores files in /root/exfil/qvd/ and uses /root/exfil.crt for TLS
_esctest.ps16ea5bdd301dcc5348019f7e8c1804c46Privilege escalation testing on a compromised Windows host
_finalcheck.ps14a6c59e7ab2c326df109f5d8bd547d15Final verification of the kx implant status before large-scale deployment
_finalclean.ps12e3ef07de4fdb5d724b2d58a58378748Removal of kx artifacts following operations
_iusr_cleanup.ps1910be9e298c7b1fb63d311cc7563f470Removal of artifacts under the IIS IUSR account
_iusr_recon.ps19d3008b9cc104a60c961451f0f2ac811Reconnaissance from the IIS IUSR security context
_iusr_run_fv.ps17176b207baece0d6b1e4cf3944ffec66Execution of kx modules within the IIS web server context
_manual_start.ps1e0a1170bafe3348bcd9c7e72b849a5feManual startup of the kx framework as a fallback persistence mechanism
_qvw_extract.ps16c41de18cdade3e3ef673f7089eb03bdExtraction of QlikView project files (.qvw) from the Auronix server
_qvw_recon1.ps1648658af4e85ff578d924c46542b10abInitial QlikView reconnaissance and mapping of project files (.qvw)
dump31d.ps18af376667eb1d40e4ae60c1b26497825Bulk Oracle data extraction via parallel TCP streaming using SYSDBA privileges (SPSBDPR1). Source of the SIPARE/SPES data dump
qvd_exfil1.ps10770fb09877f8a6a873d32d411ca1b8fExfiltration of 16 selected QVD files via HTTPS PUT requests to 162.35.188.56:8443
qvd_recon.ps1e0d5d82911c6389bd2de768e93cde0d0QlikView reconnaissance within Auronix. Maps D:\BI_QlikView\, counts QVD files, and exfiltrates the results to N001 on port 8443
bienestar_desc_run.sh500f89b475a1c3bdc7c128d3311e5dedWrapper script for executing bienestar_desc.sql
bucket_dump.sh2502b28ee7cda7394c8ab61a0d90622cData extraction from the Firebase bucket ine-carto-next, containing 8,884 AMGE2023 electoral mapping documents
cartilla_evidence.shfb9fd72b50d34855fd26ef7a39d3a375Collection and aggregation of evidence from the enumeration process
cartilla_loop.sh12e04769f6d7cacf1d1675e52dbecaf4Continuous National Health Card record enumeration loop (v1)
exfil_driver.sh7a91005e46091239eb1392590e037a66Data exfiltration orchestration script (v1)
kx.shc9f16fc94e8c8bb3a10f3e5d9ea60f0fLauncher and wrapper script for the kx framework (v1)

SOCRadar Threat Research Unit (STRU)

Intelligence in your inbox every Thursday.

Join 30,000+ security professionals reading SOCRadar research.

Subscribe