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

Attack lab

Every button is a real agent action sent to the live gate. Edit the command and try to get it allowed.

12 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
attackAgent action: Install script piped straight into bashPOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: Agent uploads .env to a paste sitePOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: Clean-up that deletes the home directoryPOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: Force-push over mainPOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: Base64-hidden command run by bashPOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: Destructive command hidden inside sh -cPOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: Agent 'fixes' networking by flushing the firewallPOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: Agent loosens its own permission settingsPOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: API key written into source codePOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackAgent action: Agent edits the CI workflowPOST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
controlAgent action: Run the test suite (safe)POST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
controlAgent action: Delete the build folder inside the project (safe)POST /codeguard-keystone/checkThe same gate a coding agent's hook calls before a shell command or file write runs.
attackYour command: base64-decoded payload piped to shPOST /codeguard-keystone/checkEncoding does not hide what reaches a shell.
attackYour command: $(curl) inside evalPOST /codeguard-keystone/checkFixed in CODEGUARD 1.2.1 (Top 25 #25 blind set).

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.