SBA Certified SDVOSB | FL Certified Business Enterprise | SAM.gov Registered | MFMP Vendor
Core 5 | Security spine

LLM and Agent Security: Red Teaming and Evaluation

Part of the Applied AI Security and Assurance curriculum, authored by Cameron Hopkin, CISSP, CEH, CHFI. Published as a reference, not an enrollable course.

Description

The flagship course, and the one that defines the curriculum. It treats large language model and agent systems as targets and teaches how to attack, defend, evaluate, and govern them at a research level. The full syllabus is published below.

Outcomes

Modules

  1. The LLM and agent threat surface.
  2. Prompt injection, direct and indirect, and data exfiltration through agents.
  3. Jailbreaks and guardrail evasion.
  4. Tool and agent containment and least privilege for autonomous systems.
  5. Evaluation as a safety and security control.
  6. Building evaluation harnesses.
  7. Running a red-team program and reporting.
  8. Capstone engagement.

Signature lab

Stand up an evaluation and red-team harness against a tool-using agent, run a structured engagement, and deliver a findings report plus the reusable harness.

Reading anchors

Research thread

A reusable evaluation or red-team methodology others can adopt, which is a natural praxis seed.

Full syllabus

4 credits | Doctoral level | 14 weeks, compressible to 7 at two modules per week

Course description

This course treats large language model and agent systems as targets and teaches students to attack, defend, evaluate, and govern them at a research level. It covers direct and indirect prompt injection, jailbreaks, guardrail and defense evasion, and data exfiltration through tool-using agents. Students design containment and least-privilege controls for autonomous systems, and build evaluation harnesses that function as security controls rather than as accuracy metrics.

The course is built around recognized industry frameworks and culminates in a structured red-team engagement against a provided agent, delivered as a defensible findings report plus a reusable methodology.

It is deliberately dual-purpose. Viewed as academic work, it is outcome-mapped, literature-anchored, and assessed through produced research artifacts rather than quizzes. Viewed as practitioner training, every module ends in something runnable against a real system, and the signature deliverables, a harness and a methodology, are kept and reused after the course ends.

Prerequisites

Learning outcomes

On successful completion, students can:

  1. Construct a complete threat model for an LLM or agent system, mapped to OWASP and MITRE ATLAS categories.
  2. Execute direct and indirect prompt-injection, jailbreak, and guardrail-evasion attacks against LLM and agent systems within an authorized scope.
  3. Demonstrate data exfiltration and unauthorized action through a tool-using agent, and design containment and least-privilege controls that prevent it.
  4. Design and build an evaluation harness that operates as a security control, including automated adversarial evaluation.
  5. Plan and run a structured red-team engagement with defined rules of engagement, and produce a findings report that meets professional and responsible-disclosure standards.
  6. Produce a reusable evaluation or red-team methodology that others can adopt, positioned as an original contribution suitable to seed praxis research.

Course environment and tooling

All labs run in an isolated, provided sandbox against provided targets. Students never attack third-party or production systems. See the ethics and legal policy below.

Per standard, all work is done inside a Python virtual environment:

# Create a project virtual environment
python3 -m venv .venv

# Activate it
source .venv/bin/activate        # macOS / Linux
# .venv\Scripts\activate         # Windows PowerShell

# Upgrade pip, then install the course baseline
python -m pip install --upgrade pip
pip install -r requirements.txt

A starter requirements.txt provides the PyTorch and Hugging Face stack, an HTTP client, an evaluation framework, and the harness scaffolding. Students deactivate with deactivate when done and never install course packages system-wide.

PyTorch is the standard here because it is the framework of the research literature this course trains students to read and extend.

Required frameworks and readings

These are the fixed, citable anchors every student reads. Specific research-paper assignments attach per module and are finalized each offering to stay current.

