Contextual Layer: Business View
Conceptual Layer: Architecture Strategy
Security concepts for AI include Zero Trust for AI interactions where every prompt is untrusted input, data-centric security protecting data across training and inference, model governance controlling behaviour and auditability, and secure AI supply chain covering models, datasets, and dependencies. Control objectives: prevent unauthorised access to AI services, detect and mitigate adversarial AI attacks, ensure responsible and compliant AI usage, and enable secure integration with enterprise systems.
Logical Layer: Security Services and Controls
Identity and access control: fine-grained IAM and RBAC for AI services, managed identities for AI workloads, and just-in-time access for model operations. Data security: encryption at rest and in transit using KMS and Key Vault, data classification and tagging, and tokenisation for sensitive inputs. Application and model security: prompt validation and filtering, output guardrails and moderation, and isolation of system prompts and context. Monitoring and detection: AI-specific logging of prompts, responses, and decisions, anomaly detection for prompt abuse and exfiltration patterns, and SIEM integration.
Physical Layer: Technology and Platform Mapping
AWS implementation: Identity via IAM roles and SCPs. AI services via Bedrock and SageMaker. Network via VPC, PrivateLink, and API Gateway. Data via S3 with KMS encryption. Monitoring via CloudTrail, GuardDuty, and Security Hub. Azure implementation: Identity via Entra ID and Managed Identities. AI services via Azure OpenAI and Azure ML. Network via VNet and Private Endpoints. Monitoring via Defender for Cloud, Azure Monitor, and Sentinel.
Component Layer: Secure AI Design Patterns
Private AI Access Pattern routes all traffic via API Gateway or APIM with private endpoints enforced. Prompt Isolation Pattern separates user input, system prompts, and retrieved knowledge to prevent injection escalation. Secure RAG Pattern controls access to vector databases and logs all retrieval queries. AI Guardrails Pattern applies input sanitisation, output moderation, and policy enforcement.
Operational Layer: Run and Monitor
Continuous monitoring of AI usage patterns, threat detection for prompt anomalies and abuse indicators, and integration with SOC workflows. Key operational controls include drift detection for model and behaviour changes, logging of all inference interactions, and incident response playbooks for prompt injection attacks, data leakage incidents, and model compromise events.