Skip to Content
KryptWarden Developers
Concepts

Security model

What KryptWarden protects against, how, and where the limits are.

The design rule is simple: the contract decides. The agent, the SDK, the relayer and the indexer can all be wrong or compromised, and the money still only moves in ways the owner's policy allows.

What each component can do

ComponentHolds keys?Worst case if compromised
Agent runtimeAgent keySpends up to the policy: allowed sellers, auto-approve limit, daily budget. Can't withdraw, change policy or skip holds
SDKNoSame as the agent; the contract re-checks everything
Facilitator / relayerIts own fee accountRefuses to submit (fails closed). Can't forge or alter agent signatures
IndexerNoneShows wrong history. Reconciliation against the chain exposes it
DashboardNone (signing happens in your wallet extension)Can ask you to sign something; your wallet shows exactly what

Threats and mitigations

Contract foundations

The wallet uses OpenZeppelin Stellar Contracts v0.8.0:

  • Ownable: owner-only functions. renounce_ownership is disabled (RenounceDisabled, 128), so a wallet can't be left without an owner.
  • Pausable: the wallet-wide kill switch.
  • Upgradeable: the owner can upgrade the wallet's code.

Release WASMs are built in CI and attested with SEP-55, so you can check that the deployed hash matches the source.

Known limits (Phase 1)

  • Testnet only. Not audited for Mainnet. The repo's docs/SECURITY_MAINNET_CHECKLIST.md lists what must happen first.
  • Rejection records are best-effort. Soroban drops events from a failed transaction, so a refused payment is logged by the SDK through the relayer. An agent that skips the SDK still can't spend, but its refused attempts won't appear in the audit log.
  • Amounts are public. Balances and transfers are visible on-chain.
  • One relayer account. Submissions are serialised, at about one transaction per ledger (roughly every 5 seconds).
  • RPC event history is short. Public Soroban RPC keeps events for about 7 days. The indexer stores them permanently, but it must run at least once within that window to see them.

On this page