Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Cloudflare Tunnels Abused in New Malware Campaign

A threat actor is abusing Cloudflare Tunnels for the delivery of a Python loader as part of a complex infection chain.

Securonix has uncovered a malware distribution campaign that abuses Cloudflare Tunnel to host payloads on attacker-controlled subdomains.

Dubbed Serpentine#Cloud, the campaign relies on a complex infection chain involving shortcut (LNK) files and obfuscated scripts to deliver a Python-based loader that can execute a Donut-packed PE payload in memory.

Early attacks linked to this campaign relied on URL files for payload execution, but later transitioned to using BAT files, often in ZIP archives, to fetch and execute payloads from Cloudflare tunnels.

In more recent attacks, LNK files disguised as PDF documents have been used for payload delivery. Victims are served these files via phishing emails featuring payment and invoice themes, with links to a ZIP file containing the LNK file.

Cloudflare tunnels provide remote access to resources, like VPNs, and threat actors are increasingly abusing them for malware delivery, as it allows them to remain anonymous while bypassing network protections and detection, since traffic comes from a legitimate service.

As part of the Serpentine#Cloud campaign, the LNK file served to potential victims was observed triggering a complex infection chain that relied on robocopy to fetch a Windows Script File (WSF) from a remote WebDAV share hosted on Cloudflare’s tunnel infrastructure, and continued with script execution via Windows Script Host (WSH).

The infection sequence continued with the execution of an obfuscated batch file that fetches Python-based malware, establishes persistence, hides the malware’s directories, and then executes it.

The malware is a shellcode loader that uses “Early Bird APC injection to stealthily execute shellcode within a newly spawned process”, Securonix explains. The executed shellcode resolves into a Windows PE file that turns out to be either a common or open source RAT, such as AsyncRAT or RevengeRAT.

Advertisement. Scroll to continue reading.

Serpentine#Cloud is not the first malicious operation to abuse Cloudflare tunnels for backdoor infection. Last year, Proofpoint flagged a similar campaign that distributed AsyncRAT, GuLoader, Remcos, VenomRAT, and Xworm.

Related: ClickFix Attack Exploits Fake Cloudflare Turnstile to Deliver Malware

Related: In Other News: Cloudflare Abuse, UK and EU Cybersecurity Reports, FBI Gen-AI Alert

Related: New Ransomware With RAT Capabilities Impersonating Sophos

Related: Microsoft Warns Accounting, Tax Return Preparation Firms of Remcos RAT Attacks

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Learn how the LOtL threat landscape has evolved, why traditional endpoint hardening methods fall short, and how adaptive, user-aware approaches can reduce risk.

Watch Now

Join the summit to explore critical threats to public cloud infrastructure, APIs, and identity systems through discussions, case studies, and insights into emerging technologies like AI and LLMs.

Register

People on the Move

Coro, a provider of cybersecurity solutions for SMBs, has appointed Joe Sykora as CEO.

SonicWall has hired Rajnish Mishra as Senior Vice President and Chief Development Officer.

Kenna Security co-founder Ed Bellis has joined Empirical Security as Chief Executive Officer.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.