Exit to App
Security

Security Overview

Defense-in-depth security model: threat models, cryptographic bounds, and invariants.

MOI is engineered from first principles under the assumption that software agents and external RPC endpoints may be untrusted, compromised, or adversarial. Capital is safeguarded through a layered defense-in-depth model.

Threat Models & Architectural Mitigations#

Threat VectorPotential ImpactMOI Architectural Defense
Agent Compromise / Prompt InjectionUnauthorized capital transfer to attackerRestricted signer cannot transfer funds; target contracts restricted to 0xa9AA...
Front-Running / Sandwich AttacksSlippage loss on decentralized exchangesTextile RFQ firm quotes execute at guaranteed rateRay via direct limit reactor
Replay / Double-Spend AttacksDuplicate execution of a valid quoteSingle-use nonces, Permit2 expiration, and database uniqueness locks
Unauthorized Initial ExecutionAgent begins trading before owner reviewRule #2: Mandatory First-Trade Owner Authorization Gate
Cross-Tenant Data LeakageTenant B reads or executes against Tenant A treasuryEIP-4361 SIWE session with PostgreSQL Row-Level Security (RLS)
Sudden Market DislocationDepleting reserves in volatile devaluationsDynamic circuit breaker tripping on cumulative daily loss