Topics › AI security projects

AI red teaming and prompt injection projects

These projects teach AI security from both sides. You reproduce attacks such as prompt injection and document poisoning in an isolated setup, capture the evidence, build the defence, then retest to show the fix holds.

Red teaming and defence projects

  1. Prompt injection detector + jailbreak library

    Build a multi-layer injection detector (regex + heuristic scoring + ML classifier) and a documented jailbreak library with 20+ techniques, each with reproduction steps and a measured detection/bypass rate.

    AI Security & Red Teaming · Prompt Injection & Jailbreaking

    What you hand in

    • A Python module implementing the 3-layer detector with a unified confidence score
    • A jailbreak library document with 20+ named techniques, each with a working prompt and category tag
    • A test harness that runs the full library against the detector and reports per-technique bypass rate
    • A written analysis of which technique categories are hardest to detect and why
    • Unit tests covering the regex and heuristic layers

    Rubric: Detector correctly flags at least 90% of the jailbreak library on the heuristic + regex layers · Jailbreak library has 20+ distinct, properly categorized techniques with reproduction steps · Test harness produces a per-technique bypass rate report · Code quality: typed, tested, documented · Written analysis identifies real gaps, not just restates results

  2. Agent security audit

    Complete security review of a multi-agent system with tool use, RAG, and MCP. Deliverables: threat model, severity-ranked vulnerability report, and implemented fixes with before/after re-test evidence.

    AI Security & Red Teaming · RAG & Agent Security

    What you hand in

    • A threat model document covering all trust boundaries in the target system
    • A severity-ranked vulnerability report with reproduction steps for each finding
    • At least 3 implemented fixes addressing the highest-severity findings
    • Re-test evidence showing each fix actually blocks its corresponding attack
    • An MCP server security checklist applied to the target's MCP integration
    • An executive summary suitable for a non-technical stakeholder

    Rubric: Threat model correctly identifies all major trust boundaries and attack surfaces · Vulnerability report has reproducible, severity-ranked findings · Fixes are implemented and demonstrably close the identified gaps · Re-test evidence is concrete (before/after attack output, not just claims) · Executive summary is clear and non-technical

  3. Full red team engagement report

    Structured red team assessment using Garak + PyRIT against a production-style LLM application. Includes methodology, findings, attack chains, remediation guidance, and re-test results after fixes.

    AI Security & Red Teaming · AI Red Teaming Methodology & Tools

    What you hand in

    • An engagement scope document defining objectives, boundaries, and safe-testing constraints
    • A Garak scan report establishing the baseline vulnerability surface
    • A PyRIT multi-turn campaign targeting at least 2 specific weaknesses found by Garak
    • A severity-ranked findings report with reproduction steps for every finding
    • At least one documented attack chain combining multiple findings
    • Remediation guidance mapped to each finding, plus re-test results after applying at least 2 fixes

    Rubric: Engagement scope is clear and appropriately bounded · Garak and PyRIT are both used correctly and findings are reproducible · Findings are severity-ranked with clear reproduction steps · At least one credible attack chain is documented · Remediation guidance is specific and re-test evidence is concrete

  4. Production AI security system

    End-to-end security architecture for an AI application: multi-layer guardrails, monitoring dashboard, CI/CD security gates, incident response playbook, and compliance documentation.

    AI Security & Red Teaming · Production AI Security Architecture

    What you hand in

    • An architecture diagram showing all 7 layers with the specific controls implemented at each
    • A working guardrail pipeline (input + output + tool-call authorization) integrated into the target app
    • A monitoring dashboard showing at least 3 real security signals (e.g. injection attempts, anomalous tool-call sequences, token cost spikes)
    • A CI/CD pipeline with at least 2 automated security gates (adversarial test + supply chain scan)
    • An incident response playbook covering at least 2 incident types with regulatory reporting steps
    • Compliance documentation mapping the system to NIST AI RMF

    Rubric: Architecture covers all 7 layers with concrete, working implementations (not just diagrams) · Guardrail pipeline demonstrably blocks at least 2 attack categories from earlier phases · Monitoring dashboard surfaces real, correctly computed security signals · CI/CD gates actually fail the build on a known-bad change · Incident response playbook and compliance mapping are complete and specific

  5. Hardened agent system prompt + threat model

    Build a versioned control surface for a tool-using agent, then prove how it behaves under ambiguous and adversarial instructions.

    Agentic AI Engineering · Advanced Prompt Engineering for Agents

    What you hand in

    • system_prompt.md
    • prompt_registry/
    • few_shot_library.json
    • prompt_eval_results.json
    • threat_model.md
    • defense_trace.jsonl

    Rubric: Prompt contract is explicit, internally consistent, and versioned · Few-shot cases improve tool-selection reliability · Adversarial coverage tests realistic instruction conflicts · Evaluation results measure behavior across versions · Threat model, traces, and defenses support the claims

