Aroha
Get started
All documentation

DocsSecurity

Security Review Scope

Owner: Security Agent
Version: 1.0 — 2026-05-28
Status: Draft — auditor not yet selected
Target start: not scheduled
Verification: This document is complete when an auditor is selected and a statement of work is signed.


Objective

Execute an independent security review of the Aroha 1.0 reference implementation to:

  1. Surface unknown vulnerabilities before ecosystem growth increases attack surface.
  2. Produce a public audit status bulletin for the trust page.
  3. Build a remediation backlog with severity, owner, and SLA for every finding.

Scope

In Scope

ComponentWhy
packages/aroha-coreCore protocol: envelope signing, DID operations, saga state machine
packages/aroha-credentialsVerifiable credential issuance and verification
packages/aroha-registryAgent registration and capability discovery
@aroha-sdk/orchestrator (published on npm; source not in this repository)Saga coordinator logic — most complex failure mode surface
packages/aroha-policyAccess control and policy enforcement
@aroha-sdk/settlement (published on npm; source not in this repository)Payment and escrow — financial risk surface
packages/aroha-trusted-meshTrust mesh composition
Cryptographic primitivesEd25519 key generation, signing, verification; nonce/replay prevention
DID method implementationKey rotation, DID document integrity
Transport securityTLS enforcement, header validation
Saga rollback correctnessCancel idempotency, partial commit handling

Out of Scope (v1 audit)

  • packages/aroha-langchain-bridge, aroha-a2a-bridge, aroha-mcp-bridge — bridge security deferred to v2 audit
  • Demo scripts in scripts/
  • Frontend apps in apps/
  • Third-party ecosystem packages in community/

Review Areas

1. Cryptographic Implementation

  • Ed25519 key generation entropy
  • Signature verification completeness (no short-circuit paths)
  • Nonce uniqueness and replay window enforcement
  • Key rotation: old key invalidation, version tracking

2. DID & Identity

  • DID resolution: SSRF risks if resolving external DID documents
  • DID document tampering detection
  • Identity binding: can a malicious agent impersonate another's DID?

3. Saga Pattern

  • Partial commit attack: can a participant commit without reserving?
  • Cancel race condition: what happens if Cancel and Commit arrive simultaneously?
  • Timeout manipulation: can a slow participant hold a lock indefinitely?
  • Saga ID collision: entropy and uniqueness guarantees

4. Registry

  • Capability spoofing: can an agent register capabilities it doesn't have?
  • Registry poisoning: can a malicious agent deregister a legitimate one?
  • Rate limiting and DoS surface
  • Stale entry expiry correctness

5. Commerce / Settlement

  • Double-spend prevention
  • Refund correctness on rollback
  • Payment receipt forgery
  • Integer overflow / currency precision handling

6. Transport & API

  • Injection via message payloads (DID, capability names, saga IDs)
  • Overly permissive CORS or missing auth on internal endpoints
  • Log injection

Deliverables Expected from Auditor

DeliverableFormatDue
Audit kickoff scope confirmationEmail/signed SoWBefore start
Preliminary findings (mid-audit check-in)Draft reportWeek +2
Final reportPDF + machine-readable findings (JSON or CSV)Week +4
Public audit status bulletinShort summary for trust pageWeek +4
Remediation verification (if patch-and-retest in scope)AddendumWeek +6

Auditor Candidates

ASSUMPTION: No auditor has been contacted. The following are candidate categories — specific firms must be identified and contacted by Week 7.

TypeNotes
Specialised crypto/protocol firmsPreferred for L0–L1 cryptographic review
Smart contract audit firms with Rust/TS experienceFamiliar with distributed systems, atomicity, and financial logic
Open source security firmsMay offer reduced rate for open-source (Apache-2.0-licensed) projects
Academic security groupsPossible for W3C credibility, longer timeline

Remediation Backlog Template

Findings will be tracked here once the audit is complete:

IDSeverityComponentDescriptionOwnerSLAStatus
———————

SLA by severity:

  • Critical: patch within 72 hours
  • High: patch within 7 days
  • Medium: patch within 30 days
  • Low: patch within 90 days or next release

Public Audit Status Bulletin (Template)

Aroha 1.0 Security Review — Status as of [DATE]

Auditor: [FIRM]
Scope: Core protocol, credentials, registry, orchestrator, settlement
Status: [In progress / Complete]
Critical findings: [N] open / [N] resolved
High findings: [N] open / [N] resolved
Full report: [Link or "Available on request"]

This bulletin will be published in docs/trust.md.

This page is the repository file docs/security/review-scope.md, copied October 28, 2026.