Operation CameraSwarm: Inside the Toolkit Behind 14,530 Compromised Dahua Cameras
A single operator compromised 14,530+ Dahua cameras across Ukraine and Russia in 35 days, chaining credential brute-force, a CVE-2021-33044/33045 authentication bypass, and P2P relay abuse to plant a persistent backdoor and harvest transferable admin access.
Summary
Between 17 June and 22 July 2026, a single operator compromised more than 14,530 Dahua IP cameras and related devices, primarily concentrated in Ukraine and Russia. The campaign ran three exploitation paths at once: a credential brute-force engine against Dahua's Easy4IP management port, an authentication-bypass chain exploiting two 2021 vulnerabilities to plant a persistent backdoor account, and abuse of Dahua's cloud P2P relay to reach cameras behind NAT using nothing but a serial number.
Hunt.io recovered the operator's entire working environment, 2,616 files spanning 407 MB, after the operator exposed it through an open HTTP directory on their own staging server. The recovered toolkit shows a persistent backdoor left on 1,923 cameras, an offline recovery-code generator capable of granting transferable cloud-level administrative access by serial number alone, and a second, unrelated Windows credential stealer staged on the same host.
Background
The campaign was discovered on 23 July 2026, when Hunt.io's AttackCapture crawler flagged activity on TCP/37777, Dahua's Easy4IP binary management protocol, and pulled down the operator's own open directory. File timestamps and shell history reconstruct a five-week operation: reconnaissance and brute-forcing began 18 June, relay testing started a week later, the CVE-based bypass chain deployed on 12 July, and the largest scanning wave ran on 22 July, a day before the exposure was captured.
Scale is the defining feature of this operation: the brute-force engine alone reached 12,324 unique IP addresses, while the authentication-bypass chain planted a durable backdoor on nearly 1,900 devices. A separate serial-based relay path reached 283 additional cameras with no routable address and, per the operator's own logging, no credentials in the large majority of cases. The toolkit itself is not a single author's work; its components trace to at least six different upstream developers, assembled and progressively rewritten across three language layers, Spanish, Russian, and English, over the course of the campaign.
Vulnerability Details
| CVE ID | CVSS Score | EPSS Score | Affected Products |
|---|---|---|---|
| CVE-2021-33044 | 9.8 (Critical) | 99.87% | Dahua IP Camera devices IPC-HX1XXX, IPC-HX2XXX, IPC-HX3XXX, IPC-HX5(4)(3)XXX, IPC-HX5XXX, IPC-HUM7XXX, and IPC-HX8XXX; Video Intercom devices VTO75X95X, VTO65XXX, and VTH542XH; PTZ Dome Camera SD1A1, SD22, SD49, SD50, SD52C, and SD6AL; Thermal Camera devices TPC-BF1241, TPC-BF2221, TPC-SD2221, TPC-BF5XXX, TPC-SD8X21, and TPC-PT8X21B (firmware build time before June 2021) |
| CVE-2021-33045 | 9.8 (Critical) | 99.56% | Dahua IP Camera devices IPC-HX1XXX, HX2XXX, HX3XXX, HX5(4)(3)XXX, HX5XXX, HUM7XXX, and HX8XXX (build time before May 2020); Video Intercom devices VTO75X95X, VTO65XXX, and VTH542XH; NVR devices NVR1XXX, NVR2XXX, NVR5XXX, and NVR6XX; XVR devices XVR4xxx, XVR5xxx, and XVR7xxx (build time before December 2019) |
Attack Methodology
- 1. Internet-wide reconnaissance. masscan swept TCP/37777 in two phases, first against Russian address space at ten million packets per second, then across the full IPv4 range at a lower rate, filtered by a companion module that skipped CIDR blocks outside local business hours.
- 2. Serial-number harvesting. A separate module queried Shodan with Dahua-specific banner strings and enumerated DDNS subdomains under dahuaddns.com and quickddns.com, building a target list of devices reachable by serial number rather than address.
- 3. Credential brute-force. An asyncio-based engine, scaling from 300 to 4,000 concurrent workers, attempted default and weak credentials against port 37777 using a hand-built implementation of Dahua's Easy4IP login protocol, reaching 12,324 unique addresses.
- 4. Authentication-bypass exploitation. Where brute-forcing failed, the p2pwn tool chained CVE-2021-33044 and CVE-2021-33045 to return a full administrator session in under a second against unpatched firmware, requiring no valid password.
- 5. Persistent backdoor installation. After either bypass, p2pwn installed an account named p2pwn / p2password over RPC, stored independently of the admin password so it survives a password change and, on most firmware, a factory reset.
- 6. P2P relay exploitation. A parallel toolkit abused Dahua's cloud relay at easy4ipcloud.com, using SDK credentials embedded in every legitimate Dahua client to reach cameras behind NAT by serial number alone, with roughly nine in ten live serials returning an open channel that required no authentication at all.
- 7. Offline recovery-code generation. A separate module replicated Dahua's account-recovery flow entirely offline, deriving a transferable administrative recovery code for every live serial it verified, independent of the device's actual credentials.
- 8. Exfiltration and enterprise packaging. Every successful credential hit and camera snapshot was posted immediately to a Telegram bot channel, while a separate export routine batched results into SMART PSS-compatible XML for bulk import into Dahua's own enterprise camera-management platform.
Indicators of Compromise (IOCs)
- ●
154.86[.]119.60 - ●
185.132[.]53.56 - ●
easy4ipcloud[.]com:8800 - ●
vk[.]com/wall-163997495 - ●
dahuaddns[.]com - ●
quickddns[.]com - ●
rbc[.]ru
MITRE ATT&CK Mapping
| Technique ID | Technique Name | Tactic |
|---|---|---|
| T1595.001 | Active Scanning: IP Block Scanning | Reconnaissance |
| T1596.005 | Search Open Technical Databases: Scan Databases | Reconnaissance |
| T1190 | Exploit Public-Facing Application | Initial Access |
| T1110.003 | Brute Force: Password Spraying | Credential Access |
| T1136.001 | Create Account: Local Account | Persistence |
| T1113 | Screen Capture | Collection |
| T1567.004 | Exfiltration Over Web Service: Exfiltration Over Webhook | Exfiltration |
| T1027.002 | Obfuscated Files or Information: Software Packing | Defense Evasion |
| T1562.001 | Impair Defenses: Disable or Modify Tools | Defense Evasion |
| T1210 | Exploitation of Remote Services | Lateral Movement |
Visual Attack Flow
Mitigation
- 1. Audit and remove the p2pwn backdoor account. Any camera that was reachable on port 37777
between June and July 2026 should be checked for an account named
p2pwn; removing it does not require a firmware update but must be done manually, since a factory reset alone will not clear it on most firmware. - 2. Disable P2P connectivity unless actively required. Because the relay routes across a pool of backend addresses rather than a single fixed server, address-based blocking does not reliably stop this path; disable P2P under the device's network settings where it is not in use.
- 3. Apply Dahua's SA-2021-0130 patch. CVE-2021-33044 and CVE-2021-33045 have been fixed since October 2021; unpatched firmware can be fully compromised in under a second with no credentials, so port 37777 should also never be exposed directly to the internet.
- 4. Update firmware to invalidate outstanding recovery codes. Dahua has confirmed that current firmware blocks generation of new offline recovery codes and periodically invalidates previously issued ones; until firmware is updated, treat any prior recovery code as a live risk independent of the backdoor account.
- 5. Rotate all device credentials after remediation. Because the relay and bypass paths both expose stored credentials, including cached NVR passwords retrieved through the ONVIF lateral-movement step, assume any credential on an affected device was captured and rotate accordingly.
- 6. Deploy detection for bypass-specific traffic patterns. Watch for login requests carrying a NetKeyboard client type or a loopback source address claim, and on Windows estates, monitor for bulk Defender exclusion paths, CIM-based policy queries, and unscheduled Group Policy refreshes.
Instantly Fix Risks with Saner Patch Management
Saner patch management is a continuous, automated, and integrated software that instantly fixes risks exploited in the wild. The software supports major operating systems like Windows, Linux, and macOS, as well as 550+ third-party applications.
It also allows you to set up a safe testing area to test patches before deploying them in a primary production environment. Saner patch management additionally supports a patch rollback feature in case of patch failure or a system malfunction.
Experience the fastest and most accurate patching software here.




