Edge computing attack

From brucesongs/kali-claw · View interactive version

Edge computing attack is an AI agent skill from the GitHub repository brucesongs/kali-claw. Attacks against edge computing platforms — Cloudflare Workers (V8 isolate), Fastly Compute@Edge (WASM/Wasmtime), AWS Lambda@Edge and CloudFront Functions, Akamai EdgeWorkers, Vercel Edge Functions, and Deno Deploy. Covers V8 isolate escape, WASM sandbox bypass, request smuggling at the edge, edge KV

How to use this skill

Skill file

Edge Computing Attack

Supplementary Files:

- payloads.md — Attack payloads organized by edge platform: Cloudflare Workers (V8 isolate escape, KV abuse), Fastly Compute@Edge (WASM sandbox), AWS Lambda@Edge / CloudFront Functions, Akamai EdgeWorkers, Vercel Edge Functions, Deno Deploy

- test-cases.md — 18 structured test cases covering reconnaissance, edge script injection, KV/Kvstore abuse, isolate escape attempts, request smuggling, and origin WAF bypass

- guides/edge-computing-attack-playbook.md — End-to-end playbook with engagement scoping, lab setup (local Wrangler, Fastly CLI, SAM Local), attack workflows, and blue-team detection engineering

- guides/real-world-incident-case-studies.md — Eight case studies including the 2024 Cloudflare Workers KV incident, AWS Lambda@Edge CVE-2023-XX pattern, Fastly WASM breakouts, and Deno Deploy SSRF waves

Summary

This skill targets edge computing — where code runs in geographically-distributed nodes close to end users, typically in V8 isolates (Cloudflare Workers), WASM sandboxes (Fastly Compute@Edge), or restricted JavaScript engines (AWS CloudFront Functions, Lambda@Edge). The attack surface differs from origin-side attacks: edge platforms handle TLS termination, request routing, and caching, and their security model assumes a trusted-but-curious operator with strong tenant isolation.

Tools: wrangler, fastly-cli, sam-cli (SAM Local), gcloud edge, akamai-cli, vercel-cli, deno, vitesspa, chromium-headless, burp suite, postman, curl, jq

Domain: edge-computing

MITRE ATT&CK: T1190 Exploit Public-Facing Application · T1552.007 Container and Cloud Instance Credentials API · T1059 Command and Scripting Interpreter

Description

Attacks against edge computing platforms — Cloudflare Workers (V8 isolate), Fastly Compute@Edge (WASM/Wasmtime), AWS Lambda@Edge and CloudFront Functions, Akamai EdgeWorkers, Vercel Edge Functions, and Deno Deploy.

Edge platforms share common architecture: code runs in isolates (V8) or sandboxes (WASM), often co-located with hundreds of other tenants on the same physical machine. The threat model assumes:

This skill is distinct from:

Where container-security asks "can I escape this container?", edge-computing-attack asks "given that my Worker shares a V8 isolate pool with 10,000 other tenants, how do I leak their secrets via shared state, KV race conditions, or isolate escape?"

Coverage includes:

Use Cases

Differentiation from Adjacent Skills

| Skill | Target | Boundary | Typical entry |

|---|---|---|---|

| cloud-security | CSP control plane | Cloud IAM | IAM enumeration |

| container-security | OCI, K8s, containerd | Linux namespace | Container escape |

| web-ssrf | Origin application | Origin network | URL parameter |

| api-security | REST/GraphQL endpoints | API gateway | Injection |

| edge-computing-attack (this) | Edge isolate / sandbox | V8 / WASM boundary | Edge script exploit |

| dns-attacks | DNS protocol | DNS resolver | DNS hijack, cache poison |

| cdn-cache-attack | CDN cache | Cache key | Cache poison (overlaps) |

Core Tools

Cloudflare Workers

Fastly Compute@Edge

AWS Lambda@Edge / CloudFront Functions

Akamai EdgeWorkers

Vercel Edge

Deno Deploy

Universal

Methodology

Phase 1 — Reconnaissance

Phase 2 — Edge Script Discovery

Phase 3 — Tenant Isolation Testing

Phase 4 — Edge Script Injection

Phase 5 — Cache and Routing Attacks

Phase 6 — Origin WAF Bypass

Phase 7 — Secret and Data Exfiltration

Phase 8 — Persistence

Defense Perspective

Core Principles

  1. Edge is privileged — edge scripts see all traffic including TLS-terminated plaintext
  2. Tenant isolation is critical — KV, Durable Objects, Edge Config must enforce hard isolation
  3. Cache is shared state — cache poisoning affects other tenants
  4. Origin must NOT trust edge headers — X-Forwarded-For etc. can be set by attacker
  5. Logs are sensitive — edge logs often contain secrets in headers/body

Hardening Checklist

Detection Engineering

Practical Steps

Cloudflare Workers Recon

# Identify Cloudflare
curl -sI https://target/ | grep -i server
# Server: cloudflare

# Identify edge POP
curl -sI https://target/ | grep -i cf-ray
# CF-RAY: 85abc123.def-LAX (LAX = Los Angeles POP)

# Detect Worker
curl -s https://target/cdn-cgi/trace
# Identifies colo, request source, etc.

# Worker source map leak (often enabled)
curl -s https://target/script.js.map

Cloudflare Workers KV Race

// Deploy own Worker with KV binding
// Race condition: read-write-read pattern

// Worker code:
addEventListener('fetch', event => {
  event.respondWith(handleRequest(event.request));
});

async function handleRequest(request) {
  const key = 'shared_key';

  // Read value
  const initial = await KV.get(key);

  // Write attacker value
  await KV.put(key, 'attacker_value');

  // Read again quickly — may catch another tenant's write
  const after = await KV.get(key);

  return new Response(JSON.stringify({ initial, after }));
}

Fastly Compute@Edge Recon

# Identify Fastly
curl -sI https://target/ | grep -i "X-Fastly"
# X-Fastly: hit
# X-Served-By: cache-lax1234-LAX

# Detect Compute@Edge usage
curl -sI https://target/ | grep -i server
# Server: Fastly Compute

# WASM source map leak
curl -s https://target/.well-known/fastly/source

AWS Lambda@Edge Recon

# Identify CloudFront
curl -sI https://target/ | grep -i "X-Amz-Cf"
# X-Amz-Cf-Pop: LAX1-C1
# X-Amz-Cf-Id: ...

# Lambda@Edge logs in CloudWatch (us-east-1)
aws logs describe-log-groups \
  --region us-east-1 \
  --log-group-name-prefix "/aws/lambda/"

# CloudFront Function source
aws cloudfront list-functions
aws cloudfront describe-function --name REPLACE_WITH_YOUR_FUNCTION

Vercel Edge Recon

# Identify Vercel
curl -sI https://target/ | grep -i "X-Vercel"
# X-Vercel-Cache: HIT
# X-Vercel-Id: vercel-sfo1:abc-def

# Edge Config endpoint
curl -s https://target/_vercel/edge-config/_default

Detection Methods

CDN / Edge Function Logs

SIEM Detection Rules

Defense Evasion Techniques

CDN Bypass

Edge Function Exploitation

Cross-References

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.