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).

Advertisement. Scroll to continue reading.

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.

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.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

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.

Join as speakers examine the various components of ASM strategy, the push to mandate continuous asset visibility and inventory tools, and the use of red-teaming, bug bounties and pen-tests in modern security programs.

Register

Explore what it takes to operationalize continuous authorization at scale, including the technical, organizational, and cultural changes required.

Register

People on the Move

Doppel has named Joey Rachid as Chief Security Advisor and Field Chief Information Security Officer.

Delinea has appointed Timothy Regan as Chief Financial Officer.

Gwen Gann has become State Chief Information Security Officer for the State of Washington at WaTech.

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.