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 learningIntroduction 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 learningAI threat landscape
Learn about the evolving AI threat landscape, common attack surfaces, adversarial techniques, emerging vulnerabilities, and risks across the AI application lifecycle.
Start learningLLM security architecture
Understand how to design secure LLM application architectures using trusted boundaries, identity controls, input validation, output filtering, isolated execution, and monitoring.
Start learningPrompt 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 learningDirect 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 learningIndirect 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 learningJailbreaking attacks
Learn how jailbreak techniques attempt to bypass model safety restrictions, examine common attack patterns, and understand the limitations of prompt-based defenses.
Start learningPrompt leakage
Understand how confidential instructions, internal context, or application details can be exposed through model responses and how to reduce unintended disclosure.
Start learningSystem 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 learningSensitive 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 learningData 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 learningPersonal 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 learningTraining 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 learningModel 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 learningMembership 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 learningData poisoning
Explore data poisoning attacks that manipulate training or fine-tuning datasets to influence model behavior, introduce vulnerabilities, or reduce prediction reliability.
Start learningAdversarial 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 learningModel 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 learningInsecure 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 learningExcessive 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 learningImproper 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 learningLLM 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 learningAuthentication 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 learningRole-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 learningAI guardrails
Understand AI guardrails as application-level controls that help enforce safety, policy, privacy, and business requirements around model inputs, outputs, and actions.
Start learningInput 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 learningContent 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 learningOutput 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 learningStructured 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 learningSecure function calling
Explore security controls for LLM function calling, including argument validation, authorization checks, restricted operations, safe execution, and verification of returned results.
Start learningSecure tool execution
Learn how to execute agent tools safely through input validation, least-privilege access, execution limits, controlled environments, and comprehensive error handling.
Start learningTool 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 learningSandboxing 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 learningAI 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 learningRAG 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 learningDocument-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 learningVector database security
Explore vector database security, including authentication, authorization, encryption, network isolation, metadata protection, backups, and secure access to embeddings and documents.
Start learningCross-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 learningSecure 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 learningModel supply-chain security
Explore risks across the AI model supply chain, including model artifacts, datasets, dependencies, registries, third-party services, and deployment pipelines.
Start learningThird-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 learningOpen-source model security
Learn how to assess open-source models for provenance, licensing, unsafe behavior, malicious modifications, dependency risks, and secure deployment requirements.
Start learningAI API security
Understand how to secure AI APIs through authentication, authorization, rate limiting, request validation, usage quotas, transport encryption, and abuse monitoring.
Start learningSecrets 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 learningEncryption 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 learningAI 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 learningOWASP 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 learningAI vulnerability assessment
Understand how to assess AI application vulnerabilities through architecture reviews, attack-surface analysis, configuration checks, dependency assessment, and risk prioritization.
Start learningAI 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 learningRed 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 learningAI risk evaluation
Understand how to evaluate AI risks by assessing likelihood, impact, affected users, operational consequences, existing safeguards, and appropriate risk mitigation measures.
Start learningResponsible AI
Learn the principles of responsible AI, including fairness, transparency, accountability, privacy, safety, human oversight, and responsible deployment practices.
Start learningProduction 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 learningPractice & 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.
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