Skip to main content
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
[![AI system threat model (data flow, trust boundaries, STRIDE) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_ai-threat-model/opengraph-image)](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_13

COMPONENT STACK (13)

  • Web ClientSTATEFUL
    Asks the assistant to do a task
  • Inference serverSTATELESS
    Hosted model API outside our boundary
  • API gatewaySTATELESS
    Spoofing: verifies the JWT on every call
  • Agent orchestration runtimeSTATEFUL
    Tampering: marks fetched text as data
  • GuardrailsSTATELESS
    Tampering: screens the prompt; fails closed
  • Policy decision point (PDP)STATELESS
    Elevation: allows or denies per user and tool
  • Artifact registrySTATEFUL
    Supply chain: signed images with provenance
  • Function callingSTATELESS
    Elevation: runs only tools the PDP allows
  • Secrets managerSTATEFUL
    Disclosure: keys never reach the model
  • Audit logSTATEFUL
    Repudiation: records each tool decision
  • Time-series database (TSDB)STATEFUL
    Stores denials, blocks and timeouts
  • AlertingSTATEFUL
    Pages on-call when denials or blocks spike
  • Web page sourceSTATEFUL
    Untrusted content; may hide instructions

REQUEST & DATA FLOW (18)

  1. Web Client → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Agent orchestration runtime (Forwards (mTLS))[HTTP/2]
  3. Agent orchestration runtime → Guardrails (Screens prompt)[HTTP/2]
  4. Guardrails → Agent orchestration runtime (Returns verdict)[HTTP/2]
  5. Agent orchestration runtime → Inference server (Sends prompt)[HTTPS]
  6. Inference server → Agent orchestration runtime (Proposes tool call)[HTTPS]
  7. Agent orchestration runtime → Policy decision point (PDP) (Asks policy (mTLS))[HTTP/2]
  8. Policy decision point (PDP) → Agent orchestration runtime (Returns decision)[HTTP/2]
  9. Agent orchestration runtime → Function calling (Calls tool (mTLS))[HTTP/2]
  10. Function calling → Agent orchestration runtime (Returns marked data)[HTTP/2]
  11. Agent orchestration runtime → API gateway (Sends answer)[HTTP/2]
  12. API gateway → Web Client (Relays answer)[HTTPS]
  13. Agent orchestration runtime → Time-series database (TSDB) (Exports (OTLP))[OTLP]
  14. Time-series database (TSDB) → Alerting (Feeds Alerting)[HTTP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →