rootpwn

Malware

BUGHATCH Malware: In-Memory PowerShell Implant from CUBA Campaign

BUGHATCH is a custom C2 implant discovered in February 2022 during the CUBA ransomware operation. The tool is delivered via an obfuscated PowerShell dropper, loads in memory, and can download and execute arbitrary code using reflection, shellcode, or system commands. Defenders should block the dropper, monitor for suspicious download activity, and deploy the provided YARA rule.

What Happened

In early 2022, analysts uncovered BUGHATCH, a lightweight implant used by the threat actor behind the CUBA ransomware campaign. The malware is injected into memory by an obfuscated PowerShell script, which the actor refers to as TERMITE.

Capabilities

  • Downloads additional payloads from a command‑and‑control server.
  • Executes arbitrary code via reflection, shellcode injection, or direct system commands.
  • Maintains in‑memory persistence, avoiding disk artifacts.

Detection & Mitigation

Elastic Security has released a YARA rule that matches the in‑memory dropper signature. Defenders should:

  • Block execution of the identified PowerShell script or enforce script‑block policies.
  • Monitor outbound HTTP/HTTPS traffic for unexpected download requests from unknown hosts.
  • Deploy the YARA rule across endpoint detection platforms and SIEMs.

Additional Resources

Elastic Security Labs publishes the full analysis and YARA rule on their website. The report also maps BUGHATCH actions to MITRE ATT&CK techniques.

malware CUBA PowerShell C2 YARA in-memory download

← All news