Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› Cloudflare Tunnel Abuse
Threats, Abuse & Incident Response

Cloudflare Tunnel Abuse

← Back to Glossary
By NHI Mgmt Group Updated October 17, 2026 Domain: Threats, Abuse & Incident Response

Cloudflare Tunnel abuse is the misuse of a legitimate tunnelling service to expose internal systems or provide covert access to compromised hosts. Attackers use it to bypass inbound firewall restrictions and hide command-and-control channels, so defenders should review unexpected tunnel creation, destination changes, and unusual outbound connections.

What Cloudflare Tunnel Abuse Is Used For

Cloudflare Tunnel abuse turns a legitimate tunnelling capability into an access path that defenders may not expect. It is often used to reach internal services without opening inbound ports, or to maintain covert connectivity to a compromised host while blending into ordinary outbound traffic.

The security significance is not the tunnel itself, but the trust it inherits from a permitted service. Once an attacker can create or control a tunnel, they can reduce the visibility that normally comes from perimeter filtering and make the exposed host look like it is simply making an allowed outbound connection.

Why It Is Attractive to Attackers

This technique is useful because it helps bypass traditional inbound controls. A tunnel can hide command-and-control traffic, provide remote administration reachability, or support follow-on activity after initial compromise, especially where the environment allows outbound HTTPS-like traffic freely.

For defenders, the concern is that a tunnelling service may be treated as normal infrastructure even when it appears in an unusual context. Command and Control (C2) Guide covers how C2 channels, beaconing, egress filtering and tunnelling patterns fit into adversary infrastructure.

Cloudflare Tunnel abuse also fits the wider pattern of trusted-service abuse, where the attacker leverages an approved platform rather than introducing obviously malicious tooling. That makes policy exceptions, outbound allowlists and traffic baselining especially important.

How Organisations Detect Exposure

Exposure review starts with finding where tunnel software, tunnel credentials, or related agents exist, then confirming whether those assets are approved for the environment. Teams should compare inventory data with vendor administration records, because a tunnel that is legitimate in one team can still be suspicious on an unowned host or an unexpected subnet.

Detection should focus on unexpected tunnel creation, changes in destination routing, and unusual outbound connections from systems that normally have no reason to advertise internal services externally. Review of proxy logs, DNS activity, endpoint telemetry and cloud audit records can help identify when a tunnel is acting as a covert relay rather than a business-approved connectivity feature.

When tunnel abuse is suspected, threat hunting should also ask whether the tunnel is the access path or only the symptom of a broader compromise. A tunnel that appears after credential theft or endpoint compromise may be preserving attacker access rather than creating it.

Containment and Hardening After Discovery

The response priority is to remove the attacker’s reach, not just the tunnel process. That usually means revoking the tunnel configuration, isolating the affected host, validating who authorised the service, and checking whether any internal services were newly exposed through the tunnel.

Where a tunnel cannot be removed immediately, compensating controls should narrow what it can reach and who can manage it. Organisations should restrict outbound egress, apply explicit approval for tunnel creation, and ensure that any service or credential used to establish the tunnel is tightly scoped and monitored.

After containment, review whether the tunnel was used to reach admin interfaces, file shares, internal APIs, or remote shell capabilities. If the tunnel enabled compromise, the investigation should extend to the underlying host, adjacent credentials and any internal systems that may have been accessed through that path.

Risk and Threat Considerations

Cloudflare Tunnel abuse is risky because it turns legitimate remote-access plumbing into a stealthy bypass of perimeter assumptions. The same property that makes the service useful for normal operations, an authenticated outbound channel, also makes it attractive for covert access and C2.

Failure mechanism: An attacker either creates a new tunnel or hijacks an existing one, then uses it to route traffic through an approved service so that inbound filtering, perimeter monitoring and simple allowlist logic no longer reflect the true exposure of the host.

Impact: Internal services can become externally reachable without obvious port exposure, and compromised hosts can sustain hidden command-and-control, remote administration or lateral access until the tunnel is discovered and removed.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1090 — ProxyCloudflare Tunnel abuse functions as an adversary proxy or relay path.
Recommendation — Map suspicious tunnels to T1090 and hunt for relayed access and hidden C2.
NIST CSF 2.0DE.CM-01 — Networks and network services are monitored to detect potential cybersecurity eventsUnexpected tunnel use is detected through continuous network and service monitoring.
Recommendation — Monitor tunnel creation and outbound patterns for deviations from approved network behavior.
CIS Controls v8CIS-12 — Network Infrastructure ManagementTunnel abuse is controlled through managed network services, approvals and change oversight.
Recommendation — Restrict and review tunnel deployment under formal network infrastructure management.
NIST SP 800-53 Rev 5SC-7 — Boundary ProtectionTunnels alter boundary enforcement by creating alternate paths into internal services.
Recommendation — Apply boundary protections to limit what a tunnel can expose or relay.
OWASP Non-Human Identity Top 10NHI-06 — Insecure Cloud Deployment ConfigurationsAbused tunnels often expose internal services through misconfigured or overpermissive cloud exposure paths.
Recommendation — Review cloud exposure paths so tunnels cannot bypass intended deployment boundaries.

Practitioner Guidance

What to watch for: Treat tunnel creation, destination changes and agent installation as security-relevant events, not routine configuration noise. The key judgment is whether the tunnel is both authorised and consistent with the asset’s normal purpose, ownership and network pattern.

In practice, that means reviewing tunnel use alongside host identity, change records and outbound traffic history rather than inspecting the service in isolation. A tunnel on a production server that never needed external exposure deserves a different response from a sanctioned remote-support path.

Practitioner takeaway: The control question is not whether Cloudflare Tunnel is allowed in the organisation, but whether any specific tunnel is justified, visible and constrained enough that it cannot be repurposed for covert access.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org