Banana RAT Branches Show New Persistence and WebSocket C2 Techniques

· Original article ↗

Summary

Analysis of two Banana RAT branches found shared staging infrastructure but changes in installation paths, persistence, and C2. The newer branch uses randomized identifiers, a VBS launcher, scheduled tasks, and WebSocket communications.

Key points

  • An exposed server at 198.245.53.26 hosted staging files and backend scripts consistent with generating and obfuscating payload variants.
  • The older branch used ETW-themed paths, Microsoft-like filenames, and the C2 domain c.windowns-cdn.com, resolving to 149.56.12.51.
  • The newer branch uses randomized ProgramData paths, a VBS launcher, a hidden SYSTEM scheduled task, and a registry Run-key fallback.
  • The newer payload communicates over WebSockets with host-specific subdomains under testewin.com; its fallback IP, 149.56.12.51, links it to the older branch.
  • Analysis describes capabilities including screen and session monitoring, remote input, file transfer, system discovery, and keylogging.
  • The recovered runtime payload matched the newer branch's analyzed payload by SHA-256, connecting the exposed infrastructure to sandbox observations.

Article Details

Attack Vectors
  • PowerShell-based staging retrieves and executes payloads from the exposed staging host.
  • A BAT launcher reconstructs and executes PowerShell commands; the newer branch uses a VBS launcher.
  • Persistence uses hidden Scheduled Tasks running as SYSTEM, with an HKCU Run-key fallback when elevated privileges are unavailable.
  • The newer branch communicates with C2 over WebSockets and supports keylogging, screen capture, remote input, and file transfer.
Defensive Notes
  • Monitor for hidden PowerShell execution, VBS launchers, suspicious Scheduled Tasks, and Run-key persistence.
  • Hunt for the article-listed staging and C2 indicators, including the dedicated testewin.com domain and the cross-branch fallback IP.
  • The article recommends using sandbox detonation and threat-intelligence enrichment to investigate suspicious files and URLs.

Indicators of compromise

TypeIndicatorContext
DOMAIN52facc3b24f8bad9c5c56819e385f3a1[.]testewin[.]comVictim-specific C2 domain used by the newer branch for WebSocket communication.
DOMAINc[.]windowns-cdn[.]comPseudo-Microsoft C2 hostname used by the older Banana RAT branch.
DOMAINcdn[.]testewin[.]comFallback C2 domain embedded in the newer-branch runtime payload.
IPV4149[.]56[.]12[.]51Older-branch C2 address and fallback C2 IP in the newer branch.
IPV4198[.]245[.]53[.]26Exposed staging and payload-distribution host used by both Banana RAT branches.
MD5e3f81120502a2945f3f0eaabc28e6d3fExample suspicious file hash associated in the article with a Banana RAT attack.
SHA256443c0a821c214471d74b51093ab3d69bb9bee54ded049e5abcda2551e4f12707SHA-256 of the older-branch full payload, identified as msedgeupdate.txt / msedge.txt.
SHA256bc4c29bc0c84ea18311fbadc508f6f3a9d84b54a456e672c2ab34d6b42f56c0cSHA-256 of Fatura-BtgPactual-22568.bat, identified as the older-branch entry sample.
SHA256d828949ade683cf3ac6d4260f946ca33ef861035051db07d3ee79ec75dd243b2SHA-256 of payload_new.php.malw, identified as the newer-branch full PowerShell payload and matching the extracted runtime payload.
SHA256e9d918ff5f7918cff1a3a23f3945058a66b56d6dd724066414c7e1cab95e166dSHA-256 of st.php.malw, identified as the newer-branch stage-2 stager.
URLhxxp[:]//198[.]245[.]53[.]26/payload[.]phpOlder-branch payload-delivery URL on the exposed malware staging host.
URLhxxp[:]//198[.]245[.]53[.]26/st[.]phpNewer-branch staging URL used to retrieve and execute the stage.
URLhxxp[:]//198[.]245[.]53[.]26/st[.]txtOlder-branch staging URL used to retrieve a file from the exposed malware staging host.

MITRE ATT&CK

People

Malware

Tools

Countries

Industries

Related Articles