← 목록

Over 5,400 Hacked Sites Serve ClickFix and WebRTC Paths

devto 2026-09-06 원문 보기 ↗


1. Basic Information

2. Summary

Over 5,400 compromised websites fetched next-stage components from BNB Smart Chain Testnet smart contracts. The observed vectors include ClickFix, which tricks users into pasting PowerShell commands, and a WebRTC variant that receives and runs JavaScript through a WebRTC data channel without signaling.

3. Attack Flow

ClickFix Vector

  1. Attackers compromise legitimate websites, including WordPress and PrestaShop, adding inline scripts or loaders disguised as legitimate packages. The initial compromise method is unknown.
  2. The loader runs in the visitor browser and sends a JSON-RPC eth_call to the BSC Testnet RPC.
  3. The script retrieved from the smart contract displays a fake CAPTCHA ClickFix screen, prompting the user to paste a command into the Windows Run dialog.
  4. When the user performs this action, a downloader containing PowerShell retrieves and runs the final payload. The final payload is not fixed.

WebRTC Data Channel Vector

  1. The smart contract returns a small JavaScript stager instead of a ClickFix screen.
  2. The stager builds the C2 IP address, UDP port, ICE password, and DTLS certificate fingerprint in the code.
  3. Without using a normal signaling server, it provides its own generated response to the browser to open a WebRTC data channel.
  4. It combines the JavaScript received from the C2 in memory, reuses the CSP nonce of the legitimate script, and adds it to the DOM. If there is no nonce, it uses Function().
  5. After code execution, it deletes the added script element and the channel.

4. Attacker Position and Execution Location

5. Visibility for Victims and Administrators

Victims

Administrators

6. Success and Failure Conditions

Success Conditions

Failure Conditions and Risk Mitigation

7. What Happens Upon Success

8. Observable Logs

9. Attack Success Determination

10. Investigation Playbook

Inference: Investigation proposals based on observed distribution vectors and capabilities.

11. Defense and Detection Ideas

Inference: The following are implementation proposals for operations.

12. Facts / Inference / Hypothesis

Facts

Inference

Hypothesis

No additional hypotheses. Unconfirmed items are listed in "Unanswered Questions and Further Investigation".

13. MITRE ATT&CK Mapping

14. Unanswered Questions and Further Investigation

15. Impact on SOCs and Organizations

For organizations, it is important not to treat web browsing-based attacks solely as email security issues. This activity begins with compromised legitimate sites and branches into BSC Testnet RPCs, fake CAPTCHAs, PowerShell, and WebRTC. It is necessary to cross-reference web proxy, DNS, endpoint, and network logs to trace the flow from visiting legitimate sites to unnatural operational instructions or outbound UDP traffic.

Blocking a single BSC Testnet endpoint or individual IP address may cause operators to switch to another RPC. For organizations with no operational need, restricting Testnet RPC groups and whitelisting usage subjects and purposes when necessary is more effective. Regarding WebRTC, do not assume browser traffic is safe; verify outbound UDP and DTLS traffic to unknown peers that are not required for business operations.

Meanwhile, the figure of over 5,400 represents the number of compromised websites, not endpoints where final payloads were executed. SOCs should evaluate site visits, fake CAPTCHA displays, command pasting, PowerShell execution, final payload execution, and C2 establishment separately, containing incidents based on confirmed stages.

16. Summary by Role