Skip to main content
akamaicookiesarchitecturesensor-data8 min readBy Catmouse Engineering

_abck Cookie in Akamai: bm_sz Seed and sensor_data Lifecycle

Last reviewed
Short answer

Akamai Bot Manager tracks client validation through a quartet of edge cookies (_abck, bm_sz, ak_bmsc, and bm_sv), using the tilde-delimited integers inside bm_sz to seed the dynamic sensor_data payload that transitions _abck from unvalidated (~-1~) to validated (~0~). Below: how the cookie state machine and sensor exchange work.

Who this is for

Security researchers and protocol engineers inspecting HAR captures on Akamai-protected origins who want to understand how _abck status flags, bm_sz seeds, and sensor_data POSTs fit together.

On this page
  1. What roles do _abck, bm_sz, ak_bmsc, and bm_sv play?
  2. How does the _abck cookie transition from ~-1~ to ~0~?
  3. Why do sensor_data POSTs fail to validate _abck?
  4. How does Akamai's cookie state machine compare with Kasada's header model?
  5. Key takeaways
  6. Conclusion and scope
  7. Evidence and sources
  8. Frequently asked questions

What roles do _abck, bm_sz, ak_bmsc, and bm_sv play?

Akamai Bot Manager is a client-side and edge telemetry system that partitions session state across four coordinated HTTP cookies on the initial document response.

When a browser requests a protected storefront page, the Akamai edge returns Set-Cookie headers (RFC 6265) establishing an unvalidated session context before the dynamic sensor script ever executes:

_abck (Bot Manager Validation Cookie)
The _abck cookie is a five-part tilde-delimited token (<encrypted-id>~<status>~<threshold>~<pow-challenge>~<tail>) that records whether the client has passed telemetry verification and any behavioral or proof-of-work thresholds.
bm_sz (Sensor Cryptographic Seed)
The bm_sz cookie is a four-part tilde-delimited string containing the session identifier and two dynamic integer seeds that the obfuscated sensor script reads via document.cookie to initialize its payload cipher.
ak_bmsc (Bot Manager Session Context)
A short-lived edge routing and traffic-classification cookie bound to the client's TCP/TLS connection and IP address.
bm_sv (Session Verification & Heartbeat Cookie)
Refreshed on subsequent XHR and navigation exchanges to track session age and request cadence.
Table 0. Who sets each name and what it does. Lifetimes are omitted: no cited source states them.
NameSet byPurpose
_abckAkamai edge on the first page response, then updated after a sensor_data POSTRecords validation status in its second tilde segment (-1 pending, 0 validated)
bm_szAkamai edge on the first page responseCarries the session identifier and the two integer seeds the sensor script reads to encode sensor_data
ak_bmscAkamai edge on the first page responseSession context for edge routing and traffic classification, bound to the connection and IP
bm_svAkamai edge, refreshed on later XHR and navigation exchangesTracks session age and request cadence

The sensor script reads the seed cookie from the browser jar, encodes environmental and behavioral telemetry into a JSON payload, and posts it to the dynamic script path.

On the first document response, the second tilde segment of _abck is -1 (for example, ...~-1~YAAQ...~-1~-1). Once the page loads the dynamic sensor script, the script executes an immediate initialization POST carrying baseline browser properties—screen dimensions, navigator properties, canvas/WebGL hashes, and execution timing—encrypted using the integer pair inside bm_sz.

Comparing _abck status codes versus edge enforcement

The table below compares the status codes observed in the second tilde-delimited field of the validation cookie:

Table 1. Akamai _abck second-segment status flags and edge behavior
_abck Status SegmentLifecycle StageEdge Enforcement on Protected POSTs
~-1~ (Initial / Pending)Issued on initial HTML GET or after a rejected sensor POSTProtected login or checkout endpoints reject the request or demand another sensor round
~0~ (Validated)Returned via Set-Cookie after the edge accepts sensor_dataProtected transactional endpoints allow the request when TLS and IP match
~-1~ with PoW challengeFourth tilde segment contains a non--1 challenge stringClient script must compute the proof-of-work solution and submit a follow-up sensor_data POST
Four-part diagram of Akamai Bot Manager _abck and bm_sz lifecycle: 1. Initial GET sets _abck (~-1~) and bm_sz (crypto seed). 2. Sensor script reads bm_sz and _abck from the cookie jar and POSTs JSON sensor_data to the dynamic sensor path. 3. Edge validates the payload and returns Set-Cookie with _abck (~0~) bound to TLS JA4 and client IP. 4. Tilde-delimited status segments and companion cookies (bm_sz, ak_bmsc, bm_sv) must remain synchronized in the cookie jar.
Figure 1. Akamai Bot Manager _abck state transition from ~-1~ to ~0~ using the bm_sz seed. Diagram by Catmouse Engineering.

Why do sensor_data POSTs fail to validate _abck?

Validation fails whenever the cookie jar drops required seed cookies, the TLS or HTTP/2 fingerprint changes between GET and POST, or the payload uses stale seed values.

