Cookie Preferences
We use cookies to enhance your experience, analyse site traffic, and support our marketing. You can customise your preferences or accept all cookies. See our Privacy & Cookie Policy for details.

MNB Tech

Governing Intelligence: The Secure AI Blueprint for Banking

Security & Compliance

Banks must embed Zero Trust, DevSecOps, and AI-driven detection to secure code and APIs, meet PCI DSS 4.0 and DORA, and reduce fraud, ransomware and supply-chain risk.

13 min read

TL;DR

  • Shift from perimeter security to identity-first Zero Trust with continuous verification and least privilege across users, devices, workloads, and APIs.
  • Embed security in code and pipelines: SAST/SCA/DAST/IAST, IaC guardrails, signed releases, SBOMs, and policy-as-code mapped to PCI DSS 4.0 and DORA.
  • Treat APIs as products: FAPI-grade OAuth, mTLS/DPoP, schema validation, contract tests, and runtime anomaly detection at the gateway.
  • Use cloud-native controls plus AI-driven threat detection to automate prevention/response without slowing delivery.
  • Govern AI: model risk management, privacy-by-design, supply-chain SBOMs, red teaming, and incident playbooks integrated with SOAR.

Abstract & Executive Observations

Banks are software companies with balance sheets. The attack surface is expanding via APIs, open banking, BaaS, cloud, and AI. Yet many development and release processes still assume a trusted network and batch governance. That assumption is the root cause of excessive breach blast radius and slow, error-prone remediation.

Our thesis is simple: coding security in banking must be identity-first and automated, with AI enhancing—not replacing—well-engineered controls. Zero Trust Architecture (ZTA) provides the organising principle: never trust, always verify; enforce least privilege and continuous assessment from code to production. DevSecOps is the delivery mechanism that prevents vulnerabilities early, proves compliance continuously, and accelerates safe change. API security is now a first-class discipline, aligned to FAPI-grade standards with strong client authentication and secure-by-default token flows. Cloud-native security and confidential computing protect data in use, at rest, and in transit at scale. AI augments detection and response with real-time anomaly detection, policy validation, and automated triage, but it must itself be governed (privacy, model risk, supply chain).

Regulators are raising the floor (PCI DSS 4.0, DORA, NIS2, ISO/IEC 27001:2022, UK FCA operational resilience). Boards are rightly asking for assurance that controls work continuously, not just at audit time. The disconnect we see: sophisticated attackers exploiting identity, software supply chain, and API logic flaws while organisations still over-invest in perimeter-centric tools and manual approvals. In 2025–2026, the winners will be the banks that deliver secure code at speed, treat identity as the new root of trust, and blend deterministic controls with AI-driven insights—underpinned by rigorous evidence and response readiness.

The Current Architectural Challenge

Legacy banking security architectures were built for branch networks, thick-client cores, and a clear inside/outside boundary. Today’s topology is different: mobile-first customers, partner integrations, multi-cloud platforms, microservices, and ML services. Yet residual patterns persist:

  • Perimeter bias: VPN + static firewalls + shared secrets assume a trusted interior. One compromised user or CI credential often means lateral movement across flat networks and shared runtime identities.
  • Siloed controls: AppSec runs scans late in the SDLC; Ops deploys with change freezes; IAM, network, and platform teams lack shared context. Findings age out; fixes miss release windows; exceptions proliferate.
  • API sprawl without product discipline: Unversioned endpoints, inconsistent auth (basic auth, long-lived tokens), weak input validation, and patchy rate limiting produce business logic abuse and data leakage.
  • Over-permissioned identities: Long-lived keys in CI/CD, static service accounts, lack of device posture checks, and privileged users without JIT/JEA controls expand blast radius.
  • Supply-chain opacity: Unknown transitive dependencies, unsigned containers, and no SBOMs; build systems with persistent secrets; provenance unverified.
  • Cloud misconfigurations: Orphaned security groups, public S3 buckets, permissive IAM roles, and unmonitored data flows create silent exposure.
  • AI adoption without guardrails: LLM-assisted coding introduces code patterns the team does not recognise; prompt injection and data exfiltration risks in chatbots; no model inventories or attack surface mapping.

