← Lab /Security & privacy

Toy Ghouls deployed custom backdoor that uses MQTT and Matrix for C2

Toy Ghouls have created a custom backdoor that communicates via public HiveMQ MQTT broker and a Matrix-based Element server to maintain full control over infected Windows machines.

Security & privacy Securelist 4 Sep 2026 Tooling Real-world evidence

Published as “Angry Birds: Toy Ghouls’ new toys”

Why it matters

Using legitimate public services for C2 makes the backdoor harder to detect with traditional network-based defenses.

Summary

The researchers observed Toy Ghouls delivering a new backdoor to Windows hosts via WinRM and installing it as a service. The backdoor stores its configuration encrypted with ChaCha20-Poly1305 bound to the machine GUID and can communicate with its C2 over either a public HiveMQ MQTT broker or a self-hosted Element Matrix server. The write-up includes command-and-control message formats and shows that the malware can execute PowerShell or cmd commands and report results, indicating full remote control. Evidence is based on telemetry from compromised systems and analysis of configuration files, registry keys, and network traffic.

What they found 5

  1. Backdoor is delivered to targets using Windows Remote Management (WinRM)

    “In this campaign, the attackers use Windows Remote Management (WinRM) to deliver the backdoors and their configuration files to compromised systems.”

  2. Backdoor can install itself as a Windows service for persistence

    “The backdoor can both run within an interactive command-line session and establish persistence as a Windows service, using the --install or install option, depending on the backdoor version.”

  3. Configuration files are partially encrypted with ChaCha20-Poly1305 bound to the host's MachineGuid

    “It reads the file and partially encrypts it using the seal() function (the --seal option in the HiveMQ version), applying the ChaCha20-Poly1305 algorithm with a key derived from the value of the HKLM\Software\Microsoft\Cryptography\MachineGuid registry key.”

  4. One backdoor variant uses the public HiveMQ MQTT broker as its C2 server

    “The first version uses the public HiveMQ MQTT broker (broker.hivemq.com) as its C2 server.”

  5. The second variant uses a self-hosted Element server on the Matrix protocol for C2

    “For the second backdoor version, the attackers set up their own Element server running on the Matrix protocol, meet.element[.]tw, as the C2 server.”

Caveats 5

  • The public HiveMQ broker free tier supports only up to 100 concurrent connections and 10 GB of traffic per month, limiting scalability.
  • If the configuration cannot be decrypted, the backdoor stops running.
  • The backdoor stops if it cannot decrypt its configuration.
  • The free HiveMQ broker tier limits concurrent connections and traffic.
  • Metrics interval can only be set between 5 and 3600 seconds.

What’s new here 4

  • Custom backdoor delivered via WinRM and persisted as a Windows service
  • C2 communication over public HiveMQ MQTT broker
  • Alternative C2 channel using a Matrix-based Element server
  • Configuration encryption using ChaCha20-Poly1305 with MachineGuid-derived key