Cloudflare Security Lab: Access, WAF, Tunnel, Tokens
This is a hands-on Cloudflare security lab. You take over a fictional company's Cloudflare account and make 12 scored decisions on logins, API tokens, audit logs, Zero Trust Access, Tunnel, origin lockdown, DNSSEC, the WAF and rate limiting.
Feedback cites Cloudflare documentation. Read the secure Cloudflare architecture guide for the design behind the answers, or score your own account with the Cloudflare Security Checklist.
You are Priya Nair, the new security engineer at Harbourline Retail, a fictional company that put its public site, internal tools and DNS on Cloudflare years ago and never revisited the setup. Across 12 decisions you tighten the account: logins and roles, API tokens, audit logs, Access policies, device posture, Tunnel, origin lockdown, DNSSEC, the WAF and rate limiting. Each call is scored 0 to 10 and the feedback cites the Cloudflare documentation behind it. All names, domains and addresses are invented (example.com and documentation IP ranges).
Make it yours
Replace the sample names so the scenario and the debrief you export are about your organisation.
TL;DRWhat this is
5 points
- A scenario lab where you tighten the Cloudflare account of a fictional company, which holds its public site, internal tools and DNS.
- You make 12 scored decisions on: 2FA enforcement and roles, account API tokens versus the Global API key, audit logs, Access policies, the Bypass trap, device posture with the Cloudflare One Client, validating the Access token at the origin, Cloudflare Tunnel, origin lockdown (Authenticated Origin Pulls), DNSSEC, WAF managed and custom rules, and rate limiting.
- Each decision scores 0 to 10. Feedback cites the Cloudflare documentation read on 4 November 2026. Our own reasoning is labelled PlayCISO practice.
- Free to play. All names, domains and addresses are invented. The lab teaches what to set and why; it contains no attack steps.
- Read the secure Cloudflare architecture guide for the reference design, or score your own setup with the Cloudflare Security Checklist.
Frequently asked questions
What does the Cloudflare Security Lab teach?
It teaches how to secure a Cloudflare account and the things behind it: enforcing 2FA and keeping Super Administrators few, replacing the Global API key with scoped account API tokens, reading audit logs, putting Access in front of internal tools, using device posture, validating the Access token at the origin, connecting servers with Tunnel, locking down the origin, signing the zone with DNSSEC, and using the WAF and rate limiting.
Why is the Global API key scored low?
Cloudflare says the Global API key has access to all of a user's resources with the same permissions as the user, cannot be limited by IP address or expiry, and is not recommended for new customers. Account API tokens can be limited to specific permissions and resources, with an optional expiry, and keep working when the person who created them leaves.
Is Bypass ever correct in Cloudflare Access?
Sometimes, for a public endpoint such as a webhook path. Cloudflare warns that Bypass enforces no Access controls and does not log requests, and suggests Service Auth when you want enforcement and logging without user login. The lab scores a narrowly scoped, tested Bypass with origin-side checks as a last resort.
Do Authenticated Origin Pulls work with Cloudflare Tunnel?
No. Cloudflare says Authenticated Origin Pulls does not apply to hostnames routed through a Tunnel, because a tunnel is outbound-only and has no inbound listener to present a certificate to; origin traffic is already authenticated by the tunnel's connector credentials.
Is a WAF or rate limit enough on its own?
No. Cloudflare notes that rate limiting is not designed to let a precise number of requests reach the origin, because counters can lag by a few seconds. Managed rules reduce exposure to known attack techniques, but they do not replace patching or application-side controls.
Sources
All read on 4 November 2026. Lines marked “PlayCISO practice” are our own reasoning, not a vendor statement.
- Cloudflare Docs: Two-factor authentication
- Cloudflare Docs: Roles (account members)
- Cloudflare Docs: Create API token
- Cloudflare Docs: Account owned tokens
- Cloudflare Docs: Global API key
- Cloudflare Docs: Audit Logs
- Cloudflare Docs: Access policies
- Cloudflare Docs: Cloudflare One Client (formerly WARP)
- Cloudflare Docs: Device posture
- Cloudflare Docs: Validate JWTs (Access application token)
- Cloudflare Docs: Cloudflare Tunnel (private networking)
- Cloudflare Docs: Protect your origin server
- Cloudflare Docs: Authenticated Origin Pulls
- Cloudflare Docs: SSL/TLS encryption modes
- Cloudflare Docs: DNSSEC
- Cloudflare Docs: Web Application Firewall (WAF)
- Cloudflare Docs: WAF managed rules
- Cloudflare Docs: WAF custom rules
- Cloudflare Docs: Rate limiting rules
More security tools
The tools people use most on PlayCISO.
Catch injected instructions hiding in content your AI agent should only read.
Score your readiness against the first international standard for AI security threats.
Critical CVEs across 21 major vendors, month by month — and what the 2026 surge means.
Build an ordered ruleset, replay labelled packets and catch shadowed and any-to-any rules.
Self-assess all six Functions, from Govern to Recover, and see your weakest one.
Search 172 threat actors across Microsoft, CrowdStrike, Mandiant and community names.