Skip to content

docs: add security model mapping branch scanning targets#737

Merged
m4sterchain merged 1 commit into
apache:mainfrom
m4sterchain:docs/security-model
Jun 10, 2026
Merged

docs: add security model mapping branch scanning targets#737
m4sterchain merged 1 commit into
apache:mainfrom
m4sterchain:docs/security-model

Conversation

@m4sterchain

Copy link
Copy Markdown
Contributor

What

Adds docs/security-model.md to main, and links it from SECURITY.md.

Why

main is the ecosystem landing-page branch and contains no TEE code (crates/, sgx/, trustzone/ hold only README pointers). A security reviewer — human or automated/LLM agent — pointed at main would find nothing to audit and could mistakenly conclude there is no attack surface. The actual code lives on other branches. This doc is a brief map to scanning targets so a review is aimed at the right place, with the right trust model.

It deliberately does not duplicate a full threat model — the per-platform trust models already live in the SDK repositories, and the legacy branch already carries its own docs/threat-model.md.

Contents

docs/security-model.md covers:

  1. main has no TEE code — so don't audit main itself for TEE issues.
  2. Scanning targets — the branches that contain code:
    • experimental-web3 (active/latest) → vm/wallet-gateway/, a TEE-backed crypto-wallet custody gateway. The trust boundary is visible in the workspace: task-runner-tee (+ credential-manager, signing/keys) is the TCB; api-server/webapi, net (external blockchain RPC and price feeds), db-service/db-manager (untrusted storage), and task-runner-normal are untrusted. Lists the attacker-controlled inputs to focus on.
    • cleanroom — an earlier SGX FaaS-style prototype.
    • legacy — the deprecated original FaaS framework (already documented under docs/).
  3. Which trust model applies — links the SGX SDK, TrustZone SDK, and dependency-crates security models as the authoritative trust-boundary references.

This is documentation only; no code or behavior changes.

🤖 Generated with Claude Code

main is a landing-page branch with no TEE code, so a security scan must
target the branches that contain code. Adds docs/security-model.md, a
brief orientation that maps those scanning targets: experimental-web3
(the active vm/wallet-gateway TEE-backed wallet custody gateway, with its
task-runner-tee vs. task-runner-normal trust split), the cleanroom SGX
FaaS prototype, and the deprecated legacy FaaS framework (which already
has its own threat-model docs). Points to the per-platform SDK security
models (SGX, TrustZone, crates) as the authoritative trust-boundary
references, and links the doc from SECURITY.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@m4sterchain m4sterchain merged commit d769ed4 into apache:main Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant