Skip to content
Pro lab

Egress Proxy Lab

The firewall decides what can connect. The web gateway decides where people and servers can go, and every rule you write there either stops something or breaks something. Take over egress for a fictional logistics company with a gateway the last admin left almost wide open, and build its policy one round at a time.

Your security lead tells you what got out after each push; the service desk lead reads you every ticket you caused. Stop the beacon, the fake invoice and the leaver’s upload without breaking the payment batch, the pinned meeting client or the CEO’s flight booking.

  • 6 rounds
  • 20 categories
  • TLS decryption exemptions
  • Upload DLP
  • Server egress
  • Seeded, shareable runs
  • Markdown policy export
0s
Seed …

This is the guided version: a yellow flash shows where to click and a bar says what to do. Switch to Free play any time.

GuidedRead the brief, then press Start the week.

Egress control · Halyard Freight

Your first week owning the web gateway: 0 rounds

A 1,800-person logistics company: depots, a customer portal, a payments API and a small engineering team. You inherit a secure web gateway that is almost wide open. Each round unlocks more of the policy: categories, group exceptions, TLS inspection, file types, upload DLP, new domains, and finally server egress. Dry-run the policy against a sample of real traffic, then push it. Every push replays all the traffic seen so far, so a change in round five can still break something from round one.

Noor Haddad · Network security lead

I own the threat side. I will tell you what got out after every push: beacons, droppers, data, all of it.

Marcus Bell · IT service desk lead

