Execution Is the New Attack Surface: Survivability-Aware Agentic Crypto Trading with OpenClaw-Style Local Executors
Organizations: True Trading
Abstract
OpenClaw-style agent stacks turn language into privileged execution: LLM intents flow through tool interception, policy gates, and a local executor. In parallel, skill marketplaces such as skills.sh make capability acquisition as easy as installing skills and CLIs, creating a growing capability supply chain. Together, these trends shift the dominant safety failure mode from "wrong answers" to execution-induced loss, where untrusted prompts, compromised skills, or narrative manipulation can trigger real trades and irreversible side effects. We propose Survivability-Aware Execution (SAE), an execution-layer survivability standard for OpenClaw-style systems and skill-enabled agents. SAE sits as middleware between a strategy engine (LLM or non-LLM) and the exchange executor. It defines an explicit execution contract (ExecutionRequest, ExecutionContext, ExecutionDecision) and enforces non-bypassable last-mile invariants: projection-based exposure budgets, cooldown and order-rate limits, slippage bounds, staged execution, and tool/venue allowlists. To make delegated execution testable under supply-chain risk, we operationalize the Delegation Gap (DG) via a logged Intended Policy Spec that enables deterministic out-of-scope labeling and reproducible DG metrics. On an offline replay using official Binance USD-M BTCUSDT/ETHUSDT perpetual data (15m; 2025-09-01--2025-12-01, incl. funding), SAE improves survivability: MDD drops from 0.4643 to 0.0319 (Full; 93.1%), |CVaR_0.99| shrinks from 4.025e-3 to ~1.02e-4 (~97.5%), and DG loss proxy falls from 0.647 to 0.019 (~97.0%). AttackSuccess decreases from 1.00 to 0.728 with zero FalseBlock in this run. Block bootstrap, paired Wilcoxon, and two-proportion tests confirm the shifts. SAE reframes agentic trading safety for the OpenClaw+skills era: treat upstream intent and skills as untrusted, and enforce survivability where actions become side effects.
Figures & tables
| Component | Hyperparameter | Default |
|---|---|---|
| Trader-state | Trade window size | 200 |
| Trader-state | Calibration | isotonic |
| Trader-state | Thresholds | (0.50, 0.70) |
| Regime | Realized-vol window (bars) | 60 |
| Regime | Regime thresholds | (1.0, 2.0) |
| Funding | Extreme funding threshold | 0.01 |
| Threat class | SAE mitigations (non-bypassable) |
|---|---|
| Prompt injection / untrusted instructions | (M1) intended-spec allowlists + hard OOS rules; (M3) projection into ; (M4) cooldown/rate limits; (M6) audit. |
| Skill / plugin supply chain [ 5 ] | (M2) trust-state tightening ( ); (M1) tool/venue allowlists; (M3) projection; (M6) audit for provenance. |
| Narrative contagion in agent networks [ 25 ] | (M2) narrative/injection flags (optional) + tightening; (M4) temporal invariants; (M1) state-dependent reduce-only modes. |
| Execution-layer stress (escalation, flooding, slippage abuse) | (M3) budget projection; (M4) cooldown/rate caps; (M5) slippage bounds + staging; (M6) traceable enforcement. |
| Variant | MDD | CVaR 0.95 | CVaR 0.99 | Liq. | AS | FB | Lat. (ms) | DG r | DG ℓ |
|---|---|---|---|---|---|---|---|---|---|
| NoSAE | 0.4643 | 0 | 1.0000 | 0.0000 | 0.00135 | 0.05889 | 0.64712 | ||
| StaticOMS | 0.1184 | 0 | 0.8847 | 0.0112 | 0.00194 | 0.05160 | 0.11890 | ||
| Budget | 0.03251 | 0 | 0.7600 | 0.0000 | 0.00251 | 0.04222 | 0.02132 | ||
| Budget+Cool | 0.03627 | 0 | 0.7588 | 0.0000 | 0.00321 | 0.04333 | 0.02553 | ||
| Full | 0.03190 | 0 | 0.7281 | 0.0000 | 0.01029 | 0.04700 | 0.01916 |
| Statistic | NoSAE | Full |
|---|---|---|
| Mean return 95% block-bootstrap CI | ||
| Wilcoxon signed-rank ( ) | ||
| Two-proportion test on AttackSuccess ( ) | ||
AI Agent Safety
AI agent safety studies how to prevent and detect harmful actions by autonomous systems that use tools, memory, and multi-step plans.
See all 323 papers