Tia N.List

CTI · reviewed · 2026-11-07

cwpdoor backdoor hidden in Control Web Panel server (QiAnXin XLab)

Full story & timeline

Actors

—

Malware / tools

cwpdoor

Campaigns

—

CVEs

—

Victim sectors

technologyhosting

Geography

—

MITRE ATT&CK

Indicators

Observables tied to this case, from the curated feed. raw sidecar

Detections

Detection content derived from this case analysis. Status: experimental — not validated against live telemetry.

Sigma raw

title: cwpdoor Installer Fetching Trojanized cwpsrv Binary from 136.0.141.71
id: 6f2c1a94-3d47-4c8e-9b1a-2d5e8f0c7a31
status: experimental
description: >
    Detects the delivery half of the cwpdoor passive backdoor: the installer
    cwpsrv_update.sh (captured by QiAnXin XLab on 2026-06-29) downloads the
    trojanized cwpsrv web server from 136.0.141.71 and overwrites
    /usr/local/cwpsrv/bin/cwpsrv. The backdoor triggers only on requests
    carrying X-Ngx-Integrity-Time/Data/Sig headers validated with an embedded
    RSA key, so the replacement binary is invisible to version checks; this
    rule catches the swap while it happens. No CVE or fixed version exists.
references:
    - https://blog.xlab.qianxin.com/cwpdoor-the-invisible-backdoor-living-inside-control-web-panel/
    - https://www.bleepingcomputer.com/news/security/hackers-backdoor-linux-servers-using-trojanized-cwp-web-server/
    - https://thehackernews.com/2026/11/hackers-hide-linux-backdoor-in-control.html
author: Tia N. List
date: 2026/11/07
tags:
    - attack.t1105
    - attack.t1554
    - attack.t1505
logsource:
    category: process_creation
    product: linux
detection:
    selection_installer:
        CommandLine|contains:
            - 'cwpsrv_update.sh'
    selection_source_ip:
        CommandLine|contains:
            - '136.0.141.71'
    selection_target_binary:
        CommandLine|contains:
            - '/usr/local/cwpsrv/bin/cwpsrv'
    condition: selection_source_ip or (selection_installer and selection_target_binary)
falsepositives:
    - Legitimate Control Web Panel upgrades that fetch cwpsrv from the vendor's own hosts and run a similarly named updater
    - Administrative scripts that deliberately write the absolute path /usr/local/cwpsrv/bin/cwpsrv
level: high

Splunk SPL raw

# cwpdoor-backdoor-hidden-in-control-web-panel-server-qianxin-xlab — Splunk SPL variant (derived from cwpdoor-backdoor-hidden-in-control-web-panel-server-qianxin-xlab.sigma via sigma convert)
# source-sha256: 64e58ba32eefd431cfc23853a218bc96a269ece430c43b0f0b1c2ccea2a0b859 v1
CommandLine="*136.0.141.71*" OR (CommandLine="*cwpsrv_update.sh*" CommandLine="*/usr/local/cwpsrv/bin/cwpsrv*")

KQL (Sentinel / Defender) raw

# cwpdoor-backdoor-hidden-in-control-web-panel-server-qianxin-xlab — KQL variant (derived from cwpdoor-backdoor-hidden-in-control-web-panel-server-qianxin-xlab.sigma via sigma convert)
# source-sha256: 64e58ba32eefd431cfc23853a218bc96a269ece430c43b0f0b1c2ccea2a0b859 v1
CommandLine contains "136.0.141.71" or (CommandLine contains "cwpsrv_update.sh" and CommandLine contains "/usr/local/cwpsrv/bin/cwpsrv")

YARA-X raw

rule CWPdoor_Control_Web_Panel_Backdoored_cwpsrv {
    meta:
        author = "Tia N. List"
        date = "2026-11-07"
        status = "experimental"
        description = "Hunts the cwpdoor passive backdoor built into a recompiled Control Web Panel web server (cwpsrv). The implant answers only requests that carry the X-Ngx-Integrity-Time, X-Ngx-Integrity-Data and X-Ngx-Integrity-Sig headers validated against an embedded RSA key inside a 300-second window, and suppresses those requests from the access log. Derived from the QiAnXin XLab analysis of samples targeting cwpsrv 1.15.10 and 1.24.0 - NOT validated against a live sample."
        reference = "https://blog.xlab.qianxin.com/cwpdoor-the-invisible-backdoor-living-inside-control-web-panel/"
        falsepositives = "Legitimate builds of cwpsrv that ship an integrity helper with the same header names are possible; a hit means the on-disk binary deserves a hash comparison against the vendor build, not that the host is certainly compromised"
    strings:
        $hdr_time = "X-Ngx-Integrity-Time" ascii
        $hdr_data = "X-Ngx-Integrity-Data" ascii
        $hdr_sig = "X-Ngx-Integrity-Sig" ascii
        $path_bin = "/usr/local/cwpsrv/bin/cwpsrv" ascii
        $installer = "cwpsrv_update.sh" ascii
        $backup = "cwpsrv.prev-" ascii
    condition:
        all of ($hdr_*) and any of ($path_bin, $installer, $backup)
}

References

Source on GitHub