Ngioweb is a proxy malware family that converts compromised systems into remotely controlled proxy nodes. First observed in 2017, it initially targeted Windows and was distributed through the Ramnit botnet. Linux variants emerged in 2019, followed by extensive deployment against routers, network-attached storage systems, and other internet-connected devices across multiple processor architectures. Its operators monetize compromised devices as residential proxy endpoints, including through the Nsocks service. Ngioweb operations are associated with the financially motivated threat actor Water Barghest.
Ngioweb supports back-connect and relay proxy modes, enabling traffic forwarding and proxy chaining to conceal the origin of connections and services. Windows variants support IPv4, IPv6, TCP, and UDP. The malware uses multilayer command-and-control infrastructure and encrypted communications. Linux variants employ a domain generation algorithm, and later versions validate DNS TXT records to authenticate command-and-control infrastructure and hinder sinkholing. Infected devices register with command-and-control servers before receiving proxy assignments.
Windows variants use process hollowing, establish persistence through startup mechanisms and scheduled tasks, and employ obfuscation and sandbox-detection logic. Observed Linux infections on IoT devices and Ubiquiti EdgeRouters execute in memory without persistent malware files and can be removed by rebooting. Water Barghest deploys these variants after exploiting internet-facing devices, using scripts that test payloads compiled for different Linux architectures. Its automated workflow can convert a newly compromised device into a commercially available proxy endpoint within minutes. Targets include consumer and enterprise networking equipment and embedded systems; exploitation of Linear eMerge access-control systems has included CVE-2019-7256. Ngioweb infections have coexisted with unrelated compromises on routers also abused by espionage actors, without establishing that those actors operate Ngioweb.
8 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
This threat actor runs the so-called Ngioweb malware in memory, with no malicious files on disk.
Seven years after its first appearance, the proxy server botnet Ngioweb continues its impactful presence on the internet... One of the samples obtained during 2024 ... allowed LevelBlue Labs to determine that the Ngioweb trojan ... works very similarly to how Ngioweb worked in 2019.
34 distinct techniques documented for this family, organized by ATT&CK tactic.
APT actors and financially motivated actors will continue to have an interest in building their own IoT botnets for anonymization purposes and espionage. They also will continue to use third-party botnets or commercially available residential proxy services.
T1584.005 — Compromise Infrastructure: Botnet (Resource Development)
T1588.001 — Obtain Capabilities: Malware (Resource Development)
TA0001: Initial Access T1189: Drive-by Compromise T1190: Exploit Public-Facing Application
Using internet scan data, the automated scripts of bad actors can quickly try known vulnerabilities, and possibly even zero-days, against the exposed IoT devices. In the case of Water Barghest, we have seen that the time between exploiting an IoT device and putting them for sale on a residential proxy marketplace can be as little as 10 minutes.
We have seen Ngioweb samples packed together with Ramnit in one dropper binary that were most likely distributed in spam campaigns.
The malware creates two scheduled tasks: To run the first copy ... at logon To run exe every two minutes.
The malware creates two scheduled tasks: To run the first copy ... at logon To run exe every two minutes.
Wenn ein Exploit erfolgreich ist, laden die kompromittierten IoT-Geräte ein Skript herunter, das Ngioweb-Malware-Samples durchgeht, die für verschiedene Linux-Architekturen kompiliert wurden.
The malware creates two scheduled tasks: To run the first copy ... at logon To run exe every two minutes.
The malware creates two scheduled tasks: To run the first copy ... at logon To run exe every two minutes.
TA0003: Persistence T1543: Create or Modify System Process T1543.001: Launch Agent
TA0003: Persistence T1543: Create or Modify System Process T1543.001: Launch Agent
The Ngioweb proxy uses three methods to keep persistence in the victim’s operating system: “Startup” folder of the current user “Run” registry key of the current user Scheduled task
The malware creates two scheduled tasks: To run the first copy ... at logon To run exe every two minutes.
The malware creates two scheduled tasks: To run the first copy ... at logon To run exe every two minutes.
First, the malware injects its code into the newly created process “msiexec.exe” using a process hollowing technique.
First, the malware injects its code into the newly created process “msiexec.exe” using a process hollowing technique.
TA0003: Persistence T1543: Create or Modify System Process T1543.001: Launch Agent
TA0003: Persistence T1543: Create or Modify System Process T1543.001: Launch Agent
The Ngioweb proxy uses three methods to keep persistence in the victim’s operating system: “Startup” folder of the current user “Run” registry key of the current user Scheduled task
All strings in the malware sample are obfuscated using a “Stack strings obfuscation” technique... Any time the malware needs to call an API function, it first resolves the address of a target function using a pair of hashes.
The second argument of “getexec” command is used to specify the file name for the downloaded executable... “msiexic.exe”
First, the malware injects its code into the newly created process “msiexec.exe” using a process hollowing technique.
First, the malware injects its code into the newly created process “msiexec.exe” using a process hollowing technique.
For the stored file it sets new timestamps to the same value as ntdll.dll has.
TA0005: Defense Evasion T1140: Deobfuscate/Decode Files or Information
The malware uses a lot of evasion techniques that are intended for detecting sandboxed environment and researcher’s software... if a sandbox or analyst’s environment detection has been triggered, the malware extracts a fake C&C server configuration.
This botnet is more discreet, with better operational security, with the associated malware running in memory only as far as we could tell, with no malicious files left on-disk.
TA0005: Defense Evasion T1222: File and Directory Permissions Modification T1222.002: Linux and Mac File and Directory Permissions Modification
TA0005: Defense Evasion T1222: File and Directory Permissions Modification T1222.002: Linux and Mac File and Directory Permissions Modification
TA0005: Defense Evasion T1562: Impair Defenses T1562.001: Disable or Modify Tools
it reports the successful infection and the characteristics of the machine... id=a39eb3ed78b7401f ... &v=x86_64 (architecture) &sv=271a (the malware version number)
The malware uses a lot of evasion techniques that are intended for detecting sandboxed environment and researcher’s software... if a sandbox or analyst’s environment detection has been triggered, the malware extracts a fake C&C server configuration.
The identified scanning activity from these two IPs attempts to exploit CVE-2019-7256 in ports 3306, 5172, 5984, 9306 and 50000. This exploit allows OS command injection of any content in between the grave accents (%60).
The malware uses the HTTP protocol to connect to one of the STAGE-0 C&C servers. | Ngioweb uses two-stage C&C infrastructure. STAGE-0 C&C server informs the malware about the STAGE-1 C&C server while the unencrypted HTTP connection is used for this purpose. The STAGE-1 C&C server is used for controlling malware via an encrypted channel.
Die Malware war bereits darauf ausgelegt, einen infizierten Computer in einen bösartigen Proxy Server zu verwandeln ... die entsprechende IP-Adresse innerhalb weniger Minuten nach der Erstinfektion auf der Website des Marktplatzes angeboten wurde.
T1090.002 — Proxy: External Proxy (Command and Control)
T1090.003 — Proxy: Multi-hop Proxy (Command and Control)
Wenn ein Exploit erfolgreich ist, laden die kompromittierten IoT-Geräte ein Skript herunter ... Sie laden auch Ngioweb-Malware auf frisch kompromittierte IoT-Geräte hoch.
This communication remains unchanged and reports the data encoded with base64 as the value of parameter h.
For DGA-generated domains, please refer to this GitHub repository.
README.md ... Domain Generation Algorithms (DGAs) of Malware reimplemented in Python.
TA0040: Impact T1496: Resource Hijacking
36 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.