Three protocol invariants for cookie jar and transport continuity

When debugging an HTTP trace in which the Akamai edge responds to a sensor POST with a cookie that still contains an unvalidated status flag, check three protocol invariants:

  1. Complete cookie jar continuity: The POST to the dynamic sensor endpoint must carry the exact _abck, bm_sz, and ak_bmsc cookies received on the preceding HTML GET, and the client must overwrite _abck with each intermediate MDN Set-Cookie response header (RFC 6265).
  2. TLS and HTTP/2 frame coherence: Akamai edge nodes record the client's TLS ClientHello and HTTP/2 SETTINGS frame on the initial document fetch (RFC 9113). Submitting sensor_data over a different TLS stack or a rotated proxy exit IP invalidates the trusted session immediately.
  3. Matching User-Agent and Client Hints: The User-Agent string and W3C High Resolution Time stamps embedded inside the encrypted sensor_data array must match the HTTP headers on the wire.

Akamai stores session trust inside the validation cookie, whereas in contrast Kasada returns a token header and requires per-request proof-of-work headers.

For targets protected by Kasada, the Catmouse API generates per-request proof-of-work headers directly over HTTP via POST /Solver/cd. The Python snippet below demonstrates how a client mints a fresh x-kpsdk-cd proof-of-work header using its universal USD wallet key:

import os
import requests

cd_resp = requests.post(
    "https://kasadaapi.catmouse.ai/Solver/cd",
    headers={"x-api-key": os.environ["CATMOUSE_KEY"]},
    json={
        "host": "www.example.com",
        "platform": "web",
        "ct": "0123456789abcdef0123456789abcdef",
        "telemetry": "real",
        "seed": "auto",
    },
    timeout=15,
)
print(cd_resp.status_code, cd_resp.text)

Key takeaways

  • _abck segment two indicates validation state: ~-1~ denotes an unvalidated or challenged cookie, while ~0~ indicates that the edge accepted the client's sensor_data submission.
  • bm_sz seeds the sensor cipher: The dynamic integer pair inside bm_sz must be parsed from the initial GET response before constructing sensor_data.
  • Preserve all four cookies and the TLS session: Keep _abck, bm_sz, ak_bmsc, and bm_sv in the same HTTP/2 session and sticky proxy exit IP.

Conclusion and scope

Tracking the tilde-delimited fields of _abck alongside bm_sz and ak_bmsc in your HAR captures makes it straightforward to pinpoint whether an Akamai session failed at initial seed extraction, proof-of-work challenge handling, or TLS/IP session continuity.

Scope and limitations. Per the Catmouse OpenAPI 3.1 contract (/openapi.json), the hosted Catmouse solver endpoints (POST /Solver/solve and POST /Solver/cd) support Kasada only and do not expose an Akamai solver engine. This teardown is published for educational protocol analysis and authorized security research as of 2026-11-03.

Evidence and sources

The HTTP specifications, cookie standards, and API contracts referenced in this article are supported by the primary sources below:

Methodology and limits. Derived from HAR inspection of public Akamai Bot Manager cookie headers and the Catmouse OpenAPI 3.1 contract. No performance benchmarks or pass rates are claimed. Reviewed 2026-11-03.

Frequently asked questions

What do the tilde-separated fields in the Akamai _abck cookie represent?

The Akamai _abck cookie contains five tilde-separated segments (<token>~<status>~<threshold>~<pow>~<tail>), where the second segment indicates validation status: -1 for an unvalidated initial cookie and 0 for a session validated by a sensor_data POST.

What is the purpose of the bm_sz cookie in Akamai Bot Manager?

The bm_sz cookie supplies the per-session cryptographic seed integers and obfuscation parameters read by the Akamai sensor script when encoding the sensor_data payload.

Why does _abck stay at ~-1~ after posting sensor_data?

An _abck cookie remains at ~-1~ if the client omits bm_sz or ak_bmsc from the cookie jar, mismatches its TLS JA4 or User-Agent header between the initial GET and the sensor POST, or sends stale script version constants.

How does Akamai Bot Manager Premier (BMP) mobile SDK differ from web _abck?

On iOS and Android, the Akamai BMP SDK collects native touch, accelerometer, and OS build telemetry and transmits it as an X-Akamai-BMP-Sensor-Data HTTP header rather than using browser _abck and bm_sz cookies.

Does the Catmouse API expose an Akamai solver endpoint?

No. Per the Catmouse OpenAPI 3.1 contract (/openapi.json), the hosted solver endpoints handle Kasada (POST /Solver/solve and POST /Solver/cd); Akamai Bot Manager mechanics are documented as a technical reference for security researchers.

What is the _abck cookie?

_abck is the Akamai Bot Manager validation token. It has five tilde-delimited parts. The second part is -1 while the session is pending and 0 after the edge accepts a sensor_data POST.

What is the ak_bmsc cookie?

ak_bmsc is the Akamai Bot Manager session context value. It supports edge routing and traffic classification and is bound to the connection and IP. Send it back together with _abck and bm_sz.