Phase D · Technology Architecture & Organization

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)

STRIDEThreatControlResidual
SpoofingForged source IP / originTLS 1.3 mutual where applicable; origin lock to WorkersLow
TamperingRequest mutation in transitTLS 1.3, HSTSLow
RepudiationEdge action not attributableCloudflare request logs → Kafka → audit_logLow
Info disclosureCache leak of PIICache rules exclude authenticated/PII routesMedium
DoSVolumetric / L7 floodDDoS mitigation L3/L4, WAF rate limitingLow
ElevationWAF bypass to originGeo-block EEA, OWASP ruleset, origin not publicly routableMedium

3.2 API gateway — Pages Functions / Workers (TB2)

STRIDEThreatControlResidual
SpoofingStolen/forged JWTOIDC validation, 1h token expiry, MFA on issue (REQ-NFR-005)Low
TamperingAltered claims/scopesSigned JWT verified at gateway; HMAC-SHA256 on C2BLow
RepudiationCaller denies requestEvery request audit-logged to Kafka → audit_logLow
Info disclosureVerbose errors / token leakNo stack traces to client; tokens never loggedMedium
DoSAPI exhaustionPer-user/per-API/time-window rate limitingLow
ElevationScope escalation via gatewayRBAC claims fixed at issue; gateway cannot mint scopesLow

3.3 Application tier — microservices (TB3)

STRIDEThreatControlResidual
SpoofingService impersonationmTLS service-to-serviceLow
TamperingBusiness-logic bypass (e.g. skip pre-trade gate)Server-side enforcement of PROC-004 four-check gate; mandate/limit checksMedium
RepudiationOfficer denies an approvalaudit_log actor (human:<role>), before/after stateLow
Info disclosureCross-client data readRow-level security — client_id always filteredMedium
DoSExpensive query abuseQuery budgets, indexed paths, settlement query cap (10k positions)Medium
ElevationPrivilege escalation across rolesRBAC (client/advisor/officer/admin), SoD on dual-auth (PROC-008)Medium

3.4 Data tier — D1 / R2 / KV (TB3)

STRIDEThreatControlResidual
SpoofingRogue DB clientBindings only; no public DB endpointLow
TamperingDirect mutation of recordsParameterised queries only; agent writes blocked at data layer (P11)Low
RepudiationUntraceable data changeaudit_log before/after state per mutationLow
Info disclosureAt-rest exposureAES-256-GCM, quarterly key rotationLow
DoSWrite-throughput exhaustion (~1k concurrent)Agent traffic off write path; backpressureMedium
ElevationBypass row-level securityEnforced in service layer, not client; tested in TLPTMedium

3.5 Kafka event bus (TB3)

STRIDEThreatControlResidual
SpoofingForged event producermTLS, ACL per topicLow
TamperingReplayed/altered eventIdempotency keys; schema validationMedium
RepudiationProducer denies emissionProducer identity in event envelope → audit_logLow
Info disclosurePII in event payloadMinimised payloads; compliance topics 7-day retentionMedium
DoSTopic floodingPartition limits, consumer lag alertsLow
ElevationConsumer reads beyond ACLPer-topic ACL; least privilegeLow

3.6 OpenRouter inference gateway (TB4)

Summarised here; full treatment in aib-agent-security.

STRIDEThreatControlResidual
SpoofingForged inference responseTLS to OpenRouter; structured-output validationMedium
TamperingManipulated agent outputOutput written only as agent_proposal, never live dataLow
RepudiationAgent action unattributableaudit_log actor agent:aib-*, model_version recordedLow
Info disclosurePrompt/data exfiltration to providerMinimised context; DPA with providerMedium
DoSInference saturationRate-limited; agent path is non-criticalLow
ElevationAgent write bypassSee aib-agent-security §6 — blocked at data layerLow

4. Data-layer threats (detail)

Three data-layer invariants carry disproportionate weight and are called out separately because they underpin regulatory defensibility:

  1. Audit-log immutability. audit_log is 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.

  2. Tip-off prevention. Disclosure that a suspicious-activity report exists is a criminal offence (SPG Art. 17). The aml_alert / str path enforces a tipped_off = 0 immutable 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.

  3. Cross-client isolation. Row-level client_id filtering 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 clauseCoverage 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

#RiskSTRIDETreatmentOwner
R1Pre-trade gate bypass writes an unchecked orderTampering/ElevationServer-side gate; reject on any failed check; TLPT scenarioCTO
R2Cross-client data disclosure via row-level bypassInfo disclosureService-layer client_id filter; pen-test each releaseCISO
R3Agent obtains a direct write pathElevationP11 data-layer write block; agent_proposal sole path (aib-agent-security)Chief Architect
R4Audit-log tampering hides a regulatory eventTampering/RepudiationAppend-only schema; no mutation APICTO
R5SAR existence leaked to client (tip-off)Info disclosuretipped_off = 0 CHECK; segregated viewsCCO
R6D1 write-throughput exhaustion stalls critical pathDoSKeep agent traffic off write path; backpressure; capacity SLOCTO
R7Stolen JWT replayed within validity windowSpoofing1h 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

Referenced by