Supplementary governance framing: ISO/IEC 42001 and the EU AI Act, both treated in depth in Core 7 and referenced here for context. Per-module research readings cover foundational indirect prompt injection research, jailbreak and guardrail-evasion literature, agent containment and least-privilege work, automated red-teaming and adversarial evaluation methodology, and current model system cards and safety evaluations from frontier labs as living case studies.

Weekly schedule

Unit 1: Foundations and threat modeling

Week 1. Framing, ethics, and the attack surface. Why LLM and agent security is distinct from classic application security. Ethics and legal policy, rules of engagement, responsible disclosure. Environment setup.Lab 0: stand up the sandbox and confirm access.
Week 2. Threat modeling LLM and agent systems. Walk the OWASP Top 10 for LLM Applications end to end and map it to MITRE ATLAS.Lab 1: produce a first threat model of the provided target.

Unit 2: Attacking the model

Week 3. Direct prompt injection and jailbreaks. Instruction override, system-prompt extraction, and jailbreak patterns.Lab 2: direct injection and jailbreak against the sandbox model.
Week 4. Indirect prompt injection and exfiltration. Attacks delivered through retrieved or tool-fetched content, and data exfiltration paths through agents.Lab 3: plant an indirect payload the agent ingests.
Week 5. Guardrail and defense evasion. How guardrails work and how they fail, and evaluating a defense honestly.Lab 4: bypass a provided guardrail and document why it failed.

Unit 3: Attacking the agent

Week 6. The agentic threat surface. OWASP Top 10 for Agentic Applications 2026: excessive agency, tool abuse, and multi-step attacks.Lab 5: chain a multi-step agent attack.
Week 7. Containment and least privilege. Sandboxing tools, scoping permissions, human-in-the-loop controls, and where they hold.Lab 6: design and implement a containment control that stops your Week 6 attack.

Unit 4: Evaluation as a security control

Week 8. Midterm checkpoint and evaluation foundations. Threat model deliverable due. Evaluation as a control rather than a metric: what to measure and why.
Week 9. Building evaluation harnesses I. Designing security evaluations, test-case design, and measuring attack success and defense coverage.Lab 7: build the harness core.
Week 10. Building evaluation harnesses II. Automated and adversarial evaluation, and scaling red-team pressure.Lab 8: add automated adversarial evaluation to the harness.

Unit 5: Engagement and contribution

Week 11. Running a red-team engagement. Scoping, rules of engagement, methodology, and evidence handling. Capstone scope assigned.
Week 12. Reporting and responsible disclosure. Findings structure, severity, reproducibility, and disclosure ethics.
Week 13. Capstone engagement. Lab-intensive. Students run their structured engagement against the capstone target using their own harness.
Week 14. Defense and methodology. Capstone findings presentations and defense. Final findings report and reusable methodology due.

Assessment

Assessment is entirely through produced artifacts. There are no quizzes or exams.

ComponentWeightWhat it demonstrates
Threat model deliverable (Week 8)20%Outcome 1: rigorous, framework-mapped threat modeling
Lab portfolio and evaluation harness25%Outcomes 2 to 4: hands-on attack, containment, and a working harness
Red-team capstone engagement and findings report35%Outcome 5: end-to-end engagement at professional standard
Reusable evaluation or red-team methodology15%Outcome 6: an original, adoptable contribution
Literature discussion leadership and participation5%Engagement with primary sources

Passing at the doctoral level requires demonstrated original thinking in the methodology component, not merely successful attacks. A student who breaks every target but cannot generalize a reusable method has not yet met the bar.

Capstone rubric

The capstone is scored on five criteria, each 1 to 5:

  1. Threat model rigor. Complete, framework-mapped, and honest about scope and assumptions.
  2. Technical execution. Attacks and controls are real, reproducible, and correctly understood.
  3. Evaluation methodology. The harness measures the right things and the student can defend why.
  4. Findings quality and disclosure. The report is clear, severity is justified, and disclosure ethics are sound.
  5. Reproducibility and reuse. Another practitioner could pick up the harness and method and apply them.

Ethics and legal policy

This is offensive-security material, and the boundaries are not optional.