Hidden costs follow. Incident responders reinvent runbooks per event because telemetry is inconsistent; change approvals slow delivery yet do not add measurable risk reduction; breach containment is hampered by shared credentials and incomplete logs; audit artefacts are point-in-time PowerPoints rather than signed, immutable control evidence. In one anonymised retail banking environment, a routine API refactor propagated insecure defaults to 47 endpoints because the gateway templates lacked deny-by-default posture and contract tests. In another, a compromised CI service account with broad cloud permissions enabled data exfiltration via snapshot exports—no MFA, no JIT, no workload identity.

The core issue: identity and software supply chain have become the new perimeters, but many organisations spend most security calories defending a fading boundary. Coding security for banking must invert this: identity- and policy-led, provable by design, and continuously verified end to end.

Technical Visualization: Identity gaps and attack paths in a perimeter-centric bank

flowchart LR subgraph Internet U[User/TPP] A[Attacker] end subgraph Perimeter WAF[WAF/Reverse Proxy] VPN[VPN] end subgraph DMZ GW[API Gateway] L7FW[L7 Firewall] end subgraph Core_Network[Flat Internal Network] APP[Monolith/App Servers] DB[(Databases)] CI[CI/CD Server] SEC[Security Tools] end U -->|HTTPS| WAF --> GW --> APP U -.->|Phishing| VPN A -->|Credential Stuffing| WAF A -.->|Stolen VPN creds| VPN --> Core_Network GW -->|Long-lived tokens| APP APP --> DB CI -->|Deploys via static key| APP A -->|Supply-chain| CI A -->|Lateral Movement| APP --> DB SEC -.->|Siloed Alerts| Core_Network

Figure 1: Common attack paths in perimeter-first designs: a single compromised identity or supply-chain foothold leads to lateral movement due to long-lived credentials, flat networks, and inconsistent identity controls across CI, APIs, and runtime.

Implementation & Orchestration Strategy

Implementing coding security in banking with AI requires an architecture that is identity-first, policy-driven, and evidence-producing. The practical patterns below integrate Zero Trust, DevSecOps, API/Open Banking controls, cloud-native security, and AI-augmented detection.

1) Make identity the root of trust across people and workloads - Workforce identity: Enforce phishing-resistant MFA (FIDO2/passkeys), device posture checks, conditional access, and continuous access evaluation for all privileged operations. Integrate identity threat detection to flag impossible travel, session hijacking, and consent grant abuse. - Workload identity: Use short-lived federated credentials (e.g., OIDC to cloud providers) for CI/CD and services. Adopt SPIFFE/SPIRE for workload identity and mTLS between services; enforce service-to-service auth with service mesh policies instead of shared secrets. - Just-in-time and just-enough access: Privileged access management (PAM) with time-bound elevation. Automate end-to-end approvals and session recording. Use break-glass accounts with strict monitoring and out-of-band alerts.

2) Shift security left and right with DevSecOps and policy-as-code - Pre-commit: Secret scanning, commit signing, and pre-commit linters for insecure patterns. Enforce branch protections and mandatory code review with risk-based checks. - Build: SAST, SCA with transitive dependency checks, licence policy enforcement, and reproducible builds. Generate SBOMs (SPDX/CycloneDX) and store alongside artefacts. Sign artefacts (containers, packages) with Sigstore/Cosign; verify at deploy. - IaC and config: Scan Terraform/Kubernetes/CloudFormation with tools enforcing CIS benchmarks. Gate merges with OPA/Rego or Kyverno policies (e.g., no public buckets, no privileged pods, mandatory mTLS). - Test: DAST/IAST and API contract testing; fuzzing for critical services. Use synthetic tests to validate security headers and TLS posture. - Release: Progressive delivery (blue/green, canaries) with security gates; verify provenance and signatures; deny unsigned code at admission. Instrument rollbacks keyed to anomaly scores. - Runtime: Enforce distroless/rootless containers, read-only filesystems, seccomp/AppArmor, capability drops, strict network policies, and image provenance checks. Detect runtime anomalies with eBPF-based sensors.

