Course Outline
Day 1: Foundations and Core Threats
Module 1: Introduction to the OWASP GenAI Security Project (1 hour)
Learning Objectives:
- Comprehend the transition from general OWASP Top 10 risks to GenAI-specific security challenges.
- Explore the ecosystem and available resources of the OWASP GenAI Security Project.
- Distinguish between traditional application security and the unique aspects of AI security.
Topics Covered:
- The mission and scope of the OWASP GenAI Security Project.
- An overview of the Threat Defense COMPASS framework.
- Navigating the AI security landscape and associated regulatory requirements.
- Comparing AI attack surfaces with traditional web application vulnerabilities.
Practical Exercise: Setting up the OWASP Threat Defense COMPASS tool and conducting an initial threat assessment
Module 2: OWASP Top 10 for LLMs - Part 1 (2.5 hours)
Learning Objectives:
- Master the first five critical vulnerabilities in LLMs.
- Understand relevant attack vectors and exploitation techniques.
- Apply effective mitigation strategies in practice.
Topics Covered:
LLM01: Prompt Injection
- Techniques for direct and indirect prompt injection.
- Hidden instruction attacks and cross-prompt contamination issues.
- Practical examples, including jailbreaking chatbots and bypassing safety mechanisms.
- Defense strategies such as input sanitization, prompt filtering, and differential privacy.
LLM02: Sensitive Information Disclosure
- Extraction of training data and leakage of system prompts.
- Analyzing model behavior to prevent sensitive information exposure.
- Addressing privacy implications and regulatory compliance.
- Mitigation techniques including output filtering, access controls, and data anonymization.
LLM03: Supply Chain Vulnerabilities
- Security concerns regarding third-party model dependencies and plugins.
- Risks from compromised training datasets and model poisoning.
- Conducting vendor risk assessments for AI components.
- Best practices for secure model deployment and verification.
Practical Exercise: A hands-on lab focused on demonstrating prompt injection attacks against vulnerable LLM applications and applying defensive measures
Module 3: OWASP Top 10 for LLMs - Part 2 (2 hours)
Topics Covered:
LLM04: Data and Model Poisoning
- Methods of training data manipulation.
- Modifying model behavior through poisoned inputs.
- Backdoor attacks and verifying data integrity.
- Prevention strategies like data validation pipelines and provenance tracking.
LLM05: Improper Output Handling
- Insecure processing of content generated by LLMs.
- Code injection risks arising from AI-generated outputs.
- Cross-site scripting vulnerabilities via AI responses.
- Frameworks for output validation and sanitization.
Practical Exercise: Simulating data poisoning attacks and implementing robust output validation mechanisms
Module 4: Advanced LLM Threats (1.5 hours)
Topics Covered:
LLM06: Excessive Agency
- Risks associated with autonomous decision-making and boundary violations.
- Managing agent authority and permissions.
- Preventing unintended system interactions and privilege escalation.
- Implementing guardrails and human oversight controls.
LLM07: System Prompt Leakage
- Vulnerabilities involving the exposure of system instructions.
- Disclosure of credentials and logic through prompts.
- Techniques used to extract system prompts.
- Securing system instructions and external configurations.
Practical Exercise: Designing secure agent architectures with appropriate access controls and monitoring
Day 2: Advanced Threats and Implementation
Module 5: Emerging AI Threats (2 hours)
Learning Objectives:
- Gain insight into cutting-edge AI security threats.
- Implement advanced detection and prevention techniques.
- Design resilient AI systems capable of withstanding sophisticated attacks.
Topics Covered:
LLM08: Vector and Embedding Weaknesses
- Vulnerabilities in RAG systems and vector database security.
- Embedding poisoning and similarity manipulation attacks.
- Adversarial examples in semantic search contexts.
- Securing vector stores and implementing anomaly detection.
LLM09: Misinformation and Model Reliability
- Methods for detecting and mitigating hallucinations.
- Considerations for bias amplification and fairness.
- Mechanisms for fact-checking and source verification.
- Integrating content validation and human oversight.
LLM10: Unbounded Consumption
- Resource exhaustion and denial-of-service attack vectors.
- Strategies for rate limiting and resource management.
- Cost optimization and budget controls.
- Performance monitoring and alerting systems.
Practical Exercise: Building a secure RAG pipeline with vector database protection and hallucination detection
Module 6: Agentic AI Security (2 hours)
Learning Objectives:
- Understand the unique security challenges posed by autonomous AI agents.
- Apply the OWASP Agentic AI taxonomy to real-world systems.
- Implement security controls for multi-agent environments.
Topics Covered:
- An introduction to Agentic AI and autonomous systems.
- The OWASP Agentic AI Threat Taxonomy, covering Agent Design, Memory, Planning, Tool Use, and Deployment.
- Security and coordination risks in multi-agent systems.
- Attacks involving tool misuse, memory poisoning, and goal hijacking.
- Securing agent communication and decision-making processes.
Practical Exercise: Conducting a threat modeling exercise using the OWASP Agentic AI taxonomy on a multi-agent customer service system
Module 7: OWASP Threat Defense COMPASS Implementation (2 hours)
Learning Objectives:
- Master the practical application of the Threat Defense COMPASS framework.
- Integrate AI threat assessment into organizational security programs.
- Develop comprehensive AI risk management strategies.
Topics Covered:
- A detailed examination of the Threat Defense COMPASS methodology.
- Integration with the OODA Loop: Observe, Orient, Decide, Act.
- Mapping threats to MITRE ATT&CK and ATLAS frameworks.
- Creating AI Threat Resilience Strategy Dashboards.
- Integrating with existing security tools and processes.
Practical Exercise: Performing a complete threat assessment using COMPASS for a Microsoft Copilot deployment scenario
Module 8: Practical Implementation and Best Practices (2.5 hours)
Learning Objectives:
- Design secure AI architectures from the foundation up.
- Implement monitoring and incident response for AI systems.
- Establish governance frameworks for AI security.
Topics Covered:
Secure AI Development Lifecycle:
- Applying security-by-design principles to AI applications.
- Code review practices for LLM integrations.
- Testing methodologies and vulnerability scanning techniques.
- Deployment security and production hardening.
Monitoring and Detection:
- AI-specific logging and monitoring requirements.
- Anomaly detection tailored for AI systems.
- Incident response procedures for AI security events.
- Forensics and investigation techniques.
Governance and Compliance:
- AI risk management frameworks and policies.
- Regulatory compliance considerations (including GDPR, AI Act, etc.).
- Third-party risk assessment for AI vendors.
- Security awareness training for AI development teams.
Practical Exercise: Designing a complete security architecture for an enterprise AI chatbot, encompassing monitoring, governance, and incident response procedures
Module 9: Tools and Technologies (1 hour)
Learning Objectives:
- Evaluate and implement AI security tools.
- Understand the current landscape of AI security solutions.
- Build practical detection and prevention capabilities.
Topics Covered:
- The AI security tool ecosystem and vendor landscape.
- Open-source security tools, including Garak, PyRIT, and Giskard.
- Commercial solutions for AI security and monitoring.
- Integration patterns and deployment strategies.
- Criteria and frameworks for tool selection and evaluation.
Practical Exercise: A hands-on demonstration of AI security testing tools and planning for their implementation
Module 10: Future Trends and Wrap-up (1 hour)
Learning Objectives:
- Understand emerging threats and future security challenges.
- Develop strategies for continuous learning and improvement.
- Create action plans for organizational AI security programs.
Topics Covered:
- Emerging threats such as deepfakes, advanced prompt injection, and model inversion.
- Future developments and the roadmap of the OWASP GenAI project.
- Building AI security communities and sharing knowledge.
- Continuous improvement and integrating threat intelligence.
Action Planning Exercise: Developing a 90-day action plan to implement OWASP GenAI security practices within participants' organizations
Requirements
- A general grasp of web application security principles.
- Basic familiarity with AI and Machine Learning concepts.
- Experience with security frameworks or risk assessment methodologies is advantageous.
Audience
- Cybersecurity professionals
- AI developers
- System architects
- Compliance officers
- Security practitioners
Testimonials (1)
I really enjoyed learning about AI attacks and the tools out there to begin practicing and actively using for security testing. I took a lot of knowledge away which I didn't have at the beginning and the course met what I hoped it would be. My favorite part shown from the training was Comet Browser and was amazed at what it could do. Definitely something will be looking into more. Overall it was a great course and enjoyed learning all OWASP GenAI Top 10.