AGENT SKILL

trust-boundary-modeling

Identify and classify architecture-level trust boundaries, determine what data crosses each one and who enforces it, and produce a ranked threat table proportional to a named adversary — used before proposing any specific security control.

License 许可
Apache-2.0
所属仓库
cwik-tech/octopus
最近更新
2026-10-27
Stars
★ 0
Forks
0

01 前言 Front Matter

name
trust-boundary-modeling
description
Identify and classify architecture-level trust boundaries, determine what data crosses each one and who enforces it, and produce a ranked threat table proportional to a named adversary — used before proposing any specific security control.

03 SKILL.md 正文

Trust Boundary Modeling

Purpose

Produce an architecture-level map of trust boundaries so that security discussion attaches to structure rather than to control shopping. This skill runs before any control is proposed. Its output is a boundary table, an egress ledger, and a ranked threat list scoped to a named adversary.

This is not a full STRIDE exercise or a compliance assessment. It is the minimum modeling needed to decide an architecture question correctly, at a level of detail an ADR can carry.

When to use

Use on every architecture question that involves more than one process, more than one machine, more than one tenant, or any third-party service. In practice this is nearly every convening. Run it first, before applying any domain-specific security skill.

Definitions

A trust boundary is any point where data or control passes between two zones with different trust assumptions. The common ones:

  • Process boundaries (main process ↔ renderer, host ↔ sandboxed child)
  • Machine boundaries (client ↔ server, device ↔ cloud)
  • Organizational boundaries (our infra ↔ third-party provider)
  • Tenancy boundaries (tenant A ↔ tenant B in shared storage or shared index)
  • Privilege boundaries (unprivileged UI ↔ privileged capability, model output ↔ tool execution)
  • Persistence boundaries (ephemeral memory ↔ durable storage that outlives the session)

An egress event is any point where data leaves the control domain the user believes it occupies. Embedding generation, third-party inference, telemetry, crash reporting, and auto-update check-ins are all egress events even when the team does not think of them that way.

Procedure

Step 1 — Enumerate boundaries

Walk the proposed architecture and list every boundary from the categories above. For each, record:

Field Meaning
Boundary The two zones it separates
Crosses What data or control actually passes
Direction Inbound, outbound, or bidirectional
Enforced by Runtime, OS, provider, or our own code

The Enforced by column carries most of the value. A boundary enforced only by our own code being correct is a boundary that will eventually fail; mark it explicitly so the board can decide whether that is acceptable.

Step 2 — Classify what crosses

For each boundary, classify crossing data:

  • User content — what the user authored or supplied
  • Derived content — embeddings, summaries, indexes, caches derived from user content (treat as user content for residency purposes; derivation is not anonymization)
  • Credentials — tokens, keys, session material
  • Control — commands, tool invocations, anything that causes an action

Control crossing a boundary is more dangerous than content crossing it. Flag any boundary where model output becomes control.

Step 3 — Build the egress ledger

Extract every outbound crossing that leaves the user's or organization's control domain. For each, record the destination, whether retention is documented or assumed, and whether deletion on request is actually possible. Mark assumed items as unverified rather than treating them as facts.

Step 4 — Name the adversary

For each boundary of concern, state the concrete adversary and the concrete asset. Acceptable adversaries include: a network attacker, a malicious or compromised third-party dependency, another tenant, a prompt-injecting document in the corpus, a local process on a shared machine, or a subpoena. If the honest answer is "a bug" or "the user themselves," record it as a robustness concern and downgrade it out of the threat list.

Step 5 — Rank by reachable damage

Order findings by what a compromise reaches, not by how likely it is. Within equal reach, rank irreversible consequences above reversible ones. Probability is unknowable at design time; reachability is a decidable property of the architecture.

Step 6 — Split now vs later

Separate findings into those that the current architecture decision determines — and therefore must be settled in the decision record — and those that are implementation details. Being explicit about the second category is what keeps this skill from becoming scope creep.

Output format

### Trust boundaries

| Boundary | Crosses | Direction | Enforced by |
|---|---|---|---|

### Egress ledger

| Data | Destination | Retention | Deletable | Verified? |
|---|---|---|---|---|

### Threats, ranked by reachable damage

1. [Adversary] reaching [asset] via [boundary] — [reversible / irreversible]

### Must be settled in this decision

- ...

### Can be deferred to implementation

- ...

Failure modes to avoid

  • Producing controls before boundaries. If the output names a control without a boundary, the modeling was skipped.
  • Treating derived data as non-sensitive. Embeddings of a private corpus are the private corpus for residency purposes.
  • Uniform severity across a single-user local tool and a multi-tenant service. Proportionality is part of the analysis, not a softening applied afterward.
  • Accepting provider claims as verified facts. Mark unverified and state what would verify it.
  • Expanding into a full compliance review. Scope to what this architecture decision determines.

04 同仓库更多 Skills

cwik-tech
cwik-tech/octopus

twenty-year-land-plan

Apply the Bren discipline of evaluating every land and development decision on a twenty-year horizon, with a comprehensive plan for how the land, the community, and the surrounding public infrastructure evolve together. Deals optimized for a five-year exit are structurally different from deals that compound across generations; insist on knowing which kind you are making. Use when evaluating land, entitlements, master-planned development, or phasing decisions, and when separating five-year exit deals from generational holds.

★ 0
cwik-tech
cwik-tech/octopus

thematic-gut-check

Apply the Gray discipline of identifying the structural theme behind every real estate deal, testing where that theme sits in its capital-flow lifecycle, and insisting that deals without a named theme — or deals late in a crowded theme — clear a higher bar. A mediocre deal in a strong theme usually beats a clever deal in a weak one. Use when naming the structural thesis behind a deal, judging whether that theme is early or crowded, and setting the bar the deal must clear.

★ 0
cwik-tech
cwik-tech/octopus

supply-pipeline-gut-check

Apply the Zell discipline of grounding every real estate thesis in the local supply pipeline. Demand counts over adjectives — units under construction, units permitted, units proposed — and convert them into a forward absorption schedule. A deal that ignores the pipeline is a bet on a market you have not actually studied. Use when validating a market thesis, forecasting absorption and rent growth, or counting units under construction, permitted, and proposed.

★ 0
cwik-tech
cwik-tech/octopus

ruin-scenario-mapping

Apply the Taleb discipline of identifying, for every real estate deal, the specific chain of events that produces ruin — permanent, unrecoverable capital loss — and verifying that no single such chain has non-trivial probability. Deals with any plausible ruin path must be restructured or abandoned. Use when sizing leverage, testing refinancing, covenant, and liquidity risk, or checking whether any single failure chain can permanently wipe out the position.

★ 0
cwik-tech
cwik-tech/octopus

revenue-cost-architecture

Design a venture's revenue streams, pricing logic, cost structure, and unit economics so the business model has a coherent theory of value capture, not just value creation. Use after the value proposition and customer segment are set and before financial projections, when choosing a pricing model, calculating contribution margin or CAC payback, or checking whether the unit economics hold at scale.

★ 0
cwik-tech
cwik-tech/octopus

replacement-cost-stress-test

Apply the Buffett discipline of pricing every real estate asset against the cost to rebuild it from scratch. The ratio of purchase price to replacement cost sets a ceiling on long-run downside: below replacement cost, new supply cannot profitably undercut you; at or above it, you are buying a liability disguised as an asset. Use when setting a purchase price, judging downside protection, or testing how exposed an asset is to newly built competing supply.

★ 0