3) Treat APIs as products and align to financial-grade standards - Authentication/authorisation: Adopt FAPI profiles. Use OAuth 2.0/OIDC with PAR and JARM, enforce mTLS for confidential clients or DPoP for public clients, and apply narrow scopes with consent and consent lifecycle management. For Open Banking, align to relevant domestic standards (e.g., UK Open Banking) with dynamic client registration governance. - Token hygiene: Short-lived access tokens, sender-constrained tokens, refresh token rotation, audience restriction, and JWT best practices (no symmetric algs for external tokens, kid validation, key rotation). - Input and contract security: Strict schema validation, positive security models, and deny-by-default routing. Use contract tests to block unintended changes; enforce versioning and deprecation windows. - Runtime controls: Rate limiting, adaptive throttling, bot detection, replay protection (nonce/timestamp), and anomaly detection on API behaviour (sequence, payload size, geo). Require mTLS between gateway and backends. - Monitoring and evidence: Per-API SLIs/SLOs including security error budgets. Emit structured, signed logs for traceability (correlation IDs, user/consent IDs).

4) Cloud-native security and confidential computing - Platform posture: CSPM/CIEM to continuously evaluate IAM, network, storage, and KMS configurations. Enforce least-privilege roles, VPC/network policies, and private service endpoints. - Data protection: Envelope encryption backed by HSM/KMS with key rotation and separation of duties; tokenise PII using format-preserving techniques; use TDE for databases and column-level encryption for sensitive fields. - Confidential computing for AI/analytics: Where feasible, protect data-in-use with TEEs (e.g., AMD SEV, Intel TDX) for selected model training or inference workloads. Validate attestation before releasing keys. - Resilience: Define RPO/RTO per service; automate backup/restore tests; apply multi-region patterns with deterministic failover runbooks and topology-aware rate limiting.

5) AI-augmented detection and automated response - Telemetry engineering: Standardise logs, traces, and metrics across apps, gateways, meshes, and infrastructure. Enrich with identity and business context (customer, product, consent). - Analytics: Combine deterministic detections (rules mapped to MITRE ATT&CK) with ML-based UEBA to surface credential misuse and API abuse. Apply explainable features and bounded automation to avoid opaque decisions. - LLM guardrails: For code assistants, enforce repository allowlists, privacy filters, and licence constraints; for customer-facing AI, filter prompts/outputs, detect prompt injection, and redact PII. Inventory and version models, capture lineage, and monitor drift. - SOAR integration: Automate common responses—quarantine a pod by labelling and network policy, revoke tokens, rotate credentials, block IP/device, pause a pipeline—subject to human-in-the-loop for high-impact actions.

6) Compliance-by-design and incident readiness - Map controls to PCI DSS 4.0 (e.g., authenticated scans, segmentation validation, targeted risk analyses), DORA (ICT risk management, incident reporting, testing), ISO/IEC 27001:2022, and relevant local regulations. Use control-as-code to produce immutable evidence on demand. - Incident response: Pre-stage playbooks for ransomware, API abuse, data leakage, and model compromise. Classify severity quickly; exercise with red team and chaos drills. Ensure forensic readiness (time synchronisation, immutable log stores, golden image repositories).

7) Third-party and supply-chain risk management - Onboarding: Require SOC 2/ISO certificates or equivalent; assess against CAIQ; mandate SBOMs and signed artefacts; evaluate SLSA/Supply-chain assurances and vulnerability disclosure processes. - Access and data minimisation: Enforce least-privilege, time-bound access with SCIM for lifecycle management; broker access via APIs with FAPI mTLS/DPoP; segment partner traffic. - Continuous monitoring: Score vendors on telemetry quality, patch SLAs, and control efficacy; integrate findings into identity and SOAR to revoke access automatically on risk signals.

Architecture Blueprint: Zero Trust SDLC-to-Production with AI-Augmented Defences

