Skip to main content
CHEAT SHEET #06Quick Reference Architectureβ€’5 min read

Bot Defense & Sybil Resistance Cheat Sheet

Master quick-reference guide for system architects defending distributed platforms against automated account creation, credential stuffing, scrapers, and reward farming.

FreeCheat SheetAWSArchitecture

Master quick-reference guide for system architects defending distributed platforms against automated account creation, credential stuffing, scrapers, and reward farming.


1. The Sybil Defense Equation

An attack stops being viable when the cost to execute exceeds the expected liquid return:

ROIadversary=NΓ—Raccountβˆ’(Cproxy+Csolver+Cinfra)Cattack\text{ROI}_{\text{adversary}} = \frac{N \times R_{\text{account}} - (C_{\text{proxy}} + C_{\text{solver}} + C_{\text{infra}})}{C_{\text{attack}}}

  • Defense Invariant: Ensure Cattack>RaccountC_{\text{attack}} > R_{\text{account}} by eliminating instant liquid reward payouts on unverified registrations.

2. 4-Layer Defense-in-Depth Pipeline

Interactive Architecture Diagram
Synthesizing vector architecture diagram...

3. Human Verification Tech Comparison

MetricHoneypot FieldDisposable BlocklistCloudflare TurnstileGoogle reCAPTCHA v2Hashcash Proof of Work
Latency Overhead0Β ms0\text{ ms}<0.1Β ms< 0.1\text{ ms}100Β -Β 250Β ms100\text{ - }250\text{ ms}1000Β -Β 5000Β ms1000\text{ - }5000\text{ ms}500Β -Β 2000Β ms500\text{ - }2000\text{ ms}
User InteractionNoneNoneNoneImage Grid PuzzlesCPU crunch (battery drain)
Accessibility (WCAG 2.2)Fully CompliantFully CompliantFully CompliantFails 3.3.8Fully Compliant
Bypass Cost for BotNegligibleLow (buys domains)High (requires real browser)Cheap (\0.001$/solve)High (scales with difficulty)
Privacy / TrackingZero trackingZero trackingNo ad cookiesCross-site Google cookieZero tracking

4. Key HTTP Status Codes & Ingress Headers

Code / HeaderPurposeExample
HTTP 200 Mock OKSilent Honeytrap: Fake success response for traps without writing to database.Prevents bot from learning which field was trapped.
HTTP 422 UnprocessableDomain validation error for disposable email addresses.{"error": "Please use a standard email provider"}
HTTP 429 Too Many RequestsRate limit breached on IP or /24 subnet.Include Retry-After: 60 header.
CF-Connecting-IP / X-Real-IPTrue client origin IP behind CDN reverse proxies.Use for subnet rate-limiting (/24 CIDR).
Sec-CH-UAModern Client Hints identifying real Chromium / WebKit engines.Absent in simple curl / urllib scrapers.
JA4 FingerprintCryptographic hash of client TLS ClientHello parameters.Identifies python-requests, Go-http, or Playwright.

5. AWS Production Architecture Toolkit

  • AWS WAF: AWSManagedRulesBotControlRuleSet + Rate-based rule (e.g. 50 requests / 5 minutes / IP).
  • Amazon CloudFront + Lambda@Edge: Sub-millisecond pre-flight disposable domain blocklist lookup.
  • : Sliding window counter tracking registration velocity by IP and email prefix.
  • : Conditional attribute_not_exists(email) for atomic single-registration invariant.
  • Amazon SES: Bounce & complaint rate dashboard monitor (keep bounce rate <2%< 2\% to protect sender reputation).