Living Off Trusted Infrastructure: Darktrace Unpacks CikaBika, a Rust-Based RAT Abusing Discord for Stealth C2

🛡️ Verified Threat IntelDigitalSpying Research Desk
📅 October 17, 2026⏱️ 5 min read

Published: October 17, 2026

Author: DigitalSpying Threat Intelligence Desk

Category: Malware Reverse Engineering & Evasion Techniques

Tags: CikaBika, Rust Malware, Remote Access Trojan, Discord C2, Living off Trusted Services, Darktrace, Endpoint Security, Evasion

Executive Summary

In an emerging trend that highlights how modern malware authors continuously weaponize legitimate consumer cloud services to bypass enterprise perimeter controls, threat researchers at Darktrace have published a detailed reverse-engineering analysis of CikaBika Bot.

As documented by SecurityWeek, CikaBika is a sophisticated, highly modular Remote Access Trojan (RAT) authored in the Rust programming language. Delivered primarily through document-themed phishing lures, CikaBika achieves complete host compromise while maintaining an exceptionally low detection footprint. Its signature operational hallmark is its complete reliance on Discord's official API and webhooks as its primary command-and-control (C2) backbone. By masking bidirectional communications inside encrypted TLS traffic to legitimate discord.com and discordapp.com endpoints, CikaBika effortlessly circumvents legacy network firewalls and domain reputation filters.

Technical Deep-Dive: Architecture & Execution Mechanics

1. Delivery & Phishing Infection Vector

The infection chain initiates with spear-phishing emails containing malicious ZIP archives or ISO disk images:

* Lure Metadata: The archives contain files masquerading as legitimate corporate business invoices, tax forms, or resume documents (e.g., Statement_Invoice_Oct2026.pdf.exe).

* LNK and Dropper Chain: When executed, a Windows Shortcut (LNK) or staged PowerShell launcher runs in the background, reaching out to an external cloud storage bucket to retrieve and execute the compiled 64-bit Rust binary.

2. Why Rust? Anti-Analysis and Evasion Primitives

Malware developers are increasingly abandoning C/C++ and .NET in favor of Rust for distinct offensive advantages:

* Binary Obfuscation by Default: Rust compiler toolchains (rustc) generate complex, heavily inlined machine code with non-standard runtime structures and standard library linkages, significantly hindering traditional decompilers (such as IDA Pro or Ghidra) and rendering static YARA signatures ineffective.

* Cross-Platform Portability & Memory Safety: Rust allows adversaries to compile modular binaries targeting both Windows and Linux environments without introducing common memory-leak crashes that might alert endpoint monitoring agents.

3. Living Off Trusted Infrastructure: Discord-Powered C2

Traditional RATs require threat actors to maintain bulletproof hosting infrastructure, dynamic DNS domains, or Tor hidden services—all of which are vulnerable to domain takedowns and IP blacklisting. CikaBika eliminates this exposure entirely:

* Discord Bot Token Authorization: The malware binary contains an embedded Discord Bot API token. Upon execution, CikaBika issues authenticated HTTPS requests to https://discord.com/api/v10/ to establish a direct channel with an attacker-controlled Discord guild (server).

* Channel-Per-Victim Structure: When a new victim is infected, CikaBika creates a dedicated private Discord text channel named after the victim’s machine hostname and MAC address hash (e.g., #host-desktop-e4a1).

* Bidirectional Command Dispatch: The threat actor types interactive shell commands directly into the Discord chat interface (such as !cmd whoami, !download, or !screenshot). CikaBika continuously polls the Discord channel via REST API or WebSocket gateway, reads the chat messages, executes the requested command in the local system shell (cmd.exe or powershell.exe), and uploads the output back into the chat channel as a formatted text message or file attachment.

4. Post-Exploitation Capabilities

Darktrace’s forensic analysis revealed that CikaBika provides a comprehensive suite of modular surveillance tools:

* System Profiling: Siphons detailed OS build info, installed security software, CPU/GPU hardware specs, and active process trees.

* Credential & Browser Scraping: Targets Chromium-based and Gecko-based browsers (Chrome, Edge, Firefox, Brave) to extract stored web credentials, cookies, and autofill credit card forms by decrypting SQLite databases using DPAPI master keys.

* Desktop Surveillance: Takes periodic high-resolution desktop screenshots and records keystrokes via low-level Windows API hooks (SetWindowsHookExW).

* File Exfiltration: Compresses targeted directory structures (Documents, Desktop, Downloads) into password-protected archives and streams them out via Discord file attachments up to 25 MB per chunk.

Strategic Implications: The Problem of "Living Off Trusted Services" (LOTS)

CikaBika exemplifies the growing operational challenge of "Living Off Trusted Services" (LOTS):

* Firewall Blindness: Corporate firewalls and Secure Web Gateways (SWG) typically whitelist major collaboration domains (Discord, Slack, Telegram, Microsoft Teams, GitHub) because employees utilize them for business operations.

* Encryption Concealment: Because all C2 exchanges travel over end-to-end encrypted HTTPS (port 443) to valid, legitimate Discord certificates, deep packet inspection (DPI) tools cannot distinguish between an employee chatting with friends and an active malware beacon exfiltrating confidential files unless active SSL/TLS decryption is enforced.

Actionable Detection & Enterprise Defense Playbook

Security engineering teams and SOC analysts should implement the following targeted controls to neutralize Discord-based RATs:

1. Enterprise Discord Access Policy & Ingress/Egress Controls:

* On corporate-managed endpoints and workstations, block or restrict outbound access to discord.com/api/, discordapp.com/api/, and gateway.discord.gg unless explicitly required for corporate social media marketing.

* For environments that permit Discord, enforce SSL/TLS inspection on web proxies and configure policy rules that inspect HTTP headers, blocking API requests bearing bot authorization tokens (Authorization: Bot ...) originating from unmanaged client processes.

2. Endpoint Behavior & Process Lineage Monitoring:

* Configure EDR rules to flag anomalous parent-child process relationships—specifically when common system utilities (cmd.exe, powershell.exe, certutil.exe) or unrecognized binaries compiled with Rust runtime signatures spawn outbound HTTPS connections to Discord IP ranges.

* Monitor for sudden file read surges targeting browser credential folders (AppData\Local\Google\Chrome\User Data\Default\Login Data).

3. Threat Hunting for Discord C2 Artifacts:

* Search network proxy logs for recurring HTTP POST requests to /api/v*/channels/*/messages containing JSON payloads with embedded system metadata.

* Audit Windows registry run keys (HKCU\Software\Microsoft\Windows\CurrentVersion\Run) and scheduled tasks for startup persistence scripts referencing non-standard directories (such as AppData\Roaming\ or AppData\Local\Temp\).

________________

Sources & Threat Intelligence References:

* Darktrace Threat Intelligence: CikaBika Bot: Inside a Discord RAT

* SecurityWeek: CikaBika Bot RAT Uses Discord for C&C

Classification:Cyber Security IntelligenceZero-Day AnalysisDefensive Engineering
🛡️

About the DigitalSpying Research Desk

The DigitalSpying Threat Intelligence Desk is composed of seasoned security researchers, reverse engineers, and blue team architects. Our mission is to publish reproducible, peer-audited threat analyses, hardware security evaluations, and defensive countermeasures.