classDiagram class DevSecOpsPipeline { +Pre-commit hooks +SAST/SCA/IaC scans +Signed builds & SBOM +Provenance attestations } class IdentityProvider { +OIDC/OAuth2 +FIDO2 MFA +Conditional Access } class API_Gateway { +FAPI profiles +mTLS/DPoP +Schema validation +Rate limiting } class ServiceMesh { +SPIFFE IDs +mTLS +AuthZ policies +Telemetry } class KMS_HSM { +Envelope encryption +Key rotation +Attestation gating } class CSPM_CIEM { +Posture checks +Least privilege +Drift detection } class SIEM_XDR { +UEBA ML +Deterministic rules +MITRE mapping } class SOAR { +Playbooks +JIT remediation +Ticketing integration } class DataTokenisation { +PII tokenisation +Format preserving } class ConfidentialCompute { +TEE attestation +Protected inference } DevSecOpsPipeline --> API_Gateway : Signed artefacts/Configs DevSecOpsPipeline --> ServiceMesh : Signed images DevSecOpsPipeline --> CSPM_CIEM : Policy-as-code IdentityProvider --> API_Gateway : OAuth/OIDC IdentityProvider --> ServiceMesh : Workload identities ServiceMesh --> KMS_HSM : Key requests API_Gateway --> ServiceMesh : Backend calls (mTLS) ServiceMesh --> DataTokenisation : De-tokenise as authorised ServiceMesh --> ConfidentialCompute : Sensitive AI workloads CSPM_CIEM --> SIEM_XDR : Posture events ServiceMesh --> SIEM_XDR : Telemetry API_Gateway --> SIEM_XDR : API logs SIEM_XDR --> SOAR : Alerts SOAR --> API_Gateway : Block/quarantine SOAR --> ServiceMesh : Network policy/quarantine SOAR --> IdentityProvider : Revoke tokens/Access

Figure 2: An identity-first architecture from code to runtime. Signed artefacts and SBOMs flow into controlled gateways and meshes; identity and policy are enforced end to end; telemetry feeds AI-augmented detection and automated, governed response.

Implementation Detail: AI-driven detection and automated containment flow

sequenceDiagram participant Client as "API Client / TPP" participant Gateway as "API Gateway" participant Mesh as "Service Mesh" participant App as "Banking Service" participant SIEM as "SIEM / XDR (UEBA + Rules)" participant SOAR as "SOAR Orchestrator" participant IdP as "Identity Provider" participant K8s as "Cluster Control Plane" Client->>Gateway: "Request with mTLS + token" Gateway->>Gateway: "Validate FAPI, schema, rate limits" Gateway->>Mesh: "mTLS to backend (SPIFFE)" Mesh->>App: "Forward request (AuthZ check)" App-->>Mesh: Response Mesh-->>Gateway: "Response + telemetry" Gateway-->>Client: Response par Telemetry Gateway->>SIEM: "Structured logs / metrics / traces" Mesh->>SIEM: Service telemetry end SIEM->>SIEM: "Correlate + ML anomaly score" SIEM-->>SOAR: "High severity alert (token replay pattern)" SOAR->>Gateway: "Block token / client cert (temporary)" SOAR->>IdP: "Revoke refresh / Access tokens" SOAR->>K8s: "Label pod for quarantine, apply NetworkPolicy" SOAR->>App: "Trigger key rotation via KMS (if needed)" SOAR->>SOAR: "Create ticket, notify on-call, attach artefacts" Note over SIEM,SOAR: Human-in-the-loop approval for high-impact actions

Figure 3: End-to-end detection and containment: deterministic checks plus ML flag a replay pattern; SOAR enforces temporary blocks, revokes tokens, quarantines workloads, rotates keys, and creates auditable records.

