ted backdoor
- Type
- Backdoor
- Capabilities
- Session hijackingExfiltrationPersistencePost exploitationDefense evasion
- Delivery
- Watering hole
- Platforms
- Linux
Ted backdoor is a Linux-based server implant embedded as a custom plugin in a trojanized HAProxy 2.8.12 build. It integrates with HAProxy’s native filtering, HTTP parsing, memory-management, scheduling, and process infrastructure, allowing the load balancer to continue normal operations while covertly inspecting decrypted HTTP traffic. The implant provides an HTTP-based command channel supporting remote command execution, beaconing, configuration updates, and file transfers. It can selectively collect request metadata and web-session cookies, and can modify responses for operator-selected visitors by injecting scripts, replacing content, or redirecting traffic. Selection criteria include network-source and browser characteristics as well as hidden request values.
Ted backdoor suppresses forensic evidence by preventing command traffic from reaching backend applications and manipulating HAProxy telemetry and response handling to conceal anomalous traffic and altered content. It has been observed as part of a long-term Linux espionage toolkit also involving CurlRAT, trojanized Linux services, and SSH credential-capture tooling. Activity targeted South Korean automotive and media-sector organizations. The operation has been assessed with medium confidence as linked to DPRK-aligned threat activity; available evidence does not conclusively attribute the implant to a specific DPRK threat cluster.
Techniques & procedures
28 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
[The toolkit has] the ability to steal cookie sessions, credentials, redirect selected users, conduct drive-by download attacks, and hide evidence of the tampered page to a specific range of IPs to evade detection.
The partially reconstructed chain assumes exploitation of a vulnerability in the exposed Groupware login portal.
Execution
7 techniques
Execution
“...deploy malware capable of command execution...”
CurlRAT executes command lists via popen and supports reverse and interactive PTY shells; ted executes commands via popen.
The implants use pthread_create/pthread_detach and HAProxy internal allocation and task-scheduling APIs.
“The campaign uses social engineering and malicious files to establish access and deploy malware...”
The malware then saves the command in a named pipe and removes traces of the request from HAProxy’s internal counters.
The implant is loaded as a custom HAProxy shared-library filter at process start and persists across HAProxy restarts.
“The ted backdoor ... [is] directly hooked into the balancer’s built-in HTTP parser. It can intercept and inject HTTP traffic” and “the balancer starts redirecting or serving malicious content to selected clients.”
Persistence
1 technique
Persistence
Ted backdoor ... is a modified build of HAProxy 2.8.12 ... compiled into the legitimate load balancer.
Stealth
5 techniques
Stealth
The “ted backdoor” is compiled directly into HAProxy’s own source code as a custom plugin, using the software’s native filter API, internal memory management, and event scheduler to intercept HTTP traffic while completely legitimate load balancing keeps running normally.
The targeting pattern, simple XOR-based encryption, a custom substitution cipher, and command-server infrastructure already linked to APT37 by other threat intelligence feeds all point toward North Korean state involvement.
Their command-and-control domains imitate image delivery services, including one that resembles a popular Korean web platform's static-content naming style.
The stager deploys only when HAProxy or cron is present; CurlRAT validates a victim token; ted uses scanner/IP and operator-key filtering.
The implant is loaded as a custom HAProxy shared-library filter at process start and persists across HAProxy restarts.
Defense Impairment
2 techniques
Defense Impairment
“Its code also reduces HAProxy connection counters to make activity harder to spot.”
The malware then saves the command in a named pipe and removes traces of the request from HAProxy’s internal counters. It also clears the forwarding buffers, so the request never reaches the backend server.
Credential Access
3 techniques
Credential Access
The ted backdoor is compiled into HAProxy and uses its built-in features to inspect decrypted web requests while normal traffic continues to flow.
Beyond remote command execution, the backdoor can quietly inject malicious scripts or entirely swap out page content for specific victims matched by IP address, browser fingerprint, or even a hidden authentication credential smuggled inside the Accept-Language header.
ted backdoor and curlRAT were designed to persist during long-term espionage operations with the ability to steal cookie sessions, credentials, redirect selected users, conduct drive-by download attacks.
Discovery
2 techniques
Discovery
The ted backdoor is compiled into HAProxy and uses its built-in features to inspect decrypted web requests while normal traffic continues to flow.
“...deploy malware capable of command execution, system reconnaissance, and data theft.”
Collection
4 techniques
Collection
“...deploy malware capable of command execution, system reconnaissance, and data theft.”
Beyond remote command execution, the backdoor can quietly inject malicious scripts or entirely swap out page content for specific victims matched by IP address, browser fingerprint, or even a hidden authentication credential smuggled inside the Accept-Language header.
The passive capture function records matching HTTP requests, including source IP, Host, Referer, User-Agent, and optional operator-controlled fields.
ted replaces or appends decrypted payload scripts to selected HTTP responses through HAProxy body-filter callbacks.
Command and Control
3 techniques
Command and Control
The attackers send a request for a fake image at /favorite_list_2x_m500_ico.jpg. This switches the HAProxy filter into command-and-control mode.
CurlRAT Base64-encodes feedback-XOR-encrypted C2 payloads; ted uses rolling XOR for pipe-protocol data.
An interactive shell is tunneled through the HAProxy HTTP pipeline using named FIFOs, with responses sent over the raw socket.
Exfiltration
1 technique
Exfiltration
“The backdoor establishes C&C communication for data exfiltration, script injection, and command execution.”
Impact
1 technique
Impact
“[The implant can] inject a malicious script into pages served to chosen visitors.”
Observables
25 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.