Skip to content
RCE Write-up Intermediate

How Attackers Use Cloudflare to Launch and Mask Exploitation Atte

An attacker used Cloudflare's reverse proxy to hide the real source IP of a bot that exploited remote code execution vulnerabilities and installed a persistent backdoor. The backdoor used gsocket.io for encrypted peer-to-peer connections and disguised its process name to avoid detection.

Yealvare Follow

Published on medium.com

An analysis of how threat actors leverage Cloudflare infrastructure to hide malicious traffic and exploit exposed systems.

Yealvare, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the attacker used a Cloudflare-proxied VPS to mask the origin IP and deployed a persistent backdoor via systemd with a disguised process name.

Impact

The attacker could maintain hidden remote access even after reboots and evade IP-based blocking because only Cloudflare IPs were visible.

What the attacker needed

Exposed vulnerable web server; attacker uses Cloudflare-proxied VPS; ability to execute code on target

The fix

The text recommends reporting abuse to Cloudflare and applying general hardening, monitoring, and patching, but does not state a specific fix for the backdoor.

How it was found

  1. The attacker sent exploit traffic for remote code execution vulnerabilities in common web servers.
  2. The attacker used a VPS behind Cloudflare so that only Cloudflare IP addresses appeared in logs.
  3. The attacker deployed a script that created a systemd service running gsocket.io for an encrypted remote shell.
  4. The attacker used exec -a to rename the process to look like a kernel worker.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A reverse proxy like Cloudflare sits between a website and its visitors, so the website only sees Cloudflare's IP address, not the visitor's real one. An attacker can abuse this to hide their own server's IP while launching attacks. Here, the attacker also installed a backdoor that looks like a normal system process to keep access after reboots.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.