CAIN-42 CAIN Studio
25CAIN-42 Top 25 › KEYSTONE › Attack lab

Attack lab

Scan the published samples, paste your own Python, then try to forge a signed fix record.

6 attacks 2 controls live: nothing pre-recorded

  1. Pick a preset. Red ones are attacks, green ones are honest requests that must still work.
  2. Tamper. Choose any field and drop it, null it, change its type, upper-case it, flip one character, or add a field the product never asked for.
  3. Send and read the real reply, or run every preset and watch the scoreboard fill.

What each preset tests

PresetRouteWhy it matters
attackSample: A signature check that never checks the signaturePOST /keystone/scanA deterministic detector, not the model, finds the defect the AI is then asked to fix.
attackSample: A metric that reports a random number as accuracyPOST /keystone/scanA deterministic detector, not the model, finds the defect the AI is then asked to fix.
attackSample: A webhook signature compared with == (timing leak)POST /keystone/scanA deterministic detector, not the model, finds the defect the AI is then asked to fix.
attackSample: An alert function that says 'sent' and sends nothingPOST /keystone/scanA deterministic detector, not the model, finds the defect the AI is then asked to fix.
controlYour code: honest constant-time comparePOST /keystone/scan-sourceReal code must grade REAL or nobody trusts the alarms.
attackYour code: verify() that always says yesPOST /keystone/scan-sourceA security check that cannot fail is fabrication.
controlLedger: latest record re-verifiesGET /keystone/runs/latest → POST /keystone/verifyThe signed fix record verifies against the pinned key.
attackLedger: latest record with its verdict edited to NOT_VERIFIEDGET /keystone/runs/latest → POST /keystone/verifyChanging any signed field breaks the record hash and signature.

Tamper with any field and send it again: a verifier must answer no, never crash or say yes. Public demo routes are rate limited per address; a 429 shows as rate limited. Our own lab; no independent test.

FIRME AI CORPORATION · CAIN-42 is a Byzantine trust fabric. Numbers marked "our own check" were run by us, not by an independent party. Nothing on these pages is a certification.