Kasada bot detection evaluates traffic in under 2ms by combining an obfuscated JavaScript virtual machine challenge (/ips.js), TLS and runtime fingerprinting, and its AI Agent Trust edge framework. To access protected sites reliably, operators must either authenticate openly using RFC 9421 (Web Bot Auth) cryptographic signatures where merchant policy allows, or route stealth browser sessions through sticky carrier-grade 4G/5G mobile proxies.
Most scraping guides treat Kasada solely as a client-side reverse-engineering puzzle. That view became incomplete on January 21, 2026, when Kasada launched AI Agent Trust to enforce policy-based edge rules for automated agents. Understanding how Kasada separates verified AI agents from unverified scrapers determines whether you should sign your outbound requests with an Ed25519 key or build a headful browser pipeline backed by dedicated cellular modems.
How Kasada Bot Detection Works Under the Hood
Unlike traditional web application firewalls that fall back on visual CAPTCHAs, Kasada's bot defense architecture operates invisibly. Its engine relies on client-side sensor collection, client validation, a dynamic proof-of-execution challenge, and analytical models that flag automated sessions in less than 2ms.
While Kasada does not publicly document its internal header names or script paths in official product literature, Browserless's technical analysis of Kasada and third-party reverse-engineering writeups show how the challenge handshake operates in practice:
- Initial Interception (
HTTP 429or403): When an unverified client requests a protected document or API endpoint, the server returns an HTTP429or403status code alongsidex-kpsdk-*response headers. - The
/ips.jsVirtual Machine: The client must load an obfuscated JavaScript challenge script from a UUID-style path ending in/ips.js. This script executes inside a custom bytecode virtual machine that inspects the browser runtime for automation flags likenavigator.webdriverandHeadlessChrome, checks hardware timing, and computes a proof-of-work. - Minting
x-kpsdk-ctandx-kpsdk-cd: Passing the/ips.jscheck returns anx-kpsdk-ctclient token (which public reverse-engineering analyses indicate lasts around 30 minutes) and setsKP_UIDzsession cookies. Subsequent API requests must attachx-kpsdk-ct, a single-usex-kpsdk-cdheader carrying the proof-of-work answer, and anx-kpsdk-hsignature tying them together. - TLS and HTTP/2 Validation: Before the JavaScript VM even runs, the edge inspects the connection's
JA3/JA4TLS fingerprint and HTTP/2 framing. Standard HTTP libraries that default to HTTP/1.1 or expose known automated TLS handshakes are dropped immediately.
sequenceDiagram
participant Client as Browser + Mobile Proxy
participant Edge as Kasada Edge
Client->>Edge: GET target page (HTTP/2)
Edge-->>Client: 429 + load /ips.js VM
Client->>Edge: POST sensor & PoW payload
Edge-->>Client: Issue x-kpsdk-ct & KP_UIDz
Client->>Edge: Request API with x-kpsdk-ct/cd
Warning: Never replay a spent
x-kpsdk-cdheader across multiple requests. Becausex-kpsdk-cdcarries single-use proof-of-work data tied to yourx-kpsdk-cttoken, reusing it causes the target server to reject the request immediately.
Kasada AI Agent Trust and Web Bot Auth (RFC 9421)
In June 2026, Kasada was named a Leader in The Forrester Wave: Bot and Agent Trust Management Software, Q2 2026, scoring 5/5 in AI Agent Trust Management. This shift reflects a major change in how edge networks handle automation, moving away from pure IP blocklists toward cryptographic identity similar to how Arkose Labs evaluates agent trust.
Under Kasada's AI Agent Trust framework, automated traffic is classified by verification strength. At the bottom of the trust hierarchy sit easily spoofed signals like user-agent strings and static IP ranges. At the top sits cryptographic authentication via Web Bot Auth (draft-ietf-webbotauth-httpsig-protocol, revised September 1, 2026), an IETF Internet-Draft built on HTTP Message Signatures (RFC 9421).
As explained in WorkOS's guide to Web Bot Auth, an agent operator can prove identity without relying on IP allowlists by hosting a public JSON Web Key (JWK) Set over HTTPS on port 443 at /.well-known/http-message-signatures-directory with the Content-Type header set to application/http-message-signatures-directory+json. The agent then signs outbound requests using an Ed25519 private key and attaches three headers:
Signature-Agent: Points to the operator's key directory.Signature-Input: Defines the covered HTTP components and parameters.Signature: Contains the cryptographic signature.
When a merchant configures Kasada to permit verified agents, Web Bot Auth decouples bot identity from IP addresses. Kasada can enforce granular policy controls at the edge—such as granting read-only GET access to product catalogs while blocking POST checkout actions—allowing authorized agents to skip client-side challenge machinery.
Signing vs. Stealth: Choosing Your Architecture
No primary documentation or independent analysis confirms any mechanism where RFC 9421 signatures and x-kpsdk-ct tokens are evaluated together in a single combined handshake on mobile IPs. Instead, operators face a clear architectural fork depending on the target site's policy.
- If target permits authorized AI agentsSign requests with Ed25519 via Web Bot Auth (RFC 9421)
- If target blocks all declared botsDo not send Signature-Agent headers; use stealth browsers and mobile IPs
- If running high-volume public scrapingPair patched headful browsers with sticky 4G/5G carrier proxies
- If requests fail with 429 after token mintingCheck that x-kpsdk-cd is freshly generated and IP has not rotated
If you are building a declared commercial assistant and the merchant allows read-only agent access, implement Web Bot Auth. If you are scraping public pricing data from a site that blocks all non-human traffic regardless of signature, signing your requests simply identifies you for immediate edge blocking. In that scenario, your traffic must blend in with ordinary consumer sessions.
How Mobile Proxies and Browser Fingerprints Pass Inspection
When operating without cryptographic agent permissions, passing the /ips.js virtual machine is only half the battle. Even when your browser telemetry is clean, datacenter and cloud IPs fail because Kasada cross-references ASN data and IP reputation across its customer network. This is the same structural hurdle engineers face with sneaker and ticketing bots on high-security checkouts.
1. Carrier-Grade NAT (CGNAT) IP Reputation
Real 4G and 5G connections route traffic through Carrier-Grade NAT. Thousands of everyday smartphone subscribers on networks like Orange, Vodafone, or T-Mobile share the same public-facing IPv4 address. Blocking a carrier IP risks cutting off legitimate mobile shoppers, giving cellular ranges a structural advantage over static residential or datacenter subnets. You can provision Node Access plans to get a dedicated physical modem and SIM card per port—never a shared pool—starting at $40/month depending on the country (prices may change).
- Yes: Fast throughput
- No: Flagged immediately by ASN and subnet reputation
- No: High HTTP 429 block rate
- Yes: Consumer ISP ASNs
- No: Unpredictable mid-session disconnects
- No: Neighbor abuse taints IP reputation
- Yes: CGNAT carrier trust shared with real phones
- Yes: Full control over sticky session duration
- No: One location per physical modem
2. Sticky Sessions vs. Premature Rotation
The most common mistake engineers make when routing through mobile proxies is rotating the IP address on every request. Kasada binds your x-kpsdk-ct token and KP_UIDz session cookies to your client fingerprint and network session. If your IP changes mid-session while you continue sending the same x-kpsdk-ct token, the edge flags the anomaly.
Key takeaway: Hold a single mobile IP and browser profile fixed for the entire life of your
x-kpsdk-cttoken (~30 minutes). Only trigger a modem IP rotation when spinning up a fresh browser context.
With a dedicated modem, you control exactly when the carrier assigns a new IP. You can keep the same IP for hours during a long session, then trigger an IP rotation via an API call or personal refresh link before launching your next isolated browser profile.
3. Stealth Browser Runtime Alignment
Because /ips.js inspects the execution environment inside an obfuscated VM, standard headless browsers fail. Engineers typically rely on patched automation frameworks (such as Patchright, Camoufox, Nodriver, or SeleniumBase UC) running in headful mode, or isolated profiles configured via an AntBrowser SOCKS5 proxy setup. When targeting region-locked European e-commerce sites, pairing a matched locale profile with German 4G mobile proxies ($66/month per modem, subject to change) ensures your timezone, language headers, and carrier ASN align.
- 1Trigger Modem RotationCall the Node Access rotation API to get a fresh carrier IPAction GET refresh URLWait 5-10 seconds for reconnect
- 2Launch Clean Browser ContextStart a headful stealth browser with a fresh profileMode HeadfulProxy Dedicated SOCKS5 or HTTP port
- 3Solve Initial /ips.js ChallengeLoad the target page and allow the VM to post sensor dataExpected Cookies KP_UIDzExpected Header x-kpsdk-ct
- 4Execute Session RequestsKeep the mobile IP static while generating fresh x-kpsdk-cd values per requestSession Window Up to 30 minutesIP Rotation Disabled
- 5Teardown and RepeatClose the browser context completely before rotating the modem IP againStorage Clear cookies and local storage
FAQ
How do I know if a website is using Kasada bot detection?
Open your browser's Developer Tools, go to the Network tab, and inspect the initial document and XHR requests. A site protected by Kasada loads a heavily obfuscated JavaScript file from a UUID-style path ending in /ips.js, sets KP_UIDz cookies, and attaches x-kpsdk-ct, x-kpsdk-cd, and x-kpsdk-v headers to subsequent API calls. Blocked requests typically return an HTTP 429 or 403 status code.
Does Web Bot Auth bypass Kasada's /ips.js challenge?
Yes, when the target website's policy allows your agent. Web Bot Auth (RFC 9421) uses Ed25519 cryptographic signatures and a public key directory at /.well-known/http-message-signatures-directory to verify agent identity at the edge. If the merchant permits your verified agent under Kasada AI Agent Trust, your requests are governed by edge policy rules (such as read-only access) rather than browser proof-of-work challenges.
Why do my x-kpsdk-ct tokens get blocked after one request?
You are likely either reusing a spent x-kpsdk-cd header or rotating your proxy IP mid-session. While the x-kpsdk-ct client token remains valid for roughly 30 minutes, the accompanying x-kpsdk-cd header contains single-use proof-of-work data that must be freshly generated for each guarded request, and both must stay bound to the same IP and browser profile.
Should I use rotating or sticky mobile proxies for Kasada?
Always use sticky sessions during an active browser run, and rotate only between sessions. Keep your dedicated 4G/5G mobile proxy IP fixed while your browser solves /ips.js and uses the resulting x-kpsdk-ct token, then trigger an API rotation to get a fresh carrier IP before opening a new browser profile.