Security, Performance, and Trade-offs

  • Latency and complexity: Zero Trust controls (mTLS, token introspection, schema validation) and service meshes add hops and CPU overhead. Mitigations include sidecarless data planes where feasible, Envoy filter optimisation, smart token lifetimes, and caching for introspection—balanced against replay risks. Budget 3–10% additional latency at the API edge, tested per endpoint.
  • Operational overhead: Policy-as-code, signed artefacts, and attestation introduce tooling and skill requirements. Plan for platform engineering capacity, golden templates, and developer enablement. Without product-aligned ownership, teams may bypass controls; embed controls in self-service workflows.
  • AI detection limitations: ML models drift and can generate false positives, especially with seasonal demand (e.g., payday traffic). Use hybrid detection (rules + ML), retrain with feedback loops, and gate automated actions through risk-scored playbooks and human approval for high-impact steps. Ensure explainability to support investigations and regulatory scrutiny.
  • Privacy and sovereignty: Centralising telemetry and training detection models can conflict with data minimisation and cross-border constraints. Tokenise or anonymise event data, segregate PII, and enforce regional processing. Align with GDPR and local banking secrecy laws.
  • Vendor lock-in: Cloud-native security, gateways, and AI analytics often span proprietary features. Mitigate with open standards (SPIFFE, OpenTelemetry, OPA), portable artefacts (SBOMs, container signatures), and explicit exit planning.
  • Cryptography posture: Stronger controls (mTLS everywhere, sender-constrained tokens, HSM-backed keys) increase management complexity. Plan HSM capacity, FIPS-validated libraries, and early evaluation of post-quantum migration paths for data with long confidentiality windows.
  • Emergency access: JIT/JEA and strong gating must include secure break-glass mechanisms with non-repudiation and out-of-band alerting, tested routinely.

Governance remains critical. Controls must be mapped to risks and regulatory obligations, with evidence automatically produced and retained. Define clear SLOs for security controls (e.g., policy decision latency, signature verification rates, SBOM coverage), and treat deviations as incidents with owner accountability.

Parting Thoughts on Industry Direction

In the next 12–24 months, three shifts will define bank-grade coding security. First, identity-led Zero Trust will become table stakes, extending from workforce to workload identity with sender-constrained tokens and pervasive mTLS. Second, software supply-chain assurance will mature from “SBOMs on demand” to enforceable provenance—SLSA-level attestations verified at admission, with regulators and partners expecting signed evidence. Third, AI will professionalise within security operations and engineering: UEBA/XDR will lean on feature stores and consistent telemetry; LLM guardrails and model inventories will be standard; and confidential computing will protect select AI workloads processing sensitive data.

On the regulatory axis, PCI DSS 4.0’s evidence expectations and the EU’s DORA operational resilience regime will reward banks that automate control verification and incident classification. Open Banking standards will continue to converge around FAPI profiles and sender-constrained tokens. Forward-leaning organisations will also begin practical post-quantum cryptography planning for long-lived data.

If you want to benchmark your current DevSecOps, API security, and detection/response posture, MNB can share anonymised data and reference architectures. We can help you design an identity-first control plane, implement policy-as-code, and integrate AI detections with safe automation—without slowing delivery. Let’s discuss how to make your coding security measurable, automated, and resilient.


  • Building an identity-first control plane for Zero Trust in financial services (/insights/security/related-topic-1/)
  • Practical SBOMs and signed releases: enforcing provenance at scale (/insights/security/related-topic-2/)
  • FAPI in the real world: securing Open Banking APIs without killing performance (/insights/security/related-topic-3/)

About the Research Team

The MNB Technology Research Team consists of senior architects and engineers with backgrounds spanning global banking, healthcare, retail, defence, and public sector. Our work focuses on enterprise AI, secure distributed systems, and resilient operational delivery.

Work with Us

Ready to make · new · better?

Contact us to discuss how this architecture applies to your specific environment.

Final thoughts

Enterprise technology strategies succeed when architecture, operational resilience and responsible governance are designed together. This article is intended to help readers understand how to make systems more adaptive, observable and safe.

  • Build around distributed decision logic rather than a single orchestration bottleneck.
  • Use threshold-based governance to keep autonomous actions under control.
  • Maintain modular infrastructure so models, data and services can evolve independently.