Asfela AI Security Engineering — Professional
A 38-hour, hands-on course that turns security engineers and ML engineers into practitioners who can threat-model, attack, defend, and govern production AI systems.
By the end, you can do five things you can’t do today.
- Threat-model an LLM-powered application end-to-end. Data flow diagram, STRIDE-MA table with model-manipulation and agency-abuse threats, MITRE ATLAS mapping for the top findings, OWASP LLM Top 10 coverage matrix. You’ll produce one in Module 2 against a system you built in Module 1.
- Attack an AI system across the full kill chain. Prompt injection (direct + indirect), training data poisoning, model extraction and inversion, adversarial-example evasion, supply-chain compromise, agent escape. Hands-on, against deliberately-vulnerable targets that ship with the course.
- Defend an AI system with a measurable stack. Llama Guard at input, structured output enforcement, dual-LLM pattern for retrieval, intent verification for agent tool calls, prompt-response logging with Presidio PII redaction. You’ll measure attack-success-rate before vs. after and produce the before/after table CISOs ask for.
- Govern an AI program against NIST AI RMF and EU AI Act. Model cards, system cards, data sheets, AI-BOM, incident-reporting playbooks, Article 11 technical documentation, risk register. The artifact pack that survives a regulator review.
- Operate an AI red-team function inside an engineering org. Garak + PyRIT + promptfoo wired into CI; nightly automated scans; trend dashboards; an IR playbook with AI-specific containment steps; the org-design and procurement patterns that make the function durable.
Maps to the OWASP Top 10 for LLMs, MITRE ATLAS, NIST AI RMF and the EU AI Act.
-
Module 0 — Orientation & Environment Setup
- Lesson Module 0 — Orientation & Environment Setup: overview
- Lesson L0.1 — Welcome & how this course works
- Lesson L0.2 — The AI security landscape in 2026
- Lesson L0.3 — Environment setup & sanity check (Lab)
-
Module 1 — AI/ML Foundations for Security Engineers
- Lesson Module 1 — AI/ML Foundations for Security Engineers: overview
- Lesson L1.1 — Machine learning in 30 minutes
- Lesson L1.2 — Neural networks and deep learning
- Lesson L1.3 — LLMs explained: tokens, embeddings, transformers, decoding
- Lesson L1.4 — The modern AI pipeline
- Lesson L1.5 — Where attacks happen at each pipeline stage
- Lesson L1.6 — Run an LLM locally vs via API; inspect a model card (Lab)
- Lesson L1.7 — Build a tiny RAG system from scratch (Lab)
- Lesson L1.8 — Fine-tune a small model with LoRA *(Lab, Optional)* (Lab)
- Quiz Module 1 — AI/ML Foundations for Security Engineers: quiz
- Assignment Module 1 — AI/ML Foundations for Security Engineers: written questions
-
Module 2 — AI Security Foundations for ML Engineers
- Lesson Module 2 — AI Security Foundations for ML Engineers: overview
- Lesson L2.1.1 — Threat modeling fundamentals reviewed
- Lesson L2.1.2 — STRIDE adapted for AI systems
- Lesson L2.2.1 — Mapping the AI attack surface: the five planes
- Lesson L2.2.2 — Model & data planes in depth
- Lesson L2.2.3 — Application, agent & supply-chain planes in depth
- Lesson L2.3.1 — What ATLAS is and how it relates to ATT&CK
- Lesson L2.3.2 — ATLAS tactics: the AI kill chain
- Lesson L2.3.3 — Reading ATLAS techniques and case studies
- Lesson L2.4.1 — OWASP LLM Top 10: overview and how it differs from web-app Top 10
- Lesson L2.4.2 — OWASP LLM01–LLM03 in detail
- Lesson L2.4.3 — OWASP LLM04–LLM07 in detail
- Lesson L2.4.4 — OWASP LLM08–LLM10 in detail
- Lesson L2.5.1 — NIST AI RMF: what it is and when you reach for it
- Lesson L2.5.2 — NIST AI RMF: Govern, Map, Measure, Manage
- Lesson L2.5.3 — EU AI Act: risk tiers and obligations
- Lesson L2.6 — Threat-model the Module 1 RAG app (Lab)
- Lesson L2.7 — Risk-tier a portfolio of AI features under the EU AI Act *(Lab, Optional)* (Lab)
- Quiz Module 2 — AI Security Foundations for ML Engineers: quiz
- Assignment Module 2 — AI Security Foundations for ML Engineers: written questions
-
Module 3 — Prompt Injection & LLM Application Attacks
- Lesson Module 3 — Prompt Injection & LLM Application Attacks: overview
- Lesson L3.1.1 — Direct prompt injection fundamentals
- Lesson L3.1.2 — Jailbreaks vs injections: the taxonomy
- Lesson L3.2.1 — Indirect prompt injection: the architectural pattern
- Lesson L3.2.2 — Indirect-PI delivery vectors and why they dominate
- Lesson L3.3.1 — Model output is untrusted input
- Lesson L3.4.1 — Excessive agency: when tools are too broad
- Lesson L3.4.2 — Agent escape patterns and tool-call defenses
- Lesson L3.5.1 — System-prompt extraction and secrets-in-prompts
- Lesson L3.6 — Break a vulnerable chatbot: direct PI + system-prompt extraction (Lab)
- Lesson L3.7 — Indirect PI via poisoned RAG corpus (Lab)
- Lesson L3.8 — Agent escape: coerce a tool-using agent (Lab)
- Lesson L3.9 — Build layered defenses against prompt injection (Lab)
- Lesson L3.10 — Run Garak / PyRIT against your endpoint *(Lab, Optional)* (Lab)
- Lesson L3.11 — Multi-modal prompt injection *(Lab, Optional)* (Lab)
- Quiz Module 3 — Prompt Injection & LLM Application Attacks: quiz
- Assignment Module 3 — Prompt Injection & LLM Application Attacks: written questions
-
Module 4 — Data Poisoning, Backdoors & Supply Chain
- Lesson Module 4 — Data Poisoning, Backdoors & Supply Chain: overview
- Lesson L4.1.1 — Training data poisoning fundamentals
- Lesson L4.1.2 — Targeted poisoning and PoisonGPT-style attacks
- Lesson L4.2.1 — Backdoor attacks: triggers and BadNets
- Lesson L4.2.2 — Sleeper agents and backdoor persistence
- Lesson L4.3.1 — Harmful fine-tuning and alignment removal
- Lesson L4.4.1 — Model supply chain attack surface
- Lesson L4.4.2 — Pickle deserialization and weight-format risk
- Lesson L4.4.3 — Model card lies and provenance gaps
- Lesson L4.5.1 — Dependency risk in AI stacks
- Lesson L4.5.2 — AI-BOM and provenance tracking
- Lesson L4.6 — Poison a sentiment classifier and measure attack success (Lab)
- Lesson L4.7 — Plant a backdoor trigger in a small classifier (Lab)
- Lesson L4.8 — Scan HuggingFace models for malicious pickles (Lab)
- Lesson L4.9 — Build an AI-BOM for a stack *(Lab, Optional)* (Lab)
- Quiz Module 4 — Data Poisoning, Backdoors & Supply Chain: quiz
- Assignment Module 4 — Data Poisoning, Backdoors & Supply Chain: written questions
-
Module 5 — Model Extraction, Inversion & Membership Inference
- Lesson Module 5 — Model Extraction, Inversion & Membership Inference: overview
- Lesson L5.1.1 — Model extraction fundamentals
- Lesson L5.1.2 — Query-based extraction techniques
- Lesson L5.2.1 — Membership inference attacks
- Lesson L5.3.1 — Model inversion & training-data extraction
- Lesson L5.3.2 — Embedding-leak attacks
- Lesson L5.4.1 — DP-SGD and federated learning
- Lesson L5.4.2 — Output filtering & operational defenses
- Lesson L5.5 — Extract a small classifier through an API (Lab)
- Lesson L5.6 — Run a membership inference attack (Lab)
- Lesson L5.7 — Reproduce a slice of training-data extraction from an LLM *(Lab, Optional)* (Lab)
- Quiz Module 5 — Model Extraction, Inversion & Membership Inference: quiz
- Assignment Module 5 — Model Extraction, Inversion & Membership Inference: written questions
-
Module 6 — Adversarial Examples & Evasion
- Lesson Module 6 — Adversarial Examples & Evasion: overview
- Lesson L6.1.1 — Adversarial examples: what they are and why they exist
- Lesson L6.1.2 — White-box vs black-box, and the transferability bridge
- Lesson L6.2.1 — Image attacks: FGSM, PGD, and beyond
- Lesson L6.3.1 — Text attacks: character, word, and sentence-level perturbations
- Lesson L6.4.1 — Evasion in production: spam, content moderation, fraud
- Lesson L6.5.1 — Robustness defenses: adversarial training, preprocessing, certified defenses
- Lesson L6.6 — FGSM / PGD attack on an image classifier (Lab)
- Lesson L6.7 — TextAttack against a text classifier (Lab)
- Lesson L6.8 — Bypass a content moderation model *(Lab, Optional)* (Lab)
- Quiz Module 6 — Adversarial Examples & Evasion: quiz
- Assignment Module 6 — Adversarial Examples & Evasion: written questions
-
Module 7 — Securing the AI Pipeline (MLSecOps & Defenses)
- Lesson Module 7 — Securing the AI Pipeline (MLSecOps & Defenses): overview
- Lesson L7.1.1 — AI-SDLC fundamentals
- Lesson L7.1.2 — Securing the AI lifecycle stage-by-stage
- Lesson L7.2.1 — Model governance, signing & provenance
- Lesson L7.3.1 — Runtime guardrails landscape
- Lesson L7.3.2 — Structured output and the dual-LLM pattern
- Lesson L7.4.1 — Observability: what to log and why
- Lesson L7.4.2 — PII redaction, drift & abuse detection
- Lesson L7.5.1 — AI red-team program design
- Lesson L7.5.2 — Red-team tooling: Garak, PyRIT, promptfoo
- Lesson L7.6.1 — AI incident response playbooks
- Lesson L7.7 — Wrap an LLM app with Llama Guard + structured output (Lab)
- Lesson L7.8 — Wire Garak into a CI eval harness (Lab)
- Lesson L7.9 — Prompt/response logging with PII redaction (Lab)
- Lesson L7.10 — Continuous eval harness with promptfoo *(Lab, Optional)* (Lab)
- Quiz Module 7 — Securing the AI Pipeline (MLSecOps & Defenses): quiz
- Assignment Module 7 — Securing the AI Pipeline (MLSecOps & Defenses): written questions
-
Module 8 — AI Governance, Risk & Compliance
- Lesson Module 8 — AI Governance, Risk & Compliance: overview
- Lesson L8.1.1 — NIST AI RMF in practice: from framework to program
- Lesson L8.1.2 — NIST AI RMF Profiles: GenAI, secure software, sector-specific
- Lesson L8.2.1 — EU AI Act compliance program design
- Lesson L8.2.2 — Article 11: the technical documentation package
- Lesson L8.3.1 — Building an AI security program: org design, reporting, hiring
- Lesson L8.3.2 — Procurement & vendor management for AI
- Lesson L8.4.1 — AI incident reporting obligations
- Lesson L8.5.1 — Model cards: structure, audience, common gaps
- Lesson L8.5.2 — System cards, data sheets & AI-BOM revisited
- Lesson L8.6.1 — Case study teardown: a 2025 AI incident
- Lesson L8.7 — Author a model card + risk assessment for the M1 RAG app (Lab)
- Quiz Module 8 — AI Governance, Risk & Compliance: quiz
- Assignment Module 8 — AI Governance, Risk & Compliance: written questions
-
Module 9 — Capstone Project
- Lesson Module 9 — Capstone Project: overview
- Lesson L9.1 — Helios Health: scenario brief
- Assignment Capstone submission
-
Module 10 — Certification Exam
- Lesson Module 10 — Certification Exam: overview
- Lesson L10.1 — Exam instructions and format
- Quiz Certification exam
- Lesson L10.4 — Scoring, certificate issuance, and retake policy
- Lesson Course completion: where you go from here