Tag: Telegram C2

  • Thunder & Lightning Return: Iran’s Infy APT Resurfaces with Advanced Foudre Exploits

    After nearly five years of apparent dormancy, the Iranian threat group Infy—also known as Prince of Persia—has resurfaced. Security researchers at SafeBreach have identified a new campaign by this long-standing cyber-espionage operation, which has conducted attacks across multiple countries since 2004 while largely remaining in the shadow of other Iranian groups.

    The recent operation targeted victims in Iran, Iraq, Turkey, India, Canada, and several European countries. The group’s core toolset remains unchanged, relying on the malware families Foudre and Tonnerre. Foudre functions as a loader and reconnaissance tool, responsible for deploying Tonnerre and harvesting system information. In the latest iteration, Foudre version 34, analysts uncovered enhanced delivery techniques: the malware is now embedded directly within an executable attached to a Microsoft Excel document, making the attack significantly more discreet.

    Communication mechanisms with command-and-control servers have also been refined. The malware now employs a domain generation algorithm, complicating efforts to track its infrastructure. In addition, Foudre contacts a remote server daily to retrieve an encrypted digital signature, which it decrypts using an embedded public key to verify that it is communicating with the “correct” server. This method substantially raises the barrier to traffic interception and spoofing.

    On the servers used to manage infected systems, researchers discovered a structured environment containing directories for activity logs, exfiltrated files, and authentication data used to validate the command server. A separate directory labeled “download” was also identified; while its exact purpose remains unclear, it is believed to be intended for delivering updates.

    Particular attention was drawn to a new feature in recent versions of Tonnerre: communication via Telegram. Analysis revealed that the malware can connect to a Telegram group named “سرافراز” (“Proud” in Persian), which consists of only two members—a bot likely used for command and data collection, and a user with the alias @ehsan8999100. Details about this group are stored on the C2 server in a dedicated file and are accessible only to select infected systems.

    While examining Infy’s infrastructure, analysts also uncovered older malware samples actively used between 2017 and 2020. These included applications disguised as news software, the MaxPinner trojan capable of spying on Telegram activity, and a previously undocumented piece of malware named Rugissement.

    Despite the outward silence since 2022, Infy never ceased operations; it merely retreated deeper underground. Activity analysis over the past three years shows continued tool development and ongoing attacks, alongside a marked evolution in both infrastructure and operational methodology.

    Against the backdrop of this renewed activity, the report once again highlights the blurred boundary between cyber-espionage and state structures. Leaks related to another Iranian group, Charming Kitten, suggest that the same administrative mechanisms may operate behind ostensibly distinct cyber actors—overseeing phishing campaigns and ransomware attacks alike under a unified command and logistical framework.

  • Tomiris APT Infiltrates Governments Via Phishing, Uses Telegram/Discord for C2 Espionage

    The Tomiris group launched a new wave of cyber-espionage in early 2025, targeting high-level political and diplomatic institutions. According to Kaspersky Lab, the attacks focused on ministries of foreign affairs, state agencies, and intergovernmental organizations in Russia and across the CIS, with more than a thousand users potentially exposed to the group’s activity.

    Initial access is obtained through highly targeted phishing emails carrying archive attachments. These archives are usually password-protected—the password is provided in the body of the email—and contain an executable file disguised as an office document. The attackers alter the icon, extend the filename, and apply a double extension such as “.doc .exe.” When viewed through a typical file manager, the true nature of the file is hidden, and the victim sees what appears to be an ordinary document. The lure themes correspond to governmental workflows, such as discussions on regional development projects in Russia or protocols of intergovernmental meetings.

    More than half of the emails and lure files observed in the current campaign are written in Russian, indicating that Russian-speaking users and institutions remain the primary targets. The remaining messages are localized for Turkmenistan, Kyrgyzstan, Tajikistan, and Uzbekistan, where they appear in national languages. Filenames frequently imitate bureaucratic paperwork, such as “аппарат правительства российской федерации по вопросу…” or “план-протокол встречи о сотрудничестве представителей.”

    Once the attachment is launched, first-stage implants begin to deploy. In most analyzed incidents, these are reverse shells that connect to a command server and grant operators a remote console. Tomiris develops these modules in several programming languages — including C and C++, C#, Go, Rust, and Python. Their capabilities are intentionally minimal: collecting basic system and network information, executing commands, and downloading the next-stage payload. They do not self-propagate nor embed themselves deeply until the operator manually establishes persistence via a second-stage tool.

    The next phase involves installing post-exploitation frameworks such as AdaptixC2 and Havoc. To deploy them, attackers rely heavily on legitimate Windows utilities — bitsadmin, curl, PowerShell, and certutil. After verifying that the downloaded file is present and not neutralized by security software, the operator registers it for automatic execution via the Run registry key. With this, Tomiris gains stable, long-term access and can expand its toolkit on demand.

    A separate section of Kaspersky Lab’s report highlights new implants. Rust Downloader, a previously undocumented module, gathers system details and scans disks for files with extensions such as .jpg, .jpeg, .png, .txt, .rtf, .pdf, .xlsx, and .docx. It then sends operators a list of file paths via Discord webhooks — transmitting only metadata, not file content. The downloader then periodically attempts to fetch a ZIP archive from a Tomiris server using a chain of VBS and PowerShell scripts, extract it into a temporary directory, and launch all executables inside. In observed cases, this archive contained components of the Havoc framework.

    Several Tomiris tools are built around popular messaging platforms. The Python Discord ReverseShell uses the discord library and Discord’s public infrastructure as a command channel, receiving text commands and returning execution results. Through it, operators can load additional modules such as the Tomiris Python FileGrabber stealer — which collects documents and images and exfiltrates them as a ZIP archive — and the Tomiris Python Distopia Backdoor, based on the open-source dystopia-c2 project and equipped with standard remote-administration functions. A parallel set of tools leverages Telegram: Python and C# ReverseShell variants and a PowerShell backdoor use bot tokens and chat_id values to receive commands and exfiltrate data through the Telegram API.

    Researchers note that in 2025 Tomiris increasingly depends on implants using Telegram and Discord as command-and-control layers. This approach masks malicious traffic as ordinary interactions with popular services, complicating network-level detection and analysis. At the same time, the group continues to rely on older tools such as JLORAT (known since 2022), which executes commands, collects files, captures screenshots, and exhibits Tomiris’s hallmark tactic of distributing multiple modules under similarly long filenames inside encrypted archives with repetitive passwords.

    To move laterally and hide their tracks, Tomiris operators deploy reverse SOCKS proxies. The group’s arsenal includes ReverseSocks modules written in C++ and Go, almost entirely copied from open-source GitHub projects. These allow attackers to proxy vulnerability scanners and other tools through already compromised hosts, advancing the intrusion while remaining within the victim’s internal network.

    Kaspersky Lab emphasizes that the 2025 Tomiris campaign strategically mixes modules written in diverse programming languages and relies on widely accessible cloud and messaging services to increase the resilience of its infrastructure and reduce the likelihood of detection. The operators’ core objective is to secure durable remote access to government systems and exfiltrate confidential documents. In several cases, analysts were able to reconstruct the entire attack sequence — from the moment a phishing lure was opened to the final deployment of AdaptixC2 and Havoc.

  • TelecordC2: An advanced cross-platform C2 using Discord and Telegram api

    TelecordC2

    Telecord is an advanced cross-platform c2 using discord and Telegram API, it allows multi-agent handling with ease using Telegram and discord APIs can be good for exfiltration and network evasion, this project is built to enhance red teaming operations

    Telecord works by combining the two APIs to get seamless and easy interaction with each agent

    agents support Mac, Linux, and Windows

    Quick overview of how it works

    the agent consists of 2 subagents, the first is a discord bot and the other is a telegram bot.

    since telegram does not allow multiple agents to run at the same time. by default the telegram bot is asleep inside our discord bot until we want to interact with it by sending the !interact command to the discord bot, once it receives it wakes up the telegram bot, meaning our session enables us to execute more commands

    list of commands below:

    Install & Use