InterviewTreedInterviewTreed
All learning paths

AI & AI Engineering

AI Security

Learn about prompt injection, data leakage, jailbreaking, guardrails, secure tool calling, AI threat modeling, and secure AI application design.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

AI security fundamentals

Understand the foundations of AI security, including threats to models, data, prompts, tools, infrastructure, and the applications built around AI systems.

Start learning

Introduction to LLM security

Explore the security challenges of large language models, including prompt injection, sensitive information disclosure, unsafe outputs, model misuse, and insecure integrations.

Start learning

AI threat landscape

Learn about the evolving AI threat landscape, common attack surfaces, adversarial techniques, emerging vulnerabilities, and risks across the AI application lifecycle.

Start learning

LLM security architecture

Understand how to design secure LLM application architectures using trusted boundaries, identity controls, input validation, output filtering, isolated execution, and monitoring.

Start learning

Prompt injection

Learn how prompt injection manipulates model instructions through untrusted content and how layered defenses can reduce the risk of unintended agent actions or information disclosure.

Start learning

Direct prompt injection

Understand direct prompt injection attacks in which users deliberately craft inputs to override instructions, bypass restrictions, or manipulate an LLM's responses.

Start learning

Indirect prompt injection

Explore indirect prompt injection attacks embedded in external content such as documents, web pages, emails, and retrieved data that an AI application processes.

Start learning

Jailbreaking attacks

Learn how jailbreak techniques attempt to bypass model safety restrictions, examine common attack patterns, and understand the limitations of prompt-based defenses.

Start learning

Prompt leakage

Understand how confidential instructions, internal context, or application details can be exposed through model responses and how to reduce unintended disclosure.

Start learning

System prompt extraction

Explore techniques used to elicit hidden system prompts and internal instructions, along with practical measures for protecting sensitive configuration and avoiding reliance on prompt secrecy.

Start learning

Sensitive information disclosure

Learn how AI applications may expose confidential information through prompts, responses, logs, retrieved documents, and connected tools, and how to prevent unauthorized disclosure.

Start learning

Data privacy in AI applications

Understand privacy risks throughout AI application workflows, including data collection, model processing, storage, logging, retention, and sharing with external providers.

Start learning

Personal data protection

Learn how to identify and protect personally identifiable information in AI systems through data minimization, access restrictions, masking, retention policies, and privacy controls.

Start learning

Training data extraction

Explore how attackers may attempt to recover memorized or sensitive information from model outputs and understand the risks associated with training data exposure.

Start learning

Model inversion attacks

Understand model inversion attacks, where adversaries use model outputs or access to infer sensitive characteristics or information about the data used during training.

Start learning

Membership inference attacks

Learn how membership inference attacks attempt to determine whether a particular record was included in a model's training dataset and why this matters for data privacy.

Start learning

Data poisoning

Explore data poisoning attacks that manipulate training or fine-tuning datasets to influence model behavior, introduce vulnerabilities, or reduce prediction reliability.

Start learning

Adversarial machine learning

Understand adversarial machine learning, including attacks that exploit model weaknesses through carefully crafted inputs, manipulated data, and changes to the learning process.

Start learning

Model denial-of-service attacks

Learn how excessive or specially crafted requests can consume model resources, increase inference costs, degrade availability, and disrupt legitimate AI application usage.

Start learning

Insecure output handling

Understand the risks of trusting AI-generated content without validation, including unsafe HTML rendering, command execution, SQL injection, and unintended downstream actions.

Start learning

Excessive agency in AI systems

Explore the risks of granting AI systems excessive autonomy, permissions, or tool access, and learn how approval requirements and restricted capabilities reduce unintended actions.

Start learning

Improper input validation

Learn how unvalidated prompts, uploaded files, API parameters, and external content can introduce security risks, and how application-level validation helps enforce safe input boundaries.

Start learning

LLM access control

Understand how to restrict access to LLM capabilities, models, prompts, conversation data, and connected resources based on authenticated identities and authorization policies.

Start learning

Authentication and authorization for AI applications

Learn how authentication establishes user identity and authorization determines permitted AI operations, including access to conversations, models, tools, and private data.

Start learning

Role-based access control for AI systems

Explore role-based access control for AI applications, including roles, permissions, resource ownership, privileged operations, and enforcement across agent workflows.

Start learning

AI guardrails

Understand AI guardrails as application-level controls that help enforce safety, policy, privacy, and business requirements around model inputs, outputs, and actions.

Start learning

Input and output guardrails

Learn how input and output guardrails inspect requests and generated responses to detect unsafe content, policy violations, sensitive information, and unexpected formats.

