🛡️ Cloud Armor Study Lab

Interactive Vulnerability & WAF Verification Portal

Origin: cloud-armor-demo-service (asia-southeast2) Client IP: 216.73.217.13
Active Request Path: Browser (216.73.217.13) → gcp2-xlb (gcp2demo01.iphamsterviel.org) → Cloud Armor (cloud-armor-study-policy-01) → Serverless NEG → Cloud Run (Yes (gcp2-xlb))
View Raw JSON Status

Executive Vault Sign-In (SQL Injection Study Tab)

This login form authenticates against an in-memory SQLite table using an unparameterized SQL query. Test how an SQL Injection payload logs directly into the Next Page (/portal/dashboard) when Cloud Armor is detached, and how Cloud Armor Priority 2000 (sqli-v33-stable) blocks it at the edge with HTTP 403 Forbidden when attached.

How to Compare Pre-Armor vs. Post-Armor in Your Browser

Why do you see 403 Forbidden right now when clicking the SQLi preset?
Because Cloud Armor policy cloud-armor-study-policy-01 is currently attached & enforced on gcp2-xlb! When you submit admin' OR '1'='1, Google Cloud Armor intercepts the request at the load balancer edge and blocks it before it ever reaches Cloud Run.

Step 1 — See the Vulnerability Succeed (Pre-Armor):

Detach the policy in Google Cloud Console → Cloud Armor → Policies → cloud-armor-study-policy-01 → Targets → Remove (or run ./scripts/toggle_armor.sh detach), wait ~60s, then click Fill SQLi Auth Bypass and Sign In. You will bypass authentication and enter the Executive Vault Next Page as admin!

Step 2 — See Cloud Armor Block the Attack (Post-Armor):

Re-attach cloud-armor-study-policy-01 to cloud-armor-demo-backend-svc (or run ./scripts/toggle_armor.sh attach). Now:

  • Valid Login (demo_user / CloudArmor2026!): Allowed by Cloud Armor (HTTP 200) and enters the Next Page!
  • SQLi Bypass (admin' OR '1'='1): Blocked at the edge by Priority 2000 (sqli-v33-stable) with HTTP 403 Forbidden!

Seeded Study Accounts in SQLite

Username Password Clearance
admin (Secret — target for SQLi bypass) LEVEL_5_EXECUTIVE_VAULT
demo_user CloudArmor2026! LEVEL_1_STANDARD
indrapn ArgolisStudy!2026 LEVEL_4_ARCHITECT

Search & Feedback Wall (OWASP XSS WAF Rule Study)

Tests how reflected HTML/JavaScript vectors in query parameters are handled before and after attaching Cloud Armor Priority 2000 (xss-v33-stable).

Enforcing Rule: Priority 2000 (xss-v33-stable)

evaluatePreconfiguredWaf('sqli-v33-stable', {'sensitivity': 3}) || evaluatePreconfiguredWaf('xss-v33-stable', {'sensitivity': 2})

When Cloud Armor is detached, submitting <script>alert("XSS-Study-Test")</script> reaches the Cloud Run origin and opens the /search results page showing an unfiltered XSS detection banner. When Cloud Armor is attached, the GFE blocks the request at the edge with HTTP 403 Forbidden.

Document Viewer & Ping Utility (OWASP LFI & RCE WAF Study)

Safe, sandboxed simulation of file path lookup and diagnostic command parameters protected by Cloud Armor Priority 2100 (lfi-v33-stable & rce-v33-stable).

Enforcing Rule: Priority 2100 (lfi-v33-stable & rce-v33-stable)

evaluatePreconfiguredWaf('lfi-v33-stable', {'sensitivity': 2}) || evaluatePreconfiguredWaf('rce-v33-stable', {'sensitivity': 2}) || evaluatePreconfiguredWaf('scannerdetection-v33-stable', {'sensitivity': 2})

Note: This tab simulates file path and command parameter inspection against an in-memory dictionary for OWASP WAF testing. To perform real network ping and curl from Cloud Run to an internal VPC GCE VM, open Tab 6 (Internal VPC Tester)!

Custom CEL Policy Verification (Priority 1000 & 1100)

Test Cloud Armor Custom Common Expression Language (CEL) rules directly from your browser using fetch() with custom HTTP headers and query strings.

Custom CEL Expressions Configured on gcp2-xlb

Priority 1000 — Protect /admin/*:

request.path.startsWith('/admin') && (!has(request.headers['x-admin-token']) || request.headers['x-admin-token'] != 'study-secret-2026')

Priority 1100 — Block Test Marker Header or Query:

(has(request.headers['x-policy-test']) && request.headers['x-policy-test'] == 'block-me') || request.query.contains('policy_test=block')

Interactive Rate-Limiting Burst Simulator (Priority 3000 — /api/ping)

Fires 18 rapid requests from your browser to GET /api/ping. Pre-Armor: All 18 requests return HTTP 200 OK. Post-Armor: Cloud Armor Priority 3000 (throttle at 10 requests per 60s per client IP) allows the first 10 requests and throttles excess requests at the edge with HTTP 429 Too Many Requests.

Ready to run burst test

Box 1: ICMP Ping Test

Test outbound ICMP ping (plus TCP reachability probe) from this Cloud Run instance (cloud-armor-demo-service in asia-southeast2) to any target internal VPC IP or hostname.

Box 2: HTTP / HTTPS Curl Test

Test outbound HTTP / HTTPS curl requests from this Cloud Run instance (cloud-armor-demo-service in asia-southeast2) to any target internal VPC IP, hostname, or URL.

Cloud Run Container Network Interfaces & Routing Table

Live output of ip -brief addr and ip route inside this Cloud Run container. When Direct VPC Egress is attached, the assigned VPC subnet interface will appear here.

Click "Refresh Container Interfaces" or open Tab 6 to inspect active container network interfaces...