Introduction

In a massive 35-day campaign dubbed "CameraSwarm," hackers compromised over 14,500 Dahua IP cameras across multiple countries, primarily in Ukraine and Russia. The attackers used a combination of brute-force attacks, known vulnerabilities, and a sophisticated serial number recovery code technique to gain access.

Security researchers at Hunt.io discovered the campaign after finding an unprotected HTTP server directory containing 407 MB of data — including source code, logs, credentials, and captured camera images.

Over 14,500 Dahua IP cameras were compromised in a 35-day campaign using brute-force attacks, known vulnerabilities, and serial number exploitation.

The CameraSwarm Campaign: What Happened

The operation ran from June 17 to July 22, 2026 — at least 35 days of continuous attacks. The attackers used three parallel methods to compromise devices:

Hunt.io recovered a massive amount of evidence from the unprotected server:

The attackers left an HTTP server directory unprotected, allowing researchers to map the entire campaign.

Three Attack Methods Used in Parallel

1. Brute-Force Attack (12,324 Devices)

The attackers scanned TCP port 37777 and compromised 12,324 unique IP addresses using brute-force login attempts. They captured camera snapshots, sent results to Telegram, and exported them for Dahua's SMART PSS platform.

2. Exploiting Known Vulnerabilities (1,923 Devices)

Using a tool called p2pwn, the attackers exploited CVE-2021-33044 and CVE-2021-33045 — two known vulnerabilities in Dahua cameras. This compromised 1,923 cameras and installed a persistent backdoor account.

3. Cloud-Relay Attack (283 Devices)

The most sophisticated method involved a cloud-relay attack that compromised 283 cameras behind NAT. The attackers used only the camera's serial number and embedded SDK credentials to gain access.

The p2pwn Backdoor Account

The most concerning aspect of this campaign is the persistent backdoor account installed by the attackers:

The p2pwn backdoor account survives password changes and, on most firmware versions, factory resets. Simply changing the password is not enough.

The Cloud-Relay Attack

The cloud-relay attack method is particularly sophisticated:

Even after removing the backdoor account, the recovery codes generated by the toolkit remain usable until Dahua changes the recovery code derivation process on the server side.

How to Protect Your Dahua Cameras

If you own Dahua cameras, follow these steps immediately:

Important note: Removing the backdoor account does not invalidate recovery codes generated by the toolkit. The codes remain usable until Dahua changes the recovery code derivation system server-side.

Final Thoughts

The CameraSwarm campaign demonstrates that IoT devices remain a major security risk. Attackers are actively scanning for vulnerable cameras, and the combination of brute-force attacks, known vulnerabilities, and serial number exploitation makes these devices easy targets.

Key takeaways:

If you need help securing your IoT devices or want to learn more about protecting your business from these threats, contact SystemLogicIT for a free security assessment.

SL
SystemLogicIT Team
Cybersecurity & IoT Security Experts
Helping businesses secure their IoT devices and network infrastructure from emerging threats.