Reviews and audits

  1. A real, written pre-launch security review report

    A combined threat model, five-point check, and verified AI security review for one real app you built or are building — ending in a justified ship / fix-first / hire-someone decision, not a certificate claim.

    Security Review for Vibe Coders · Security Review for Vibe Coders

    What you hand in

    • scope-and-data-map.md identifying users, data, trust boundaries, deployment, and review limits
    • threat-model.md connecting realistic abuse paths to affected people and assets
    • five-point-check.md with file, configuration, request, or response evidence for every check
    • ai-review-output.md preserving the unedited tool review and the exact prompt or command used
    • verification-notes.md independently reproducing or disproving at least three material claims
    • findings-register.md with severity, evidence, remediation, owner, status, and retest result
    • security-review-report.md with residual risk and a justified ship, fix, narrow, hire, or stop decision

    Rubric: Scope, assets, affected people, trust boundaries, and review limitations are explicit · Findings are concrete, evidenced, severity-ranked, and tied to realistic abuse · AI-generated claims are independently verified and false positives are identified · Material fixes are retested and unresolved risk has an owner or escalation path · The release decision follows from the evidence and communicates residual risk honestly

  2. Responsible AI Audit Toolkit

    A deployable Python toolkit that runs bias audits (Fairlearn), explainability (SHAP/LIME), model card generation, governance assessment (AIA + EU AI Act), risk register, and transparency report generation in a single pipeline. Produces compliance artifacts for NIST AI RMF, EU AI Act, ISO 42001, and GDPR.

    Responsible AI Engineering · Capstone — Ship a Responsible AI Audit Pipeline

    What you hand in

    • audit_scope.md naming the system, use context, affected groups, decision owners, boundaries, and evidence standard
    • rai_audit/ installable package integrating fairness, explainability, privacy, LLM safety, governance, and reporting modules
    • evaluation_data/ with provenance, consent and limitation notes, representative slices, and adversarial cases
    • findings_register.csv connecting severity, evidence, affected people, obligation, owner, remediation, and status
    • control_verification.md with before-and-after tests proving which mitigations worked and which did not
    • compliance_crosswalk.md mapping evidence without claiming certification for NIST AI RMF, EU AI Act, ISO 42001, and GDPR
    • executive_decision.md stating launch, narrow, hold, or stop; required remediation; residual risk; and accountable approver
    • audit_report.html and operations_handoff.md with monitoring thresholds, escalation, incident response, and reassessment triggers

    Rubric: Scope, stakeholders, affected groups, decision rights, and evidence standards are explicit · Technical audit methods are reproducible, valid, and appropriately limited · Findings connect measured behavior to plausible harm and applicable obligations · Controls are verified with before-and-after evidence rather than asserted · Compliance crosswalk and documentation are accurate without overstating assurance · Release decision, owners, residual risk, monitoring, and escalation follow from the evidence

Read first: free lesson previews

Courses that teach this

Questions

What is prompt injection?
Text that makes a model follow instructions its developer did not intend, either typed by a user (direct) or hidden in a page, file or email the model reads (indirect). It is first on the OWASP list for LLM applications.
Is it legal to practise these attacks?
The labs run against targets you set up yourself, in an isolated environment. The course also covers scoping, so you know what you are allowed to test before working on anyone else's system.

Related topics

Agent projects · Evaluation projects · Portfolio projects

Start with a free lesson

Create a free account — the opening phases of 29 of 35 courses, and the first lesson of every phase, are free, no credit card. Or see Pro pricing.

All courses · Pricing · About · FAQ · Glossary · Projects by topic