AIB Security Threat Model (STRIDE)
Version: 1.0 | Status: Draft | Date: 2026-06-12 | Owner: CISO / CTO
1. Scope & method
This threat model applies STRIDE — Spoofing, Tampering, Repudiation, Information
disclosure, Denial of service, Elevation of privilege — to the AIB target
architecture defined in web/content/phases/d.md. It covers the network perimeter,
the API gateway, the application tier, the data tier, the event bus, and the
inference gateway, decomposed along trust boundaries.
The model is the architectural baseline against which TIBER-EU red-team scenarios
(aib-tiber-eu-program) are scoped, and against which DORA Art. 9 (protection) and
Art. 26 (advanced testing) are demonstrated to the FMA.
In scope: the eight microservices (aib-compliance-service-api,
aib-aml-service-api, aib-trading-service-api, aib-identity-service-api,
aib-operations-service-api, aib-reporting-service-api, aib-risk-service-api,
aib-audit-service-api), the Cloudflare edge tier (WAF, Workers, D1, R2, KV), the
Kafka event bus, and the OpenRouter inference gateway (SIM-AIS-001).
Out of scope here: LLM- and agent-specific attack surface — prompt injection,
tool poisoning, the named "Paperclip agent escalation bypass" — which is treated in
the companion doc aib-agent-security. This document references that surface at the
trust boundary but does not duplicate its analysis.
Mock data only (SIM-*); no figure or finding represents a live institution.
2. Architecture & trust boundaries
The four boundaries are where authentication, authorisation, and validation are
enforced. The strongest invariants are: (a) the audit log is append-only — no
UPDATE/DELETE path exists; (b) agents reach the data tier only via the propose path
(P11, aib-architecture-principles §P11), never a direct write.
3. STRIDE analysis
3.1 Cloudflare edge (TB1)
| STRIDE | Threat | Control | Residual |
|---|---|---|---|
| Spoofing | Forged source IP / origin | TLS 1.3 mutual where applicable; origin lock to Workers | Low |
| Tampering | Request mutation in transit | TLS 1.3, HSTS | Low |
| Repudiation | Edge action not attributable | Cloudflare request logs → Kafka → audit_log | Low |
| Info disclosure | Cache leak of PII | Cache rules exclude authenticated/PII routes | Medium |
| DoS | Volumetric / L7 flood | DDoS mitigation L3/L4, WAF rate limiting | Low |
| Elevation | WAF bypass to origin | Geo-block EEA, OWASP ruleset, origin not publicly routable | Medium |
3.2 API gateway — Pages Functions / Workers (TB2)
| STRIDE | Threat | Control | Residual |
|---|---|---|---|
| Spoofing | Stolen/forged JWT | OIDC validation, 1h token expiry, MFA on issue (REQ-NFR-005) | Low |
| Tampering | Altered claims/scopes | Signed JWT verified at gateway; HMAC-SHA256 on C2B | Low |
| Repudiation | Caller denies request | Every request audit-logged to Kafka → audit_log | Low |
| Info disclosure | Verbose errors / token leak | No stack traces to client; tokens never logged | Medium |
| DoS | API exhaustion | Per-user/per-API/time-window rate limiting | Low |
| Elevation | Scope escalation via gateway | RBAC claims fixed at issue; gateway cannot mint scopes | Low |
3.3 Application tier — microservices (TB3)
| STRIDE | Threat | Control | Residual |
|---|---|---|---|
| Spoofing | Service impersonation | mTLS service-to-service | Low |
| Tampering | Business-logic bypass (e.g. skip pre-trade gate) | Server-side enforcement of PROC-004 four-check gate; mandate/limit checks | Medium |
| Repudiation | Officer denies an approval | audit_log actor (human:<role>), before/after state | Low |
| Info disclosure | Cross-client data read | Row-level security — client_id always filtered | Medium |
| DoS | Expensive query abuse | Query budgets, indexed paths, settlement query cap (10k positions) | Medium |
| Elevation | Privilege escalation across roles | RBAC (client/advisor/officer/admin), SoD on dual-auth (PROC-008) | Medium |
3.4 Data tier — D1 / R2 / KV (TB3)
| STRIDE | Threat | Control | Residual |
|---|---|---|---|
| Spoofing | Rogue DB client | Bindings only; no public DB endpoint | Low |
| Tampering | Direct mutation of records | Parameterised queries only; agent writes blocked at data layer (P11) | Low |
| Repudiation | Untraceable data change | audit_log before/after state per mutation | Low |
| Info disclosure | At-rest exposure | AES-256-GCM, quarterly key rotation | Low |
| DoS | Write-throughput exhaustion (~1k concurrent) | Agent traffic off write path; backpressure | Medium |
| Elevation | Bypass row-level security | Enforced in service layer, not client; tested in TLPT | Medium |
3.5 Kafka event bus (TB3)
| STRIDE | Threat | Control | Residual |
|---|---|---|---|
| Spoofing | Forged event producer | mTLS, ACL per topic | Low |
| Tampering | Replayed/altered event | Idempotency keys; schema validation | Medium |
| Repudiation | Producer denies emission | Producer identity in event envelope → audit_log | Low |
| Info disclosure | PII in event payload | Minimised payloads; compliance topics 7-day retention | Medium |
| DoS | Topic flooding | Partition limits, consumer lag alerts | Low |
| Elevation | Consumer reads beyond ACL | Per-topic ACL; least privilege | Low |
3.6 OpenRouter inference gateway (TB4)
Summarised here; full treatment in aib-agent-security.
| STRIDE | Threat | Control | Residual |
|---|---|---|---|
| Spoofing | Forged inference response | TLS to OpenRouter; structured-output validation | Medium |
| Tampering | Manipulated agent output | Output written only as agent_proposal, never live data | Low |
| Repudiation | Agent action unattributable | audit_log actor agent:aib-*, model_version recorded | Low |
| Info disclosure | Prompt/data exfiltration to provider | Minimised context; DPA with provider | Medium |
| DoS | Inference saturation | Rate-limited; agent path is non-critical | Low |
| Elevation | Agent write bypass | See aib-agent-security §6 — blocked at data layer | Low |
4. Data-layer threats (detail)
Three data-layer invariants carry disproportionate weight and are called out separately because they underpin regulatory defensibility:
-
Audit-log immutability.
audit_logis append-only — the schema exposes no UPDATE or DELETE path, verified in UAT ("no UPDATE/DELETE possible",phases/g.md). Tampering with history is therefore not a software defect to patch but an absent capability. Backs BCBS 239 P12, GDPR Art. 5, DORA Art. 9. -
Tip-off prevention. Disclosure that a suspicious-activity report exists is a criminal offence (SPG Art. 17). The
aml_alert/strpath enforces atipped_off = 0immutable CHECK constraint (PROC-002); any read path that could leak SAR existence to a client-facing surface is an information-disclosure threat with a hard control, not a tunable risk. -
Cross-client isolation. Row-level
client_idfiltering is the boundary that prevents one client's data leaking into another's view; it is enforced in the service layer (never trusting the client) and is an explicit TLPT target.
5. Mapping to DORA & TIBER-EU
| Framework clause | Coverage in this model |
|---|---|
| DORA Art. 9 (protection & prevention) | §3 controls across all boundaries; encryption, RBAC, audit |
| DORA Art. 17–20 (incident reporting) | DoS / breach paths feed aib-incident-response-charter (4h/72h/1m) |
| DORA Art. 26 (advanced testing / TLPT) | This model scopes the red-team target set in aib-tiber-eu-program |
| ECB TIBER-EU | §2 boundaries map to the in-scope systems listed in aib-tiber-eu-program |
TIBER-EU red-team scenarios derive directly from §3: external attack paths exercise
TB1/TB2; insider/privileged-user simulation exercises TB3 elevation; the AI/agent
path (TB4) is the "Paperclip agent escalation bypass" target, analysed in full in
aib-agent-security.
6. Top risks & treatments
| # | Risk | STRIDE | Treatment | Owner |
|---|---|---|---|---|
| R1 | Pre-trade gate bypass writes an unchecked order | Tampering/Elevation | Server-side gate; reject on any failed check; TLPT scenario | CTO |
| R2 | Cross-client data disclosure via row-level bypass | Info disclosure | Service-layer client_id filter; pen-test each release | CISO |
| R3 | Agent obtains a direct write path | Elevation | P11 data-layer write block; agent_proposal sole path (aib-agent-security) | Chief Architect |
| R4 | Audit-log tampering hides a regulatory event | Tampering/Repudiation | Append-only schema; no mutation API | CTO |
| R5 | SAR existence leaked to client (tip-off) | Info disclosure | tipped_off = 0 CHECK; segregated views | CCO |
| R6 | D1 write-throughput exhaustion stalls critical path | DoS | Keep agent traffic off write path; backpressure; capacity SLO | CTO |
| R7 | Stolen JWT replayed within validity window | Spoofing | 1h expiry, MFA, 15-min idle timeout (MiFID II Art. 16(7)) | CISO |
7. Cross-references
Architecture: web/content/phases/d.md (security architecture, defense layers,
DR), aib-architecture-principles (§P11 agents propose / humans dispose).
Governance: aib-tiber-eu-program, aib-incident-response-charter,
aib-agent-security (LLM/agent surface), aib-ai-model-risk-charter.
Processes: PROC-002 (AML investigation, tip-off), PROC-003 (sanctions),
PROC-004 (pre-trade gate), PROC-008 (payment dual-auth), PROC-010 (DORA
incident reporting).
Entities: audit_log, agent_proposal, aml_alert, str, kri_reading,
rcsa_risk_event. Services: aib-aml, aib-compliance, aib-trading,
aib-audit-service-api.
Requirements: REQ-NFR-005 (MFA), REQ-REG-015 (encryption).
Reviewed by the Architecture Review Board (aib-arb-charter) and updated after
each TIBER-EU cycle or material architecture change.
References
- ServiceAIB AML Service API
- ServiceAIB Audit Service API
- ServiceAIB Compliance Service API
- ServiceAIB Identity Service API
- ServiceAIB Operations Service API
- ServiceAIB Reporting Service API
- ServiceAIB Risk Service API
- ServiceAIB Trading Service API
- ProcessPROC-002: AML Investigation & STR Filing
- ProcessPROC-003: Sanctions Screening & Freeze Lifecycle
- ProcessPROC-004: Order Pre-Trade Compliance Gate (Refresh)
- ProcessPROC-008: Payment & Dual Authorization Workflow
- ProcessPROC-010: DORA Incident Reporting (4h/72h/1m Cadence)
- DocAIB Architecture Principles
- GovernanceAIB Agent Security & Threat Model
- GovernanceAIB AI & Model Risk Governance Charter
- GovernanceAIB Architecture Review Board (ARB) Charter
- GovernanceAIB Incident Response Charter
- GovernanceAIB TIBER-EU Threat-Led Penetration Testing Program
- RequirementREQ-NFR-005
- RequirementREQ-REG-015