Logo: Edge Computing Attack

Edge Computing Attack

Communautéit
brucesongs
edge-computing-attack

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 store abuse, secret leakage via edge logs, and bypass of origin WAF via edge script injection. Distinct from cloud-security (broader CSP control plane), container-security (Linux namespaces), and web-ssrf (origin-side issues).

Iwwersiicht

Editeurbrucesongs
Repositorykali-claw
Skill-Nummedge-computing-attack
Stären
70
Forks
18
Matgeliwwert Dateien
11
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 11 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    brucesongs huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Edge Computing Attack an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/brucesongs/kali-claw/tree/main/skills/edge-computing-attack
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brucesongs/kali-claw.git /tmp/kali-claw
mkdir -p .claude/skills
cp -r /tmp/kali-claw/skills/edge-computing-attack .claude/skills/edge-computing-attack
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Edge Computing Attack an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Edge Computing Attack automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Edge Computing Attack net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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:

  • Operator (CSP) is trusted to enforce isolation
  • Other tenants are NOT trusted (cross-tenant attacks possible)
  • Origin servers may be inaccessible directly (all traffic flows through edge)
  • Edge scripts have access to KV stores, secrets, and request/response bodies

This skill is distinct from:

  • cloud-security — which targets CSP control planes (IAM, EC2, S3) broadly
  • container-security — which targets Linux namespaces and cgroups
  • web-ssrf — which targets origin-side SSRF (edge-side SSRF has different rules)
  • api-security — which targets REST/GraphQL endpoints, not edge routing

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:

  • Cloudflare Workers: V8 isolate escape attempts, KV race conditions, Durable Objects abuse, Workers AI prompt injection, R2 storage abuse, Pages Functions injection
  • Fastly Compute@Edge: WASM sandbox bypass, WASI host-call misuse, secret store leakage, edge KV abuse
  • AWS Lambda@Edge / CloudFront Functions: token theft from env, origin WAF bypass via edge-managed headers, CloudFront function code injection
  • Akamai EdgeWorkers: bypass of edge-based ARL parsing, Property Manager manipulation
  • Vercel Edge Functions / Edge Config: env var leakage, Edge Config race conditions
  • Deno Deploy: V8 isolate escape, KV store race conditions
  • Universal edge patterns: cache poisoning, request smuggling (CL.TE / TE.CL via edge), TLS SNI manipulation, host header injection at edge, geographic DNS hijack prep

Use Cases

  • Cloudflare Workers KV race condition — concurrent reads/writes to same key to leak tenant data
  • Cloudflare Workers V8 isolate escape — exploit V8 bugs (or Workers-specific quirks) to break isolation
  • Cloudflare Durable Objects abuse — single-threaded object state to leak cross-tenant data
  • Cloudflare Workers AI prompt injection — indirect prompt injection via Worker to leak secrets
  • Fastly Compute@Edge WASM escape — exploit Wasmtime bug to escape sandbox
  • Fastly Secret Store leakage — read secrets via misconfigured token
  • AWS Lambda@Edge env var leakage — exploit logging side channel
  • AWS CloudFront Function code injection — inject JS into edge function
  • Akamai EdgeWorkers bypass — bypass ARL-based access control
  • Vercel Edge Config race — concurrent reads to expose other tenant's config
  • Deno Deploy KV race — concurrent KV operations to leak data
  • Origin WAF bypass via edge header manipulation — set X-Forwarded-For to bypass IP-based rules
  • Cache poisoning via edge — poison edge cache to serve malicious content to other users
  • Request smuggling at edge — CL.TE via edge HTTP/2 → origin HTTP/1.1 boundary

Differentiation from Adjacent Skills

SkillTargetBoundaryTypical entry
cloud-securityCSP control planeCloud IAMIAM enumeration
container-securityOCI, K8s, containerdLinux namespaceContainer escape
web-ssrfOrigin applicationOrigin networkURL parameter
api-securityREST/GraphQL endpointsAPI gatewayInjection
edge-computing-attack (this)Edge isolate / sandboxV8 / WASM boundaryEdge script exploit
dns-attacksDNS protocolDNS resolverDNS hijack, cache poison
cdn-cache-attackCDN cacheCache keyCache poison (overlaps)

Core Tools

Cloudflare Workers

  • wrangler — official Workers CLI; deploy, dev, KV, R2
  • miniflare — local Workers emulator for testing
  • cloudflare-api-cli — direct REST API access
  • workers-typescript-template — boilerplate for TS Workers

Fastly Compute@Edge

  • fastly-cli — official Compute@Edge CLI
  • wasmtime — local WASM runtime for testing
  • fastly-compute-starter — Rust/JS starter kits

AWS Lambda@Edge / CloudFront Functions

  • aws-cli — Lambda and CloudFront API
  • sam-cli — local SAM emulation for Lambda testing
  • cloudfront-testing-tools — request-response replay

Akamai EdgeWorkers

  • akamai-cli with edgeworkers plugin
  • akamai-sandbox — local EdgeWorkers emulator

Vercel Edge

  • vercel-cli — Vercel deployment CLI
  • next.js edge runtime testing

Deno Deploy

  • deno — Deno runtime
  • deployctl — Deno Deploy CLI

Universal

  • curl — edge protocol testing
  • Burp Suite — request/response tampering
  • Wireshark — packet capture (limited use; most edge is TLS)
  • vitesspa — Vite + SPA testing harness
  • chromium-headless — end-to-end browser testing

Methodology

Phase 1 — Reconnaissance

  • Identify edge platform via HTTP headers (Server: cloudflare, X-Fastly, X-Amz-Cf-Pop, X-Akamai-Transformed, X-Vercel-*)
  • Identify edge functions in use (timing analysis, behavior fingerprinting)
  • Map edge KV store usage (timing, error patterns)
  • Identify origin WAF patterns (security headers)
  • Map request routing (geo DNS, edge POPs)

