
Go-Based Backdoor Uses Telegram for Command-and-Control: Technical Analysis and Detection Guide
Key Takeaways
Netskope Threat Labs identified a Go-based backdoor that uses Telegram as its command-and-control (C2) channel.
The analyzed sample could execute PowerShell commands, relaunch itself, and delete its own file.
Its screenshot functionality was incomplete. The malware's response message did not confirm that it had captured an actual screenshot.
The researchers described its possible Russian origin as an assessment, not a confirmed attribution.
Monitoring process behavior, endpoint activity, and unusual cloud-service communications can help organizations detect similar threats.
What is the Go-Based Malware Using Telegram for C2?
A Go-based backdoor is a type of malicious software written in the Go programming language that provides an attacker with unauthorized remote access to a compromised system.
In February 2025, Netskope Threat Labs published an analysis of a Windows backdoor that used Telegram for command-and-control communication. Instead of relying on a traditional attacker-controlled server, the malware used Telegram's Bot API to receive instructions and return information.
This approach creates a detection challenge for organizations. Telegram is a legitimate communication platform, and its network traffic can appear alongside normal business activity. Security teams therefore need to examine how an application communicates, not simply whether a device connects to Telegram.
Netskope described the analyzed sample as apparently still under development but already functional. Its findings also indicated that the malware could perform several remote-control activities.
Important context: This report describes one analyzed malware sample. It does not establish how many organizations were affected, whether a large-scale campaign was underway, or who definitively developed the malware.
How Does the Telegram-Controlled Backdoor Work?
The malware follows a relatively simple backdoor model. After execution, it attempts to establish its presence on the Windows system and communicate with its operator through Telegram.
Its main activities can be understood through four stages.
1. Self-Installation on Windows
According to Netskope, the malware checks whether it is running from a particular location on the infected system.
If the expected location does not match, the sample copies itself to a designated Windows temporary directory, launches the new copy, and terminates the original process.
This behavior is important because an unexpected executable running from a temporary directory can indicate suspicious activity.
However, a file location alone is not enough to confirm an infection. Legitimate applications also use temporary directories during installation and updates.
Security teams should examine the file's origin, digital signature, process history, and behavior before classifying it as malicious.
2. Communication Through Telegram
The malware uses Telegram's Bot API to communicate with its operator.
Netskope found that the sample relied on a Go package to establish a bot connection and check for incoming messages. These messages acted as instructions for the compromised computer.
The malware also returned information through the same communication channel.
This makes Telegram more than a messaging application in this particular attack. It becomes part of the attacker's command-and-control infrastructure.
The important security concern is that legitimate cloud services can be abused to support malicious operations. Blocking every connection to a popular cloud platform is not always practical for organizations.
Instead, defenders need to identify unusual communication patterns and the processes responsible for generating them.
3. Remote Command Execution
One of the most significant capabilities identified by Netskope was remote command execution through PowerShell.
The malware could receive instructions from its operator, execute the requested commands on the compromised Windows system, and return the results through Telegram.
This capability gives an attacker considerable control over an affected endpoint.
Depending on the commands executed, unauthorized access could expose business information, affect system configurations, or create opportunities for additional malicious activity.
PowerShell is a legitimate Windows administration tool. IT teams use it for routine management and automation. The security concern is its unauthorized use by an unknown or suspicious process.
For this reason, security monitoring should consider the parent process, execution context, user account, and activity that occurs before and after PowerShell starts.
4. Persistence and Self-Removal
The analyzed sample also included functionality designed to relaunch itself from its designated location.
This behavior can make the malware harder to remove if defenders only terminate the original process.
Netskope also documented a self-removal capability. The malware could delete its own file and terminate its process when instructed.
This creates an additional challenge during incident response. If malicious files disappear, security teams may need to rely on endpoint telemetry, event logs, network records, and previously collected forensic evidence to understand what happened.
What Commands Did the Malware Support?
Netskope documented four command handlers in the analyzed sample. Their implementation status was not identical.
|
Command function |
Observed capability |
Security significance |
|
Remote command execution |
Implemented |
Allows unauthorized PowerShell activity |
|
Persistence |
Implemented |
Helps the malware relaunch itself |
|
Screenshot capture |
Incomplete |
The sample returned a confirmation message without demonstrating actual screenshot capture |
|
Self-removal |
Implemented |
Allows the malware to delete its file and terminate |
The screenshot functionality deserves particular attention.
The malware returned a message indicating that a screenshot had been captured. However, Netskope reported that the feature was not fully implemented.
A response message should not be treated as evidence that the underlying action succeeded. This distinction matters when assessing malware capabilities and communicating technical findings.
Why Does Telegram-Based C2 Create a Security Challenge?
Traditional command-and-control infrastructure often involves communication with attacker-controlled servers. Security teams may investigate suspicious domains, IP addresses, unusual connection patterns, or known malicious infrastructure.
A backdoor that uses a legitimate cloud platform creates a different problem.
Telegram already generates normal traffic across many networks. Its API is also used by legitimate applications and automated services.
When malware uses the same platform, a connection to Telegram alone does not establish malicious activity.
Legitimate Traffic Can Hide Suspicious Activity
Organizations may allow access to messaging platforms and cloud services for business communication.
Attackers can abuse this existing access to communicate with compromised devices. This can make simple domain-based blocking less effective.
MITRE ATT&CK documents this broader technique as T1102.002: Web Service, Bidirectional Communication. It describes how attackers can use legitimate external web services to exchange commands and results with compromised systems.
Encryption Limits Network Visibility
HTTPS encryption protects legitimate communications, but it can also limit what network monitoring tools can inspect.
Security teams may see a connection to a recognized service without having enough information to understand the application's activity.
This is why network monitoring should be combined with endpoint telemetry and process-level investigation.
Cloud Applications Can Be Abused in Different Ways
Telegram is not the only legitimate platform that attackers can misuse.
Netskope also highlighted services such as OneDrive, GitHub, and Dropbox as examples of platforms that can create similar challenges when abused for command-and-control communication.
The broader lesson is that a trusted service is not automatically a trusted process.
How Security Teams Can Detect Telegram C2 Malware
Organizations should use a combination of endpoint, network, and behavioral monitoring rather than relying on a single indicator.
The following defensive measures can help identify similar backdoor activity.
1. Monitor Unexpected Process Activity
Security teams should investigate unusual relationships between applications and system processes.
For example, an unfamiliar executable that launches PowerShell and then establishes an external connection deserves further investigation.
Useful monitoring areas include:
Unexpected executable files running from temporary directories.
Unusual parent-child process relationships.
PowerShell activity initiated by unknown applications.
Programs running under unexpected user accounts.
Processes that repeatedly restart after termination.
These indicators are not proof of malware on their own. They should be evaluated alongside other evidence.
2. Review Outbound Network Connections
Monitor outbound connections from endpoints, especially when they originate from applications that do not normally require internet access.
Security teams should investigate:
Unexpected connections to Telegram-related infrastructure.
Automated communication from unknown background processes.
Unusual connection timing or frequency.
Network activity that begins immediately after suspicious process execution.
Unexpected data transfers from business devices.
A connection to Telegram is not automatically malicious. The source process and surrounding activity are important parts of the investigation.
3. Enable PowerShell Logging
PowerShell is widely used in Windows environments, so disabling it completely may not be practical.
Instead, organizations should enable appropriate logging and monitor unusual execution patterns.
Security teams can review available PowerShell operational and script-block logs, correlate them with endpoint alerts, and investigate activity that does not match normal administrative work.
MITRE ATT&CK identifies unauthorized PowerShell use under T1059.001: PowerShell.
4. Deploy Endpoint Detection and Response
Endpoint Detection and Response (EDR) solutions can help security teams identify suspicious behavior across workstations and servers.
Useful detection areas include:
Unexpected executable creation and execution.
Suspicious process relationships.
Unusual scripting activity.
Unexpected persistence behavior.
Attempts to remove suspicious files.
Connections from unfamiliar processes to external services.
EDR alerts should be investigated in context. A single event may have a legitimate explanation, while several related events can indicate a possible compromise.
5. Apply Network Segmentation and Access Controls
Network segmentation can reduce the impact of a compromised endpoint by limiting unnecessary communication between systems.
Organizations should also review which applications and services employees need for their roles.
Where practical, restrict unauthorized applications and external communications through approved security policies. Avoid broad blocking rules that could disrupt legitimate business operations without first assessing their impact.
6. Maintain an Incident Response Process
A suspected backdoor infection requires more than deleting an unfamiliar file.
Security teams should follow an established incident response process that includes:
Isolating the suspected endpoint when appropriate.
Preserving relevant logs and forensic evidence.
Investigating related process and network activity.
Identifying potentially affected accounts and systems.
Removing confirmed malicious components through an approved remediation process.
Reviewing the initial access path and addressing the underlying weakness.
Monitoring affected systems for signs of continued compromise.
If the malware has deleted its own file, retained endpoint and network records may still help investigators reconstruct the activity.
MITRE ATT&CK Mapping
The analyzed malware behavior can be understood through several MITRE ATT&CK techniques.
|
Technique ID |
Technique |
Relevance to the analyzed sample |
|
T1059.001 |
PowerShell |
The backdoor used PowerShell for remote command execution |
|
T1102.002 |
Web Service: Bidirectional Communication |
Telegram was used to exchange instructions and results |
|
T1070.004 |
File Deletion |
The sample included a self-removal capability |
These mappings help security teams connect observed malware behavior with established threat intelligence frameworks.
They should not be interpreted as proof that every technique was used successfully in every infection.
What Businesses Should Do to Reduce the Risk
The discovery highlights a practical problem for organizations: malicious activity can take place through services that employees use every day.
A strong defensive approach should include:
Endpoint protection: Deploy and maintain endpoint security tools across business devices.
Application control: Review unauthorized applications and restrict software that employees do not need.
PowerShell monitoring: Collect relevant logs and investigate unusual scripting activity.
Network visibility: Monitor outbound connections and investigate unexpected communication from unknown processes.
Security awareness: Teach employees to recognize suspicious downloads, unexpected software, and unusual system behavior.
Incident response readiness: Maintain a documented process for investigating and containing endpoint compromises.
Patch management: Keep operating systems, applications, and security tools updated.
No single control can prevent every backdoor infection. Combining preventive controls with continuous monitoring and a tested response process gives organizations better visibility and a stronger ability to respond.
How Hoplon InfoSec Can Help
Hoplon InfoSec can help organizations strengthen endpoint security, assess existing security controls, and identify weaknesses that could increase the risk of malware infections.
Its relevant services include:
Endpoint Security: Improve endpoint protection and visibility across business devices.
Vulnerability Management: Identify and prioritize weaknesses in systems and software.
Threat Intelligence: Support security teams with information about emerging threats and suspicious indicators.
Security Monitoring: Help identify unusual activity across monitored environments.
Incident Response: Support investigations when organizations suspect a security compromise.
These services can help businesses improve their security posture and respond more effectively to threats. They do not guarantee protection against every malware infection.
Frequently Asked Questions
1. Can Telegram be used by malware for command and control?
Yes. Malware can abuse Telegram's Bot API to receive instructions and return information from compromised devices. Netskope documented this behavior in its February 2025 analysis of a Go-based Windows backdoor.
2. Does using Go mean a program is malware?
No. Go is a legitimate programming language used to build many types of software. The language itself does not make a program malicious. Its behavior, purpose, origin, and execution activity determine whether it presents a security risk.
3. Can security teams detect malware that uses Telegram?
Yes, but detecting it requires more than blocking Telegram traffic. Security teams can correlate endpoint processes, PowerShell activity, file behavior, and outbound network connections to identify suspicious activity.
4. Does the analyzed malware capture screenshots?
Netskope reported that the sample included an incomplete screenshot function. Although it returned a message indicating that a screenshot had been captured, the report did not establish that the function successfully captured an actual screenshot.
Conclusion
The Go-based backdoor analyzed by Netskope demonstrates how attackers can misuse legitimate cloud services for command-and-control communication.
By using Telegram, the malware could receive instructions and return information without relying on a conventional dedicated C2 server. Its documented capabilities included remote PowerShell execution, relaunch behavior, and self-removal.
For defenders, the main challenge is distinguishing legitimate application activity from communication initiated by a compromised system.
Organizations should combine endpoint monitoring, PowerShell logging, network visibility, application controls, and incident response planning. These measures can help security teams identify suspicious behavior earlier and reduce the potential impact of a backdoor infection.
As attackers continue to abuse trusted cloud platforms, businesses need security controls that examine application behavior and context, not just familiar service names.
Sources and Further Reading
Netskope Threat Labs: Telegram Abused as C2 Channel for New Golang Backdoor
MITRE ATT&CK: Web Service, Bidirectional Communication (T1102.002)
MITRE ATT&CK: PowerShell (T1059.001)
MITRE ATT&CK: File Deletion (T1070.004)
Technical reviewer: Mohammed Talukder is the Co-Founder and CEO of Hoplon InfoSec, with over 16 years of experience in cybersecurity and technology. His expertise includes offensive security, vulnerability management, cyber risk management, and incident response. His professional credentials include CISM, CISA, CEH, and CompTIA PenTest+. He has also received Infosys recognition awards for his professional contributions. He shares practical cybersecurity insights to help organizations strengthen their security posture.
Author: Gazi Mahmud, Co-Founder and CIO of Hoplon InfoSec LLC, cybersecurity leader, and CISM & CISA certified professional with expertise in cyber risk management, security governance, compliance, and incident response.



-20261202185041.webp&w=3840&q=75)

