Chapter 16 mapped the threat landscape. This chapter is the engineering handbook that follows from the map, in the same relationship that Chapter 9B of Architecture as Code bears to Chapter 9 (72, Nordqvist, 2025). It covers a threat-modelling method, the controls at each layer from training data to tool execution, red teaming as a pipeline stage, incident response under the European reporting duties, and the evidence an assurance function will ask for.
The organisations I work with rarely lack awareness of AI threats; they lack a repeatable way to turn it into controls that survive the next release. The remedy is that of Architecture as Code: declare the intent, version it, test it on every change, and derive evidence from the pipeline. ENISA's multilayer framework supplies the structure, with cybersecurity foundations below, AI-specific practices in the middle and sector-specific obligations on top (19, ENISA, 2023); this chapter works through the middle layer.
The running example, a composite, is a payment-dispute assistant at a pan-European retail bank. The assistant retrieves the dispute policy and case history, drafts a resolution, and, as an agent, can open a case and propose a refund through the dispute API. The bank is a financial entity under Regulation (EU) 2022/2554 (DORA), the assistant processes personal data under the GDPR, and the model is a third-party general-purpose AI model hosted within the Union.
Primary topics explored
- From the threat landscape to an engineering practice
- A threat-modelling method for AI systems
- Securing the data and training path
- Securing retrieval and RAG
- Securing inference and the AI gateway
- Securing agents and tool use
About AI Platform and Security
AI Platform and Security is Book 3 of The Transformed Architecture. It shows how large European enterprises and public authorities build, secure and operate the platform on which artificial intelligence runs: data, models and DevSecMLOps, retrieval and agents, infrastructure and sovereignty, AI security engineering, evaluation, observability and cost.
The companion volume AI Governance covers risk management, governance, assurance, organisation and leadership; Architecture as Code supplies the underlying discipline.
Platform engineers, security architects, MLOps teams, AI architects and technical decision-makers.
Continue with the full chapter
Chapter 17: AI Security Engineering in Practice in AI Platform and Security gives the detailed explanations, practical examples and implementation patterns behind this summary.
This whitepaper belongs to “Security” and is one of 29 drawn from the manuscript.