Phase 2 — Edge Script Discovery

  • Inspect client-side JS for cf: / cdn-cgi/ indicators
  • Use Wrangler dev mode for local Cloudflare Workers inspection (if authorized)
  • Analyze edge function behavior via timing and error patterns
  • Identify Worker bundling via DevTools / source maps (often enabled)

Phase 3 — Tenant Isolation Testing

  • Deploy own Worker on same platform
  • Test for shared isolate patterns (timing, leak)
  • Test KV store race conditions
  • Test Durable Object cross-tenant access
  • Test Deno Deploy KV cross-tenant

Phase 4 — Edge Script Injection

  • Inject malicious edge script (if edge function has injection vuln)
  • Test edge function input validation (headers, query, body)
  • Test edge function source map leakage

Phase 5 — Cache and Routing Attacks

  • Cache poisoning via edge header manipulation
  • Request smuggling at HTTP version boundary
  • Geographic DNS hijack preparation
  • Host header injection at edge

Phase 6 — Origin WAF Bypass

  • Test edge header manipulation (X-Forwarded-For, X-Real-IP)
  • Test edge-based request rewriting
  • Test edge script that adds headers trusted by origin
  • Test CloudFront signed URL bypass

Phase 7 — Secret and Data Exfiltration

  • Edge KV store exfiltration via race condition
  • Edge logs containing secrets (Worker logs often include env vars)
  • Workers AI prompt injection for secret leak
  • Durable Objects state exfiltration

Phase 8 — Persistence

  • Persistent edge Worker via compromised deploy token
  • Persistent cache poisoning
  • Persistent KV store pollution
  • Persistent DNS hijack prep

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

  • Validate X-Forwarded-* headers at origin (don't trust blindly)
  • Rotate edge deployment tokens quarterly
  • Audit edge function code for injection
  • Use Cloudflare's API tokens (not Global API Key) for CI
  • Restrict Worker secrets to specific Workers via bindings
  • Enable Fastly Compute@Edge secret store ACLs
  • Use signed URLs for CloudFront protected content
  • Audit Vercel Edge Config access patterns
  • Apply Deno Deploy KV access controls
  • Monitor edge function logs for secret patterns

Detection Engineering

  • Edge function log anomaly detection (unexpected env var reads)
  • KV store race condition detection (concurrent operations)
  • Cache hit ratio anomaly (potential poisoning)
  • Edge function cold start anomaly (potential injection)
  • Edge-to-origin header consistency checks

Practical Steps

Cloudflare Workers Recon

bash
# 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

javascript
// 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

bash
# 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

bash
# 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

bash
# 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

  • Cloudflare Workers abuse: Anomalous Worker invocations; outbound fetch to attacker domains.
  • AWS Lambda@Edge anomalies: Function duration spikes; cross-region data egress from edge.
  • Origin IP discovery: Direct origin access bypassing CDN (signature: requests to origin IP from internet).

SIEM Detection Rules

  • Splunk SPL: index=cdn sourcetype=cloudflare:workers | stats count by script | sort -count | head 10
  • Cloudflare Analytics: Native bot/security analytics.
  • AWS CloudTrail: Lambda@Edge invocation logs; alert on cross-region data egress.

Defense Evasion Techniques

CDN Bypass

  • Direct origin access: Find origin IP via DNS history, leak in HTTP headers, SSL cert; bypass CDN/WAF.
  • Cache poisoning: Poison cached response; affect all users of cached resource.
  • Cache deception: Trick CDN into caching dynamic content with sensitive data.

Edge Function Exploitation

  • Worker script injection: Inject code into Worker via compromised account or supply chain.
  • Lambda@Edge privilege abuse: Use Lambda@Edge for global execution; harder to attribute.
  • Origin IP rotation: Use direct IP for exfil; CDN sees only legitimate traffic.

Cross-References

  • skills/cloud-security/SKILL.md — broader CSP control plane attacks
  • skills/container-security/SKILL.md — Linux container escapes
  • skills/web-ssrf/SKILL.md — origin-side SSRF (compare to edge-side)
  • skills/dns-attacks/SKILL.md — DNS attacks relevant to edge routing
  • skills/api-security/SKILL.md — API gateway attacks
  • skills/persistence-attacks/SKILL.md — edge-side persistence patterns
  • skills/cdn-cache-attack/SKILL.md — CDN-specific cache attacks

References

  • Cloudflare — Workers Security Model (2024)
  • Fastly — Compute@Edge Security Documentation (2024)
  • AWS — Lambda@Edge Security Best Practices (2024)
  • Akamai — EdgeWorkers Security Guide (2024)
  • Vercel — Edge Functions and Edge Config Documentation (2024)
  • Deno — Deno Deploy Threat Model (2024)
  • Bishop Fox — Edge Computing Attack Vectors (2024 whitepaper)
  • Black Hat USA — Cross-Tenant Attacks in Edge Platforms (2024)
  • MITRE ATT&CK — T1190 Exploit Public-Facing Application, T1552.007 Container and Cloud Instance Credentials API

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Edge Computing Attack?

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 store abuse, secret leakage via edge logs, and bypass of origin WAF via edge script injection. Distinct from cloud-security (broader CSP control plane), container-security (Linux namespaces), and web-ssrf (origin-side issues).

Firwat Edge Computing Attack op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Edge Computing Attack besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Edge Computing Attack an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/brucesongs/kali-claw/tree/main/skills/edge-computing-attack an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Edge Computing Attack benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Edge Computing Attack benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Edge Computing Attack domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Edge Computing Attack gratis?

Jo. brucesongs huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