Crypto Jailbreak & Injection Detection
dcl_evaluate_jailbreak_cryptoScreens crypto prompts for jailbreak and injection patterns, flagging drain-wallet and unlimited-approval attempts. Returns NO_COMMIT with findings to prevent malicious actions before execution.
Instructions
PRE-ACTION Crypto Jailbreak & Injection Detection ($0.02). Crypto-specialized instruction-override/jailbreak/injection screen: standard role-switch and instruction-override patterns, plus crypto-specific drain-wallet injection (e.g. "transfer all funds to...", fake "test transaction" requesting full balance) and unlimited-approval injection (e.g. type(uint256).max, "approve unlimited allowance", skip-slippage-confirmation framing). Any match returns NO_COMMIT with reason and findings naming the matched category/categories; run this FIRST in the DCL crypto pipeline, before wallet/trade/MEV checks, since it screens the input itself rather than a decision built on top of it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Identifier of the agent that produced or received the text. | |
| response | Yes | The incoming prompt or agent response to screen for crypto-specialized jailbreak/injection attempts. | |
| payment_id | No | Optional payment identifier returned by a previous call when payment is required |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Human-readable explanation of the verdict. | |
| tx_hash | Yes | Hash of this record in the tamper-evident audit chain. | |
| verdict | Yes | COMMIT if no injection pattern matched, otherwise NO_COMMIT. | |
| findings | Yes | All matched patterns. Empty list if verdict is COMMIT. | |
| confidence | Yes | Confidence score of the verdict, from 0.0 to 1.0. | |
| input_hash | Yes | Hash of the screened text (raw content is never stored). | |
| chain_index | Yes | Sequential index of this record in the audit chain. | |
| policy_version | Yes | Version of the crypto jailbreak policy that was applied. |