AI Security Test Cases (starter set)
a small, plain-language checklist of 31 test cases for people who build or review AI assistants and agents. Each row describes one thing to try, what a safe system should do, how serious a failure would be, and one way to reduce the risk.
It is meant as a starting point for a first security review of a chatbot, a retrieval app or an agent that can use tools. It is not a full benchmark and it does not contain working attack code.
What is in it
31 rows across 10 groups: direct injection, indirect injection, data leakage, tool misuse, output handling, jailbreak, supply chain, availability, overreliance and privacy.
Columns: id, category, test_name, what_it_checks, example_probe, expected_safe_behavior, severity (Low, Medium, High, Critical), mitigation.
How to use it
- Pick the rows that match what your system can do (for example, tool misuse only applies if it uses tools).
- Run each probe against a test copy, never against production data.
- Compare the result with
expected_safe_behaviorand record pass or fail. - Fix failures starting with Critical and High rows.
Limits
The probes are short examples, not an exhaustive attack set. Real attackers vary wording, so treat a pass as a sign, not proof. Severity is a general guide and depends on your system.
About
Written by the CodeRed team. The groups follow widely used public guidance on LLM application risks (for example the OWASP lists); the wording and examples are our own. CodeRed offers hands-on cybersecurity courses and labs, including AI security topics: https://coderedpro.com/collections/ai-red-teaming?utm_source=huggingface.co&utm_medium=offpage_seo&utm_campaign=codered_dec26
License: CC BY 4.0. You may reuse and adapt it with credit to CodeRed.