Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_sec-owasp-llm-top10-reference-architecture

OWASP LLM Top 10 mapped to a reference architecture (controls, residual risk)

17 COMPONENTS · 22 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[![OWASP LLM Top 10 mapped to a reference architecture (controls, residual risk) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_sec-owasp-llm-top10-reference-architecture/opengraph-image)](https://archos.sageideas.dev/d/dgm_sec-owasp-llm-top10-reference-architecture)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_sec-owasp-llm-top10-reference-architecture)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_sec-owasp-llm-top10-reference-architecture" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="OWASP LLM Top 10 mapped to a reference architecture (controls, residual risk) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Web Client")]
  model_1["Inference server"]
  biz_2[("Business API")]
  alerting_3[("Alerting")]
  idp_4[("Identity provider (IdP)")]
  gw_5["API gateway"]
  registry_6[("Artifact registry")]
  gin_7["Guardrails"]
  gout_8["Guardrails"]
  orch_9[("Agent orchestration runtime")]
  vector_10[("Vector database")]
  pdp_11["Policy decision point (PDP)"]
  tsdb_12[("Time-series database (TSDB)")]
  aigw_13["AI gateway"]
  toolgw_14["Function calling"]
  secrets_15[("Secrets manager")]
  capacity_16["Capacity Estimate"]
  client_0 -->|"1. Calls with JWT · HTTPS"| gw_5
  gw_5 -->|"2. Forwards request · HTTP/2"| orch_9
  orch_9 -->|"3. Screens prompt · HTTP/2"| gin_7
  gin_7 -->|"4. Returns verdict · HTTP/2"| orch_9
  orch_9 -->|"5. Sends prompt · HTTP/2"| aigw_13
  aigw_13 -->|"6. Calls model · HTTPS"| model_1
  model_1 -->|"7. Returns reply · HTTPS"| aigw_13
  aigw_13 -->|"8. Returns reply · HTTP/2"| orch_9
  orch_9 -->|"9. Screens reply · HTTP/2"| gout_8
  gout_8 -->|"10. Returns verdict · HTTP/2"| orch_9
  orch_9 -->|"11. Sends answer · HTTP/2"| gw_5
  gw_5 -->|"12. Relays answer · HTTPS"| client_0
  idp_4 -->|"Publishes keys (JWKS) · HTTPS"| gw_5
  secrets_15 -->|"Supplies tool keys · HTTPS"| toolgw_14
  registry_6 -->|"Supplies signed image · HTTPS"| orch_9
  orch_9 -->|"Retrieves per user · HTTP/2"| vector_10
  orch_9 -->|"Calls tool · HTTP/2"| toolgw_14
  toolgw_14 -->|"Asks, fails closed · HTTP/2"| pdp_11
  toolgw_14 -->|"Calls as the user · HTTPS"| biz_2
  aigw_13 -->|"Exports (OTLP) · OTLP"| tsdb_12
  gin_7 -->|"Exports (OTLP) · OTLP"| tsdb_12
  tsdb_12 -->|"Notifies · HTTP"| alerting_3

COMPONENT STACK (16)

  • Web ClientSTATEFUL
    Staff member on an untrusted network
  • Inference serverSTATELESS
    Hosted model API outside our boundary
  • Business APISTATEFUL
    Downstream system the tools change
  • AlertingSTATEFUL
    On-call pager outside our boundary
  • Identity provider (IdP)STATEFUL
    Issues the JWT the gateway verifies
  • API gatewaySTATELESS
    LLM10: checks JWT, limits each user
  • Artifact registrySTATEFUL
    LLM03: signed images, model hashes
  • GuardrailsSTATELESS
    LLM01, LLM02: screens the prompt
  • GuardrailsSTATELESS
    LLM02, LLM05: screens the reply
  • Agent orchestration runtimeSTATEFUL
    LLM01: marks retrieved text as data
  • Vector databaseSTATEFUL
    LLM08, LLM09: per-user items ground answers
  • Policy decision point (PDP)STATELESS
    LLM06: allows or denies per user and tool
  • Time-series database (TSDB)STATEFUL
    Stores blocks, denials and token use
  • AI gatewaySTATELESS
    LLM10: token quota, timeout, one retry
  • Function callingSTATELESS
    LLM06: runs only tools the PDP allows
  • Secrets managerSTATEFUL
    LLM07: tool keys stay out of the prompt

REQUEST & DATA FLOW (22)

  1. Web Client → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Agent orchestration runtime (Forwards request)[HTTP/2]
  3. Agent orchestration runtime → Guardrails (Screens prompt)[HTTP/2]
  4. Guardrails → Agent orchestration runtime (Returns verdict)[HTTP/2]
  5. Agent orchestration runtime → AI gateway (Sends prompt)[HTTP/2]
  6. AI gateway → Inference server (Calls model)[HTTPS]
  7. Inference server → AI gateway (Returns reply)[HTTPS]
  8. AI gateway → Agent orchestration runtime (Returns reply)[HTTP/2]
  9. Agent orchestration runtime → Guardrails (Screens reply)[HTTP/2]
  10. Guardrails → Agent orchestration runtime (Returns verdict)[HTTP/2]
  11. Agent orchestration runtime → API gateway (Sends answer)[HTTP/2]
  12. API gateway → Web Client (Relays answer)[HTTPS]
  13. Identity provider (IdP) → API gateway (Publishes keys (JWKS))[HTTPS]
  14. Secrets manager → Function calling (Supplies tool keys)[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →