Skip to main content
Home › Categories › Artificial Intelligence & Computing › Threat Modeling AI Systems: Risks, Boundaries, and Controls

Threat Modeling AI Systems: Risks, Boundaries, and Controls

Author: ZUVDEX Team 4 min read
threat modeling AI systems AI security threat model prompt injection risks model supply chain AI access control secure AI deployment

A system-level method for identifying and mitigating security risks before and after AI deployment. This guide explains the core concepts, practical trade-offs, evaluation choices, and responsible implementation steps for the topic.

Key Highlights

  • Threat-model the application, data flows, integrations, identities, suppliers, and deployment pipeline.
  • Enforce permissions in trusted application code; model instructions are not authorization.
  • Constrain tools, validate outputs, protect secrets, and review retrieved or user-supplied content.
  • Retest after changes and maintain incident response, monitoring, and residual-risk documentation.

Map the AI system and trust boundaries

Map the whole system, not only the model. Include users, prompts, model provider, retrieval corpus, tools, plugins, logs, identity systems, build pipeline, and downstream actions. Mark trust boundaries and data flows. Ask what an attacker, careless user, compromised dependency, or misconfigured administrator could read, change, trigger, or exfiltrate.

Address model-specific attack paths

For LLM applications, assess direct and indirect prompt injection, sensitive data disclosure, excessive tool permissions, insecure output handling, unsafe plugin actions, and poisoned or untrusted retrieval content. Treat model output as untrusted input. Apply authorization in deterministic application code; a model instruction is not an access-control mechanism.

Apply deterministic security controls

Use least privilege for tools and service identities, isolate secrets, validate structured outputs, constrain network access, limit sensitive context, and require human approval for high-impact actions. Protect model and dataset provenance, scan dependencies, review vendor terms, and log security-relevant events without retaining unnecessary personal data.

Retest and govern residual risk

Prioritize risks by likelihood, impact, exposure, and recoverability. Test controls with red-team scenarios and realistic user flows; document residual risks and an incident owner. Monitor changes to models, prompts, tools, retrieval sources, and vendors. NIST AI RMF and secure-development guidance can structure risk work, but do not certify a system safe.

Example: constrain an AI agent tool

If an assistant can create service tickets, give it only the ticket fields and actions required. Validate proposed values, check the user’s permissions in application code, require confirmation for sensitive changes, and log the action. A prompt that says “never access another account” is not a substitute for server-side authorization.

FAQs

Does a system prompt prevent prompt injection?

No. Prompt instructions can help shape behavior but are not a security boundary. Use least privilege, input handling, tool restrictions, authorization checks, and monitoring.

Should an AI agent have access to every available tool?

No. Give each workflow only the permissions and tools required for its task, and require confirmation or human review for sensitive actions.

Is model security separate from application security?

They overlap. Secure AI requires conventional identity, software, data, and infrastructure controls plus tests for model-specific behaviors and integrations.

References & Sources

  • OWASP — Top 10 for LLM Applications https://owasp.org/www-project-top-10-for-large-language-model-applications/
  • NIST — AI Risk Management Framework https://www.nist.gov/itl/ai-risk-management-framework
  • NIST — Secure Software Development Framework https://csrc.nist.gov/projects/ssdf