Introduction
In a large-scale campaign dubbed CameraSwarm, hackers compromised more than 14,500 Dahua IP cameras over a 35-day period, primarily in Ukraine and Russia. The operation began on June 17 and concluded on July 22. io, a threat intelligence company, discovered the campaign after finding an unprotected directory on an HTTP server. The researchers mapped an impressive operation by recovering 407 MB of data comprising 2,616 files across 234 directories.
Attack Methods
The CameraSwarm campaign utilized three attack methods in parallel: brute-forcing, exploiting vulnerabilities, and using offline recovery codes from serial numbers. The researchers found that the 35-day operation compromised 14,530 Dahua IP cameras using these methods.
Brute-Forcing
The brute-forcing system scanned TCP port 37777 and compromised devices at 12,324 unique IP addresses. It captured usable camera snapshots, sent results to Telegram, and exported them for Dahua’s SMART PSS platform. The brute-forcing method was effective in reaching 12,324 unique IP addresses, indicating a global scanning strategy.
Vulnerability Exploitation
Hackers exploited CVE-2021-33044 and CVE-2021-33045 vulnerabilities using a tool called p2pwn. The tool installed a persistent backdoor account (p2pwn / p2password) on 1,923 cameras, which survives password changes and factory resets. The researchers noted that 89. 4% of live serials exposed an access channel without authentication, highlighting the vulnerability of these devices.
Offline Recovery
The CameraSwarm operator leveraged the camera serial number to generate recovery codes, allowing them to redeem new codes via Dahua’s standard password-recovery process. The researchers found two misleading vulnerability references in the toolkit, CVE-2024-39943 and CVE-2025-31702, which were not exploited in the observed attacks.
Data Exfiltration
The researchers recovered 407 MB of data, including source code, logs, credentials, captured camera images, shell history, and exploitation results. This data helped them map the operation and understand the extent of the compromise.
Conclusion
The CameraSwarm campaign underscores the vulnerabilities of Dahua IP cameras and the importance of securing these devices. Owners should examine their devices for the presence of a 'p2pwn' account and remove it. Removing the backdoor account does not invalidate recovery codes generated by the toolkit, and they remain usable until Dahua alters the derivation server-side. Users are recommended to disable P2P when not needed and apply the latest firmware updates for CVE-2021-33044 and CVE-2021-33045, or a later firmware version.
Related Threats
Other recent threats include hackers breaching NAS devices in Plex2Shell attacks, Vercel rolling out new protection against stolen session cookie attacks, and Trezor warning of a suspected crypto-theft implant in hardware wallets. These threats highlight the need for continuous monitoring and updates to protect against evolving cyber threats.

Comments