Secure AI Architecture, Engineering, and Identity and Access Management (IAM)
Domain 4 of the ISC2 AI Security pilot exam outline, effective 26 October 2026, carries 18% of the exam weight. It covers 7 objectives and 39 study topics, listed below with short explanations written for exam preparation.
Open the Domain 4 mindmap Take the practice test Study the flashcards
4.1 Apply AI Architecture and Secure Design Principles
- Design strategies (ZT, DiD, Privacy by Design, Secure Defaults)
- Zero Trust: verify every call between components. Defense in depth: layer guardrails, authorization, sandboxing and monitoring so one failure is not fatal. Privacy by Design and secure defaults: the safe configuration is the one that ships.
- Threat modeling RAG, vector databases and inference
- Draw the data flows: user to app, app to retriever, retriever to vector store, context into the model, output to tools and users. Mark every trust boundary where untrusted content enters the context.
- Architectural trade-offs
- Latency, explainability, accuracy and cost pull against each other. A larger model may be more capable but slower, costlier and harder to explain; extra guardrail passes add latency. Record the trade-off decisions and who accepted them.
- Build vs. buy
- Buying (API or SaaS) is faster and shifts some controls to the provider but limits visibility and data control. Building or self-hosting gives control over data and weights at the cost of operating security yourself.
- Secure tool, API and plugin integration (MCP, A2A)
- The Model Context Protocol (MCP) connects models to tools and data; Agent2Agent (A2A) connects agents to each other. Authenticate servers and agents, pin and review tool definitions, scope permissions per tool and treat tool output as untrusted.
- LLM gateway Study topic
- A proxy between applications and models that centralizes authentication, policy, logging, DLP, rate limiting and model routing. One place to enforce rules that every application inherits.
4.2 Architect Secure AI Infrastructure and Platforms
- Hardening cloud, on-premises and hybrid deployments
- Baseline configurations, private endpoints, no public storage, patched drivers and frameworks, least-privilege cloud roles and posture management across every environment that hosts training or inference.
- Isolation and sandboxing
- Separate training from inference and tenants from each other with accounts, networks and containers or micro VMs. Sandbox code that agents generate and run, with no default network or credential access.
- Availability controls against resource exhaustion
- Quotas, rate limits, request size limits, timeouts, autoscaling caps and queue limits stop one user or attack from exhausting GPUs or budget.
- Isolated accelerator capacity
- Dedicated or properly partitioned GPUs (for example MIG) prevent noisy neighbors and cross-tenant data remnants in GPU memory. Confidential GPU modes add hardware attestation.
- Physical and environmental security
- High-density GPU racks need power, cooling and fire suppression designed for the load, plus physical access control to hardware that holds weights and data.
- Micro-segmentation Study topic
- Fine-grained network policy between components (app, gateway, vector store, model server, tools) so a compromised part cannot reach everything else.
4.3 Secure Data and Model Deployment Pipelines (e.g., MLOps/LLMOps)
- Secure CI/CD for models
- Build, test, sign and deploy model packages and containers through a controlled pipeline with protected branches, reviewed changes, scanned dependencies and least-privilege pipeline credentials.
- Ingestion and transformation integrity
- Authenticate data sources, validate schema and content, hash outputs of each step and encrypt data in transit and at rest through the pipeline.
- Lineage tracking for fine-tuning
- Record which base model, dataset versions, code and hyperparameters produced each fine-tuned artifact, so issues can be traced and reproduced.
- Validation checkpoints and gating
- Automated gates for accuracy, safety, bias, security tests and signature checks; promotion to production only when gates pass and an owner approves.
- Data unlearning
- Removing the influence of specific data from a trained model, for erasure requests or poisoned data. Exact unlearning means retraining without the data; approximate methods are cheaper but harder to verify.
4.4 Design and Implement AI Guardrails and Controls
- Prompt sanitization and content filtering
- Normalize and inspect inputs for injection patterns, hidden text and encoded payloads; filter outputs for harmful content, sensitive data and policy violations.
- Context boundary validation
- Keep trusted instructions separate from untrusted data in the context (delimiting, spotlighting, separate channels) and check that retrieved content stays within the user's authorization.
- Guardrails for autonomous behavior
- The harness and orchestration layer around an agent enforce step limits, tool allowlists, approval points, budgets and stop conditions outside the model, where the model cannot talk its way past them.
- Output handling
- Treat model output as untrusted input to the next system: encode it for the context (HTML, SQL, shell), use parameterized calls and validate structure before acting.
- Functional, performance and load testing
- Verify the AI feature does what it should, at the latency and throughput required, including under peak and adversarial load.
- Stress testing and exception handling
- Test behavior at and beyond limits (huge inputs, tool failures, provider outages) and make failures safe: refuse, degrade or hand off rather than act unpredictably.
4.5 Implement AI Identification and Authentication Strategies
- Human vs. non-human identities
- Workloads, agents, services and tools each need their own identity, separate from the people who build or use them. Non-human identities now outnumber human ones and are often over-privileged and unowned.
- Identity for non-repudiation
- Unique identities for every agent, plus signed or attributable logs, let you prove which agent acting for which user did what.
- Machine-to-machine authentication and API tokens
- OAuth 2.0 client credentials, mutual TLS and short-lived scoped tokens instead of long-lived static API keys.
- Federated identity, MFA and SSO
- Human access to AI platforms goes through the enterprise identity provider with SSO and phishing-resistant MFA. Workload identity federation lets workloads exchange a platform identity for short-lived tokens without stored secrets.
- Secrets and key management
- Store secrets in a vault, inject them at run time, rotate them and never place them in prompts, system prompts, model context or code repositories.
- Delegated authorization (on behalf of) Study topic
- An agent acting for a user should carry that user's delegated, scoped authority (for example OAuth token exchange), not a broad service account.
4.6 Design and Enforce AI Authorization and Access Controls
- Least privilege and separation of duties
- Each model, agent and tool gets only the permissions its task needs. No single agent should both request and approve a high-risk action.
- RBAC, ABAC, PBAC and JIT access
- Role-based access groups permissions by role. Attribute-based access evaluates attributes of subject, resource and context. Policy-based access centralizes rules as code. Just-in-time access grants elevated rights only for the task, then removes them.
- Execution boundaries and API scope limits
- Constrain what tools can do (read-only, specific records, amount limits) and where they can reach. Enforce in the downstream API, not in the prompt.
- Preventing excessive agency
- OWASP names three root causes: excessive functionality, excessive permissions and excessive autonomy. Remove unneeded tools, narrow permissions and require approval for high-impact actions.
- Over-delegation and lateral movement
- Agents that call other agents can chain privileges beyond what any user holds. Limit delegation depth, re-check authorization at each hop and segment agent access.
- Policy decision and enforcement points Study topic
- In Zero Trust architecture the policy decision point (PDP) decides and logs access; the policy enforcement point (PEP) allows or blocks the connection.
4.7 Manage Identity Lifecycle and Auditing
- AI identity inventories
- A list of every agent, service account, API key and token with owner, purpose, permissions and expiry. Orphaned AI identities are a standing risk.
- Provisioning and deprovisioning
- Create AI identities through an approved process with an owner; remove them and revoke tokens when the agent or project ends.
- Access reviews and ISPM
- Periodic reviews confirm each AI identity still needs its access. Identity Security Posture Management tools find excessive, unused or risky permissions continuously.
- Resource use auditing
- Token accounting, rate limits and session time-outs show and cap what each identity consumes, and surface anomalies such as a stolen key used for heavy inference.
Key concepts for Domain 4
- Enforce outside the model
- Authorization, limits and approvals belong in code and infrastructure the model cannot override.
- The system prompt is not a secret
- Assume it leaks. Never put credentials or the only copy of a security rule there.
- One identity per agent
- Distinct, short-lived, scoped credentials give least privilege, revocation and attribution.
- Output is input
- Whatever the model produces is untrusted input for the next system.
- Small blast radius
- Narrow agents, sandboxes and segmentation limit what one compromise reaches.
Key terms and acronyms
- MCP
- Model Context Protocol: an open protocol connecting models to tools and data sources.
- A2A
- Agent2Agent: an open protocol for communication between agents.
- DiD
- Defense in Depth.
- PoLP
- Principle of Least Privilege.
- SoD
- Separation of Duties.
- RBAC
- Role-Based Access Control.
- ABAC
- Attribute-Based Access Control.
- PBAC
- Policy-Based Access Control.
- JIT
- Just-in-Time access.
- ISPM
- Identity Security Posture Management.
- NHI
- Non-Human Identity: agents, workloads, service accounts and keys.
- M2M
- Machine-to-Machine.
- PDP
- Policy Decision Point.
- PEP
- Policy Enforcement Point.
- MIG
- Multi-Instance GPU: hardware partitioning of a GPU.
- MLOps
- Machine learning operations: practices for building, deploying and running models.
- LLMOps
- MLOps practices adapted for large language model applications.
- mTLS
- Mutual TLS: both sides authenticate with certificates.
- Excessive agency
- An LLM system able to take damaging actions because it has too much functionality, permission or autonomy.
Where candidates lose marks
- Where authorization is enforced
- Agent identity and credentials
- Excessive agency root causes
- RBAC, ABAC, PBAC and JIT
- Sandboxing agent code
- Output handling
Sample practice questions
Q1. According to OWASP, which three root causes typically lead to Excessive Agency in an LLM application?
- Excessive functionality, permissions and autonomy
- Large models, long prompts and high token costs that encourage shortcuts
- Weak encryption, open network ports and unpatched software on the host
- Biased training data, drift and hallucination in the underlying model
Show answer
A. Excessive functionality, permissions and autonomy OWASP traces excessive agency to tools the model does not need (functionality), rights broader than the task (permissions) and actions taken without approval (autonomy).
Q2. An assistant agent can send payments on behalf of users. Which control BEST limits harm from a manipulated instruction?
- Raising the agent's spending limit so failed payments are less frequent
- Human approval before each payment
- Letting the agent decide alone so that payments are not delayed for users
- Hiding the payment tool's description so attackers cannot learn its name
Show answer
B. Human approval before each payment High-impact, irreversible actions need a human checkpoint. An approval step shows the payee and amount to the user and stops injected payments.