The sophisticated threat actor APT41 is leveraging a newly identified Winnti-family backdoor to transform Linux cloud servers into potent credential theft platforms. This advanced persistent threat (APT) is systematically targeting cloud environments hosted on AWS, Google Cloud, Microsoft Azure, and Alibaba Cloud, prioritizing stealthy and long-term access to critical infrastructure. The malware, detailed by Breakglass Intelligence, is an ELF implant designed for Linux workloads, with a primary objective of stealing cloud credentials at scale.
This campaign represents a significant evolution in APT41’s tactics, moving away from more overt methods like ransomware towards a strategy focused on reconnaissance and deep infiltration. The zero-detection nature of this implant, which had no detections on VirusTotal at the time of reporting, highlights a crucial gap in traditional endpoint security solutions when it comes to protecting cloud-native threats. APT41’s focus on exploiting instance metadata services, local credential files, and cloud-specific configuration paths allows them to gather the necessary information to escalate privileges and move laterally within cloud environments.
APT41’s Winnti Backdoor: Advanced Cloud Credential Harvesting and Covert Command and Control
The core functionality of this new Winnti backdoor revolves around a meticulously designed cloud credential harvesting engine. This module systematically targets the mechanisms cloud providers use to manage access and identity. On Amazon Web Services (AWS), the malware queries the instance metadata endpoint at 169.254.169.254 to retrieve Identity and Access Management (IAM) role credentials. Concurrently, it scans for the presence of the standard ~/.aws/credentials file. For Google Cloud Platform (GCP), the implant requests service account tokens from the metadata server and checks for application default credentials. In Microsoft Azure environments, it extracts managed identity tokens from the Instance Metadata Service (IMDS) endpoint and inspects ~/.azure profile files.
For Alibaba Cloud users, the malware focuses on Elastic Compute Service (ECS) metadata to obtain Resource Access Management (RAM) role credentials, while also examining local Alibaba CLI configuration files. All extracted sensitive information is encrypted using a hardcoded AES-256 key. This encrypted data is then temporarily stored on the compromised instance before being exfiltrated via the implant’s unique command and control (C2) channel.
Adding another layer of evasion, the backdoor employs an unconventional C2 strategy utilizing Simple Mail Transfer Protocol (SMTP) over port 25. This choice is strategic as it allows the malware’s communications to blend in with legitimate email traffic, which often faces less rigorous inspection and egress filtering compared to other protocols in many cloud networks. The implant communicates with a cluster of domains that impersonate Alibaba Cloud, strategically hosted on Alibaba Cloud infrastructure in Singapore. This geographical placement further aids in masking the malicious traffic as appearing to be normal regional network activity.
The operational infrastructure behind this campaign also demonstrates a high degree of planning and sophistication. Researchers observed the registration of three domains that mimic Alibaba Cloud and the Chinese cybersecurity firm Qianxin, all within a narrow 24-hour period. These domains were registered through the NameSilo registrar with WHOIS privacy enabled, obscuring the identity of the registrant. This pattern, coupled with code lineage that connects to previous Winnti ELF implants such as PWNLNX and the Linux KEYPLUG variant, provides strong evidence for attributing these activities to APT41.
The command and control design incorporates a sophisticated handshake mechanism designed to thwart automated scanning tools. The C2 server, located at IP address 43.99.48.196, will only respond fully to clients that present a specific token embedded within the initial EHLO string of the SMTP connection. Scanners such as Shodan or Censys, lacking this token, will only receive a standard SMTP banner and a benign 220 response before the connection is terminated. This ensures that the compromised host remains largely invisible in internet-wide scans, making detection significantly more challenging for defenders.
Once inside the cloud network, the Winnti backdoor facilitates lateral movement. It periodically sends User Datagram Protocol (UDP) broadcast beacons to 255.255.255.255 on port 6006. This allows other compromised hosts within the same network to discover each other. This peer-to-peer communication mechanism enables APT41 to coordinate actions and maintain control over a cluster of infected systems even if direct outbound C2 traffic is restricted or heavily monitored. This interconnectedness means that the compromise of a single instance can quickly lead to wider network infiltration.
To mitigate the risks posed by this evolving threat, Breakglass Intelligence recommends several key security measures. Organizations should implement stricter controls on outbound SMTP traffic originating from non-email workloads. Monitoring for unusual UDP broadcasts to port 6006 can help detect lateral movement. Additionally, auditing access to metadata services and local credential stores is crucial. Security teams should actively hunt for stripped, statically linked ELF binaries in common temporary file locations such as /tmp, /var/tmp, and /dev/shm, as these are frequent deployment locations for such malware. Cloud platforms are also urged to enforce enhanced metadata protection mechanisms, such as IMDSv2 on AWS, and to meticulously review IAM role usage, particularly from unexpected source IP addresses, to identify and contain this sophisticated Winnti campaign.

