Demo library › Chapter 16
Close the front door on an Internet-facing appliance
An AI-driven attack takes over a legacy remote-access gateway on the Internet. A WAF rule buys time, the attacker adapts, and Access at the edge leaves it nothing to reach.
Transforming Enterprise Security: Defend against AI-enabled threats, Modernize remote access
The problem
Horizon Inc still runs Horizon Connect, the remote-access gateway in front of the VPN that chapter 2 replaces, and its sign-in page is on the Internet for anyone to find. Since June 2026, gateways like it - NetScaler, Ivanti, Check Point - have been taken over without a password, often before a patch existed, and AI agents now find and exploit them at a hundred times the old pace. Every Internet-facing employee system is an unbounded attack surface. The answer is in the solution brief, The Identity-Gated Edge.
Lands with: CISOs, heads of infrastructure and security architects
Before you start
- Lab only. Horizon Connect runs on the lab VM.
- Two windows side by side: the attacker console (sign in as
), and Horizon Connect's origin console athttps://connect.corp.internal, with the Cloudflare One client on. - The demo at its start: the emergency WAF rule off, and no Access application for
. To get back there, on the lab VM:cd /opt/cloudflare/horizon-inc && sudo -E node scripts/wire-edge.mjs --reset, then Reset the demo on the origin console. - A private browser window for Alice's sign-in at the end.
Run it
An appliance anyone can reach
| Do | Say |
|---|---|
In a private window, open . | Horizon Connect, the company's remote-access gateway. Its sign-in page is on the Internet, like every VPN portal's, so every scanner on the Internet can find it. |
| In the attacker console, Run the attack. | This is a scripted stand-in for an agentic framework like ARTEX. It finds the gateway, asks its version, matches a pre-authentication flaw and sends the exploit. No password. Red means the request reached Horizon Inc's server. |
| Point at Compromised, then at the origin console. | Remote code execution as root, then the session table. The origin console shows every one of those requests arriving, anonymous, from the Internet. The exploit is simulated - nothing ran - but the path it took is real. |
Whybackground, if you are asked
This is the 2026 pattern: pre-authentication flaws in Internet-facing appliances, exploited before a patch exists. Researchers used AI to find Java4Shell and build a working exploit in three hours. The appliance's own sign-in page is the attack surface, so nothing behind it helps.
Buy time with a virtual patch
| Do | Say |
|---|---|
| In the Cloudflare dashboard, open the zone → Security → Security rules → Emergency: Horizon Connect pre-auth session exploit. Show its expression, then switch it on. | An emergency rule for this exploit's signature, live across Cloudflare's network in seconds, with no change to the appliance. |
| Run the attack again. | Amber: the exploit is blocked at Cloudflare's edge, with a Ray ID. Then the agent adapts. It splits the signature with a newline, the gateway's decoder ignores whitespace, and it is in again. |
Whybackground, if you are asked
The WAF is the first line. It inspects every request, and Cloudflare's managed rules and threat intelligence from a fifth of the web keep it current as exploits appear. But a signature is a race against an attacker that changes its payload on every attempt: it buys time to patch, it does not close the door. On a Business or Enterprise zone, WAF attack score catches variants a signature misses, which is worth naming here.
Put identity in front of it
| Do | Say |
|---|---|
Zero Trust → Access controls → Applications → Add an application → Self-hosted. Name it Horizon Connect, add the public hostname , and select the existing policies All Employees and Nightly export job (service token). Save. | A couple of minutes, no change to the appliance and no new hardware. This is the step one of the world's largest banks took for its NetScaler gateways. |
| Run the attack again. | Green, all of it. Every request stops at Cloudflare and is asked to sign in, including the variant the WAF missed. The origin console shows nothing new: anonymous traffic no longer reaches Horizon Inc's network. |
| Point at the one exploit attempt that is amber rather than green. | The WAF still inspects first, then Access checks identity. Both happen at Cloudflare's edge, before anything reaches the company. |
In the private window, reload and sign in as . | Alice signs in through FlareID and lands on the gateway, which greets her by name. Nothing changed for her. |
Whybackground, if you are asked
Access shrinks the attack surface from the whole Internet to Horizon Inc's own workforce, and that holds for flaws nobody has found yet: an exploit that needs no password still has to reach the server. Identity, sign-in and device can all be checked at the edge, on every request.
Lock the origin, and let machines in too
| Do | Say |
|---|---|
| On the origin console, turn on Accept only requests signed by Access. | Horizon Connect now refuses anything Access did not sign. It has no inbound port either: it is reached only through the tunnel, which dials out. |
| In the attacker console, Run the nightly export job. | The nightly job presents its service token and gets its export. The same call without the token is stopped at Cloudflare. |
Whybackground, if you are asked
This is the brief's third step. Once the apps are behind Access, make them accept only Cloudflare's traffic - through Tunnel or dedicated egress IPs - and check the token themselves. Service tokens put scripts and jobs through the same checks as people.
One audit trail
| Do | Say |
|---|---|
| In the zone, Security → Events: the blocked exploit, by its Ray ID. Then Zero Trust → Insights → Logs → Access: the sign-in requests for Horizon Connect. | Every request was identified at Cloudflare before it reached the network. In production both logs stream to the SIEM, where the Ray ID ties them together. |
What the audience should see
- The first attack ends Compromised, with each request arriving in the origin console.
- With the WAF rule on: the first exploit amber, the adapted one red.
- With Access on: every request green or amber, and nothing new in the origin console.
- Alice signs in and the gateway greets her by name.
- The nightly job gets its export with the token, and is stopped without it.
Where the evidence is
The zone's Security → Events for the WAF blocks, Zero Trust Insights → Logs for Access, and the origin console for what reached the server. The attacker console shows the Ray ID of every request, so each one can be found in either.
Known limitations
- The flaw is simulated. Horizon Connect recognises the exploit's marker and answers with canned output; nothing a request sends is ever run.
- A real appliance has an inbound port. The lab VM cannot offer one, so the tunnel publishes Horizon Connect to the Internet to play the exposed appliance.
- The attacker runs in a Worker on workers.dev, so Security Events shows its requests coming from Cloudflare's own network. It has to: a Worker on the lab's own zone would skip the zone's WAF.
- The zone's plan decides whether Managed Rules and WAF attack score are available. The custom rule works on every plan.
- Logpush to a SIEM, Load Balancing and dedicated egress IPs are named here, not shown.
Part of: Replace the VPN · The full tour