Start learning

Content moderation

Explore content moderation techniques for identifying harmful, abusive, or policy-violating content in user prompts and AI-generated responses using rules, classifiers, and model-based checks.

Start learning

Output validation and sanitization

Understand how to validate and sanitize model-generated content before displaying it, storing it, or passing it to downstream systems and application components.

Start learning

Structured output validation

Learn how to validate JSON and other structured model responses against schemas, required fields, data types, allowed values, and business rules before processing them.

Start learning

Secure function calling

Explore security controls for LLM function calling, including argument validation, authorization checks, restricted operations, safe execution, and verification of returned results.

Start learning

Secure tool execution

Learn how to execute agent tools safely through input validation, least-privilege access, execution limits, controlled environments, and comprehensive error handling.

Start learning

Tool permissions and access control

Understand how to assign permissions to individual agent tools, restrict sensitive functions, enforce user-specific authorization, and prevent unauthorized tool invocation.

Start learning

Sandboxing AI-generated code

Explore how to run AI-generated code in isolated environments with restricted filesystem, network, process, and resource access to limit the impact of unsafe execution.

Start learning

AI agent security

Understand the security risks of autonomous agents, including prompt injection, unsafe tool calls, excessive permissions, memory poisoning, data exposure, and uncontrolled execution.

Start learning

RAG security fundamentals

Learn the security foundations of retrieval-augmented generation, including document permissions, secure indexing, tenant isolation, retrieval filtering, and protection against malicious content.

Start learning

Document-level access control in RAG

Understand how to enforce document-level permissions during ingestion and retrieval so users and agents can access only the information they are authorized to see.

Start learning

Vector database security

Explore vector database security, including authentication, authorization, encryption, network isolation, metadata protection, backups, and secure access to embeddings and documents.

Start learning

Cross-tenant data leakage

Learn how shared AI infrastructure and retrieval systems can expose information between tenants, and how tenant-aware indexing, filtering, and authorization prevent data leakage.

Start learning

Secure retrieval and context isolation

Understand how to retrieve authorized information and isolate context between users, sessions, and tenants before providing documents to an LLM.

Start learning

Model supply-chain security

Explore risks across the AI model supply chain, including model artifacts, datasets, dependencies, registries, third-party services, and deployment pipelines.

Start learning

Third-party model risks

Understand security, privacy, availability, and compliance risks when using external model providers, including data handling practices, service dependencies, and provider access controls.

Start learning

Open-source model security

Learn how to assess open-source models for provenance, licensing, unsafe behavior, malicious modifications, dependency risks, and secure deployment requirements.

Start learning

AI API security

Understand how to secure AI APIs through authentication, authorization, rate limiting, request validation, usage quotas, transport encryption, and abuse monitoring.

Start learning

Secrets management for AI applications

Learn how to protect API keys, model provider credentials, database passwords, and other sensitive configuration using secret managers, environment controls, rotation, and restricted access.

Start learning

Encryption and data protection

Explore encryption and data protection practices for AI systems, including encryption in transit and at rest, key management, secure storage, and protection of sensitive model inputs and outputs.

Start learning

AI threat modeling

Learn how to threat-model AI applications by identifying assets, trust boundaries, entry points, threat actors, attack scenarios, security controls, and residual risks.

Start learning

OWASP Top 10 for LLM Applications

Study the OWASP Top 10 for LLM Applications and understand major risks such as prompt injection, sensitive information disclosure, supply-chain vulnerabilities, excessive agency, and vector weaknesses.

Start learning

AI vulnerability assessment

Understand how to assess AI application vulnerabilities through architecture reviews, attack-surface analysis, configuration checks, dependency assessment, and risk prioritization.

Start learning

AI security testing

Learn how to test AI systems for security weaknesses using malicious prompts, authorization tests, output validation checks, data exposure scenarios, and automated security test cases.

Start learning

Red teaming and adversarial testing

Explore AI red teaming techniques for systematically testing model and application defenses against jailbreaks, prompt injection, data leakage, harmful outputs, and unsafe tool execution.

Start learning

AI risk evaluation

Understand how to evaluate AI risks by assessing likelihood, impact, affected users, operational consequences, existing safeguards, and appropriate risk mitigation measures.

Start learning

Responsible AI

Learn the principles of responsible AI, including fairness, transparency, accountability, privacy, safety, human oversight, and responsible deployment practices.

Start learning

Production AI security best practices

Explore production security practices for AI applications, including secure architecture, identity controls, prompt and output protection, tool restrictions, monitoring, incident response, and regular security assessments.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 100 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 100 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path