ARCHOS 525 BLUEPRINT · /d/dgm_ai-threat-model
AI system threat model (data flow, trust boundaries, STRIDE)
14 COMPONENTS · 18 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_ai-threat-model) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_ai-threat-model)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_ai-threat-model" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="AI system threat model (data flow, trust boundaries, STRIDE) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
model_1["Inference server"]
gw_2["API gateway"]
orch_3[("Agent orchestration runtime")]
gin_4["Guardrails"]
pdp_5["Policy decision point (PDP)"]
registry_6[("Artifact registry")]
tools_7["Function calling"]
secrets_8[("Secrets manager")]
audit_9[("Audit log")]
tsdb_10[("Time-series database (TSDB)")]
alerting_11[("Alerting")]
capacity_12["Capacity Estimate"]
web_13[("Web page source")]
client_0 -->|"1. Calls with JWT · HTTPS"| gw_2
gw_2 -->|"2. Forwards (mTLS) · HTTP/2"| orch_3
orch_3 -->|"3. Screens prompt · HTTP/2"| gin_4
gin_4 -->|"4. Returns verdict · HTTP/2"| orch_3
orch_3 -->|"5. Sends prompt · HTTPS"| model_1
model_1 -->|"6. Proposes tool call · HTTPS"| orch_3
orch_3 -->|"7. Asks policy (mTLS) · HTTP/2"| pdp_5
pdp_5 -->|"8. Returns decision · HTTP/2"| orch_3
orch_3 -->|"9. Calls tool (mTLS) · HTTP/2"| tools_7
tools_7 -->|"10. Returns marked data · HTTP/2"| orch_3
orch_3 -->|"11. Sends answer · HTTP/2"| gw_2
gw_2 -->|"12. Relays answer · HTTPS"| client_0
orch_3 -->|"Exports (OTLP) · OTLP"| tsdb_10
tsdb_10 -->|"Feeds Alerting · HTTP"| alerting_11
orch_3 -->|"Writes audit log · HTTP/2"| audit_9
secrets_8 -->|"Supplies tool keys · HTTPS"| tools_7
registry_6 -->|"Supplies signed image · HTTPS"| orch_3
tools_7 -->|"Fetches pages · HTTPS"| web_13COMPONENT STACK (13)
- Web ClientSTATEFULAsks the assistant to do a task
- Inference serverSTATELESSHosted model API outside our boundary
- API gatewaySTATELESSSpoofing: verifies the JWT on every call
- Agent orchestration runtimeSTATEFULTampering: marks fetched text as data
- GuardrailsSTATELESSTampering: screens the prompt; fails closed
- Policy decision point (PDP)STATELESSElevation: allows or denies per user and tool
- Artifact registrySTATEFULSupply chain: signed images with provenance
- Function callingSTATELESSElevation: runs only tools the PDP allows
- Secrets managerSTATEFULDisclosure: keys never reach the model
- Audit logSTATEFULRepudiation: records each tool decision
- Time-series database (TSDB)STATEFULStores denials, blocks and timeouts
- AlertingSTATEFULPages on-call when denials or blocks spike
- Web page sourceSTATEFULUntrusted content; may hide instructions
REQUEST & DATA FLOW (18)
- Web Client → API gateway (Calls with JWT)[HTTPS]
- API gateway → Agent orchestration runtime (Forwards (mTLS))[HTTP/2]
- Agent orchestration runtime → Guardrails (Screens prompt)[HTTP/2]
- Guardrails → Agent orchestration runtime (Returns verdict)[HTTP/2]
- Agent orchestration runtime → Inference server (Sends prompt)[HTTPS]
- Inference server → Agent orchestration runtime (Proposes tool call)[HTTPS]
- Agent orchestration runtime → Policy decision point (PDP) (Asks policy (mTLS))[HTTP/2]
- Policy decision point (PDP) → Agent orchestration runtime (Returns decision)[HTTP/2]
- Agent orchestration runtime → Function calling (Calls tool (mTLS))[HTTP/2]
- Function calling → Agent orchestration runtime (Returns marked data)[HTTP/2]
- Agent orchestration runtime → API gateway (Sends answer)[HTTP/2]
- API gateway → Web Client (Relays answer)[HTTPS]
- Agent orchestration runtime → Time-series database (TSDB) (Exports (OTLP))[OTLP]
- Time-series database (TSDB) → Alerting (Feeds Alerting)[HTTP]