TELESHIM Abuses Telegram for C2 in Attacks Against Middle East Governments
A new multi-stage cyber campaign targeting Middle Eastern governments uses three previously unknown malware families: TELESHIM, MIXEDKEY, and BINDCLOAK. The attackers abuse Telegram’s API for command-and-control (C2) communication to blend in with legitimate traffic, evading network detection. Heavy obfuscation techniques—including control flow flattening, mixed boolean arithmetic, string encryption, and environmental keying—are used to hinder reverse engineering and analysis.
Analysis
TL;DR
- A new multi-stage cyber campaign targeting Middle Eastern governments uses three previously unknown malware families: TELESHIM, MIXEDKEY, and BINDCLOAK.
- The attackers abuse Telegram’s API for command-and-control (C2) communication to blend in with legitimate traffic, evading network detection.
- Heavy obfuscation techniques—including control flow flattening, mixed boolean arithmetic, string encryption, and environmental keying—are used to hinder reverse engineering and analysis.
Why It Matters
This attack highlights a growing trend of threat actors leveraging popular, trusted platforms like Telegram for C2 operations, making it harder for defenders to distinguish malicious traffic from normal user activity. The use of advanced obfuscation and environment-specific payload decryption underscores the increasing sophistication of state-aligned or nation-linked cyber operations, particularly those targeting government infrastructure in geopolitically sensitive regions.
Technical Details
- The initial infection vector involves an ISO file containing a legitimate executable (“RegSchdTask.exe”) that sideloads a rogue DLL (“AsTaskSched.dll”), which deploys TELESHIM—a 32-bit Windows backdoor.
- TELESHIM communicates via Telegram API using two message types: control messages (for host registration, command execution, and data exfiltration) and download/execute messages (to fetch and run secondary payloads as scheduled tasks).
- The second stage triggers a DLL side-loading chain involving “GoProAlertService.exe” and “pthreadVC2.dll,” where the latter acts as a reflective loader named MIXEDKEY to decrypt and execute a hidden payload stored in “C99F29AC08454855B3D538960BB2F34F.PCPKEY.”
- The final payload is protected by double XOR encryption, with the second layer using environmental keying—deriving the decryption key from the victim machine’s volume serial number—to ensure activation only on intended targets.
- BINDCLOAK, a 64-bit C2 implant written in C++, is deployed last and contacts an external server at “cert.hypersnet[.]com,” completing the attack chain.
Industry Insight
Security teams should prioritize monitoring for unusual Telegram API usage patterns, especially from systems not typically associated with such traffic, as this method effectively bypasses traditional firewall and IDS rules. Additionally, organizations must strengthen endpoint detection and response (EDR) capabilities against obfuscated binaries and reflective loading techniques, while also implementing strict controls around executable permissions and DLL sideloading behaviors to mitigate early-stage compromise vectors.
Disclaimer: The above content is generated by AI and is for reference only.