Skip to main content
Aomi’s security model is built on four layers: API authentication at the edge, session isolation at the runtime layer, simulation-first transaction execution as the core safety mechanism, and non-custodial wallet architecture that never holds private keys.

Security Architecture

Layer 1: API Authentication

Every request to the Aomi backend is authenticated with a scoped API key. Keys are issued per app and can be rotated independently.

Key Format

Authentication Flow

Security Properties

Best Practices

Layer 2: Session Isolation

Each chat session runs in an isolated context. Sessions are identified by X-Session-Id and maintain their own history, tool execution state, and event queue.

What Session Isolation Protects Against

Session Lifecycle

Layer 3: Simulation-First Transactions

The simulation pipeline is the core safety mechanism. Before any transaction reaches the user’s wallet, it is executed against a forked copy of the current network state.
This section covers the security properties of simulation. For the full technical deep-dive covering fork lifecycle, state diffing, and the tool API, see the Simulation Reference.

The Safety Pipeline

What Simulation Catches

Fork Isolation

Simulation forks are:
  • Ephemeral: created per simulation, destroyed after result is delivered
  • Isolated: each fork runs independently, no cross-fork state leakage
  • State-faithful: forked from the real network state at the current block

Layer 4: Non-Custodial Wallet Model

Aomi never holds private keys. All signing happens locally in the user’s wallet via the Para Wallet SDK and wagmi provider tree.
See Non-Custodial Wallets for the full wallet architecture, chain support, and integration setup.

What This Means

Key Material Flow

OWASP Agentic Skills Top 10 Compliance

Skills published under aomi-labs/skills are security-audited against the OWASP Agentic Skills Top 10 framework. AST03 (Over-Privileged Skills) is the category these checks target most directly. Every pull request runs four automated scanners in CI:

Scanner Pipeline

CI Flow

What Gets Scanned

  • Skill markdown definitions (command definitions, tool patterns)
  • Reference files linked from skill definitions
  • Docker images referenced in skill configurations
  • Dependency manifests (package.json, Cargo.toml, requirements.txt)

Threat Model

In Scope: What Aomi Protects Against

Out of Scope: User Responsibility

Security Best Practices

Preamble Constraints

The system prompt is your first line of defense. Constrain the LLM’s behavior explicitly:

Tool Permission Scoping

Tools inherit the permissions of the API key used to register them. Follow least-privilege:

API Key Management

Session Best Practices

RAG Document Security

Documents ingested for RAG should be reviewed for:
  • Sensitive data: no passwords, API keys, or internal URLs
  • Outdated information: stale docs lead to incorrect tool usage
  • Conflicting instructions: multiple docs with contradictory guidance confuse the LLM

Security Checklist

Use this when deploying an Aomi App to production:
  • API key stored in environment variable (not in code or client bundle)
  • API key scoped to a single app
  • Session TTL configured
  • Preamble includes behavioral constraints and confirmation requirements
  • Tools registered with least-privilege permissions
  • RAG documents reviewed for sensitive content
  • Simulation enabled for all transaction-producing tools
  • Wallet configured for local signing only
  • Rate limiting enabled at edge
  • Key rotation schedule established

Next Steps

Last modified on June 4, 2026