Project guide

Project Guide | AI Security Redteam Lab

Free AI red-team control checklist for prompt-injection and tool-risk reviews. This guide organizes the repository's original implementation notes for AI security reviewers and governance teams.

Reviewed 2026-07-28. This page is derived from checked-in repository evidence and links back to its source.

Live Demo

Self-contained test harness for prompt-injection, secret-leakage, and unsafe tool-use scenarios. The lab uses deterministic policy checks and synthetic cases so it can run in CI without external services.

System Overview

A credential-free AI security lab that turns abstract model risk into CI-friendly tests teams can actually run.

AreaDetails
UsersAI platform teams, security engineers, product teams shipping AI features, and governance teams.
Technical pathValidate the demo, README, architecture notes, and quality gate before deeper workflow review.
System scopePrompt injection, secret leakage, unsafe tool use checks, deterministic fixtures, and reportable safety outputs.
Operating boundaryCredential-free by design; extend with customer-specific policies only after scoping and approval.
Evaluation pathRun the safety checks locally and inspect generated reports and failing-case examples.

Evaluation Path

Architecture Notes

What It Demonstrates

Architecture

flowchart LR
    Cases["Synthetic cases"] --> Scanner["Policy scanner"]
    Scanner --> Findings["Findings"]
    Findings --> Score["Risk score"]
    Score --> Reports["JSON and Markdown reports"]

Quick Start

python3 -m unittest discover -s tests
python3 scripts/run_scan.py

The scan writes:

Policy Categories

CategoryExamples
prompt injectionignore prior rules, reveal hidden instruction
secret handlingkey/token/password exfiltration language
unsafe tool useshell execution, file deletion, network fetch pressure
data boundaryattempts to access private or unrelated data

Verification

python3 -m unittest discover -s tests
python3 -m redteam_lab.scanner examples/cases.json

All fixtures are synthetic.

Cloud + AI Architecture

Enterprise Productization

System Architecture

Service Architecture

Search And Service Surface