And I own the phones. Every legitimate request you break is a ticket, and I will read you each one.
    55%
    Threats stopped
    weighted by severity
    45%
    Productivity kept
    weighted by impact
    −6
    Per privacy breach
    decrypting banking or health

    How the gateway decides, in order

    1. 1Server posture. Servers on "allow-list only" reach listed hosts and nothing else.
    2. 2Block-list. A listed host is always blocked.
    3. 3Allow-list. A listed host skips the next three checks.
    4. 4New domain. Registered under the threshold: allow, warn or block.
    5. 5Category. The category action, unless the user's group has an exception. Unlisted sites use the uncategorised action.
    6. 6TLS. Decrypt, unless the category or host is exempt. Pinned apps fail if decrypted.
    7. 7File type. Executable downloads, if the gateway can see the file.
    8. 8Upload DLP. Sensitive uploads to personal storage and webmail, if the gateway can see them.

    To clear the week you need a 75% average, a passing final round, and no high-severity threat getting through on the final replay. A week that does not clear grades C at best; finish under par for a speed bonus. Pro: all six rounds, 1 request per round held back from the sample, hints after your second dry run. Rounds at this level: Categories → Groups → TLS & files → Data loss → New domains → Servers.

    Loading…

    Sample report · illustrative data

    Sample result: Egress Proxy Lab week

    Example week of tuning an invented company's egress proxy policy: categories, decryption, lists and group exceptions, replayed against simulated staff traffic after each round.

    How a round is scored

    Two parts
    A threat score (malicious and restricted requests stopped) and a productivity score (legitimate requests that still work), each weighted by impact
    Penalty
    Points are deducted for each privacy breach, such as decrypting online-banking or health traffic
    To clear the week
    75% average, a passing final round and no high-severity threat getting through on the final replay

    Round feedback (example)

    RoundThreats stoppedLegitimate requests brokenPrivacy issuesOutcome
    Round 1: first policy push3 of 520Below the bar
    Round 3: file-type and upload controls4 of 511Below the bar
    Final round: after tuning6 of 600Cleared

    Typical lessons in the per-request replay

    • A DLP control that is set but not decrypting cannot see inside the HTTPS upload.
    • Monitor mode logs an upload after it has left: evidence, not prevention.
    • Banking and health traffic should be exempt from inspection.
    • Threat categories are never exceptable, but a group exception can open a business need such as package registries for developers.

    Also produced

    A Markdown export of the final policy, the per-round scores and the replay.

    Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

    TL;DR

    What this lab is

    5 points
    • A secure web gateway lab: run egress control for a fictional 1,800-person logistics company across 6 rounds, starting from a policy the last admin left almost wide open.
    • You build the whole policy: 20 URL categories plus uncategorised sites, allow- and block-lists, group exceptions (Developers, Finance, Marketing, Executives), TLS inspection with decryption exemptions, file-type controls, upload DLP, newly registered domain handling and server egress.
    • Each round you dry-run the policy against a sample of unlabelled traffic, then push it. The replay shows, for every request, which rule matched and whether that was the right outcome, with the reason.
    • The traffic includes a C2 beacon to a days-old domain, malware disguised as a PDF, a customer list leaving for a personal cloud drive, DNS-over-HTTPS bypass, a lookalike sign-in page, a certificate-pinned app that breaks under inspection, developers pulling packages and the CEO booking flights.
    • Scoring weighs threats stopped (55%) against productivity broken (45%), with a penalty for decrypting banking or health sessions. Runs are seeded (?seed=) and the debrief exports your final policy as Markdown.

    Frequently asked questions

    What is the Egress Proxy Lab?

    A browser-based training lab where you own the web proxy, or secure web gateway, for a fictional company. Over 6 rounds you build its egress policy: URL categories, allow- and block-lists, group exceptions, TLS inspection and its exemptions, file-type controls, data loss prevention on uploads, newly registered domains and server egress. Every push replays all the traffic seen so far, so a change can stop a new threat and still break something from an earlier round.

    What is the difference between a firewall and a web proxy?

    A firewall decides which addresses and ports can connect. A forward proxy or secure web gateway sits on the web traffic itself and decides by host name, URL category, user and group, and, if it decrypts TLS, by content: file types, uploads and paths. Most organisations need both: the firewall forces web traffic through the proxy, and the proxy decides where people and servers may go.

    Does a proxy need TLS inspection to filter HTTPS?

    Not for host-level decisions. The gateway reads the server name from the TLS handshake (SNI) or the CONNECT request, so category, allow-list, block-list and newly-registered-domain rules work without decryption. Anything that depends on the payload does not: the true file type of a download, the contents of an upload, the URL path. The lab models exactly that split: the file-type and DLP controls are blind to HTTPS until you turn decryption on.

    Which sites should be exempt from TLS decryption?

    Two groups. Privacy-sensitive categories, usually online banking and health, because decrypting them exposes personal financial and medical data and is restricted by privacy law and many workplace agreements. And apps that break under interception: certificate-pinned clients (many meeting, security and mobile apps) and services using mutual TLS with a client certificate, such as some payroll and payment integrations. Exempt them by category or by host, and document the list.

    Why do certificate-pinned apps break behind a proxy?

    A decrypting proxy re-signs the server certificate with its own CA. Browsers trust that CA because it is deployed to managed devices, but a pinned app only accepts the specific certificate or key it was built to expect, so it treats the proxy as an attacker and refuses to connect. Mutual TLS fails for a related reason: the proxy cannot present the client certificate the server requires. The fix is a decryption exemption for that host.

    How should a proxy handle newly registered domains?

    Attackers register domains days before a campaign, and threat feeds lag behind. Blocking (or at least warning on) domains registered within the last 30 days stops a large share of fresh phishing and command-and-control infrastructure. Legitimate new domains, such as your own launch site or a new vendor, go on the allow-list. A shorter threshold, like 7 days, misses infrastructure that was registered a few weeks before use.

    Should uncategorised sites be blocked?

    It depends on your appetite for tickets, but "allow" is the riskiest default: brand-new and aged attacker domains are often uncategorised. Many teams block or warn on uncategorised sites and allow-list the small partners whose sites no vendor has categorised. A warning page is a useful middle ground for automated traffic, because malware cannot click through it, but it does not stop a person who has already decided to continue.

    How do I stop DNS-over-HTTPS from bypassing my DNS filtering?

    Block the DNS-over-HTTPS resolver category at the proxy so browsers fall back to the corporate resolver, disable DoH in managed browser policy, and block-list DoH endpoints that hide on general cloud-hosting domains when threat intelligence identifies them. The lab includes both the categorised resolver and an elite-level resolver that only a block-list entry catches.

    Why should servers have a separate egress policy?

    A laptop needs much of the internet; a server needs a handful of destinations: patch mirrors, the payment processor, backup storage, the SIEM, the package registry for CI. Putting servers on a default-deny allow-list turns a compromised web server's download of an attacker script, or its upload to someone else's storage bucket, into a blocked request. List hosts exactly: a wildcard on a shared cloud storage domain allows every other customer's bucket too.

    How is the lab scored?

    Each push is scored on every request seen so far: 55% for threats stopped, weighted by severity, and 45% for productivity kept, weighted by impact (the CEO and the payment batch weigh more than a news site). A warning page counts as stopping automated threats but not human-driven ones, and as friction on business traffic. Each decrypted banking or health session costs points. A week clears only if the round average is at least 75%, the final round scores at least 75% and the final replay lets no high-severity threat through; a week that does not clear grades C at best.

    How do difficulty and seeds work?

    Rookie runs five rounds with the full traffic sample and teammate hints after every dry run. Pro runs six rounds, holds back one request per round from the sample, and gives hints after the second dry run. Elite adds evasive variants (aged C2 domains, lookalikes of the corporate bank, mutual TLS, encrypted archives, a DoH resolver on a cloud domain), holds back two requests per round, and gives no hints. Every run comes from a seed in the URL, so a shared link replays the same traffic.

    Is any of this real?

    No. The company and people are invented, every host uses the reserved .example domain, internal addresses are private RFC 1918 ranges and destination addresses come from the RFC 5737 documentation ranges. The lab is vendor-neutral: it models how forward proxies and secure web gateways decide in general, not any one product's configuration.

    The tools people use most on PlayCISO.

    All tools