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
[](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_3COMPONENT STACK (16)
- Web ClientSTATEFULStaff member on an untrusted network
- Inference serverSTATELESSHosted model API outside our boundary
- Business APISTATEFULDownstream system the tools change
- AlertingSTATEFULOn-call pager outside our boundary
- Identity provider (IdP)STATEFULIssues the JWT the gateway verifies
- API gatewaySTATELESSLLM10: checks JWT, limits each user
- Artifact registrySTATEFULLLM03: signed images, model hashes
- GuardrailsSTATELESSLLM01, LLM02: screens the prompt
- GuardrailsSTATELESSLLM02, LLM05: screens the reply
- Agent orchestration runtimeSTATEFULLLM01: marks retrieved text as data
- Vector databaseSTATEFULLLM08, LLM09: per-user items ground answers
- Policy decision point (PDP)STATELESSLLM06: allows or denies per user and tool
- Time-series database (TSDB)STATEFULStores blocks, denials and token use
- AI gatewaySTATELESSLLM10: token quota, timeout, one retry
- Function callingSTATELESSLLM06: runs only tools the PDP allows
- Secrets managerSTATEFULLLM07: tool keys stay out of the prompt
REQUEST & DATA FLOW (22)
- Web Client → API gateway (Calls with JWT)[HTTPS]
- API gateway → Agent orchestration runtime (Forwards request)[HTTP/2]
- Agent orchestration runtime → Guardrails (Screens prompt)[HTTP/2]
- Guardrails → Agent orchestration runtime (Returns verdict)[HTTP/2]
- Agent orchestration runtime → AI gateway (Sends prompt)[HTTP/2]
- AI gateway → Inference server (Calls model)[HTTPS]
- Inference server → AI gateway (Returns reply)[HTTPS]
- AI gateway → Agent orchestration runtime (Returns reply)[HTTP/2]
- Agent orchestration runtime → Guardrails (Screens reply)[HTTP/2]
- Guardrails → Agent orchestration runtime (Returns verdict)[HTTP/2]
- Agent orchestration runtime → API gateway (Sends answer)[HTTP/2]
- API gateway → Web Client (Relays answer)[HTTPS]
- Identity provider (IdP) → API gateway (Publishes keys (JWKS))[HTTPS]
- Secrets manager → Function calling (Supplies tool keys)[HTTPS]