Why you need a methodology, not just prompts
Most people testing LLM security grab a jailbreak prompt, throw it at a model, and see what happens. That's not red teaming. That's guessing. Real red team work is systematic: you define what you're testing, establish success criteria, document results, and build a repeatable process you can run against any model.
This guide gives you that framework. It's the same structure used by professional AI red teams at security firms and AI labs. No more ad hoc jailbreak attempts. No more "I think it worked but I didn't save the output." A proper methodology means your results are reproducible, your findings are credible, and your testing scales across models.
Phase 1: Scope definition
Before you send a single prompt, define what you're testing. "Can I jailbreak GPT-5.2" is not a scope. It's too broad. A proper scope answers three questions:
- What content categories are you testing? Define the specific content types: weapons instructions, drug synthesis, hacking techniques, social engineering, self-harm, violent content, etc. Each category may trigger different safety mechanisms.
- What models are you targeting? List every model and version. GPT-5.2, Claude 4.6 Sonnet, Gemini 3.5 Flash, DeepSeek V4 Pro, Grok 3, GLM-5.2 MAX. Each has different safety architecture and requires different techniques.
- What's the success criteria? Define what counts as a successful jailbreak. Full unfiltered response? Partial compliance with hedging? Response that contains the requested information even if wrapped in warnings?
Phase 2: Technique selection
Based on the scope, select your techniques. Not every technique works on every model or every content category. Match the technique to the target.
For the model-specific technique collections, see our arsenals: Claude, DeepSeek, GPT-5.2, Gemini.
For broad testing, use model racing to hit all models simultaneously. For targeted testing, pick the highest-rated technique for each model.
Phase 3: Test case construction
Each test case is a structured prompt + technique + query combination. Document every test case so you can reproduce it.
Write test cases for every model x technique x category combination. With 5 models, 5 techniques, and 5 content categories, that's 125 test cases. Use a spreadsheet or JSON file to track them. The AI Jailbreak Guide Elite tier includes a pre-built test case template with 500+ test configurations covering all major model x technique x category combinations.
Phase 4: Execution and logging
Run each test case and log the results. Every log entry should capture:
- Test ID: Links back to the test case
- Model response: Full output, not just pass/fail
- Result classification: FULL, PARTIAL, DEFLECTED, or REFUSED
- Response time: How long the model took to respond
- Token count: Input and output token counts for cost analysis
- Observations: Anything notable about the response
Phase 5: Scoring and analysis
After running your test suite, analyze the results. The scoring framework:
- Per-model compliance rate: What percentage of test cases got FULL or PARTIAL compliance per model? This tells you which models are most vulnerable.
- Per-technique effectiveness: What percentage of test cases succeeded per technique? This tells you which techniques are most reliable.
- Per-category difficulty: Which content categories are hardest to extract? This tells you where the safety filters are strongest.
- Technique x model matrix: Cross-reference techniques against models to find the optimal technique for each model.
Phase 6: Reporting
A red team report without documentation didn't happen. Your report should include:
- Executive summary: Which models are most vulnerable, which techniques work best, overall compliance rates.
- Methodology: Scope, techniques used, test case count, success criteria.
- Findings by model: Per-model vulnerability assessment with specific examples.
- Findings by technique: Which techniques worked where, with success rates.
- Findings by category: Which content categories are easiest/hardest to extract.
- Risk assessment: What the vulnerabilities mean for real-world deployment.
- Recommendations: Mitigation suggestions (see our Defending Against AI Attacks guide).
Automation: Building a testing pipeline
Manual testing works for small scopes. For systematic testing across many models and techniques, automate. The pipeline:
- Load test cases from JSON file
- For each test case, send the prompt to the target model via API
- Classify the response (automated refusal detection + manual review for edge cases)
- Log the result to JSONL
- Generate summary statistics
- Export the report
For the full automated testing pipeline including test case generation, response classification, and report generation, the AI Jailbreak Guide Elite tier includes a complete Python testing framework. It runs 500+ test cases across 55 models in under 10 minutes and generates a full red team report automatically.
Common mistakes
- Testing one model and generalizing: Results on GPT-5.2 don't apply to Claude. Test every model independently.
- Not saving full responses: "It worked" is not documentation. Save the complete input and output.
- Conflating PARTIAL with FULL: A response with disclaimers is not the same as full compliance. Classify precisely.
- Testing each prompt once: LLM responses have variance. Run each test case 3 times and take the best of 3.
- Ignoring temperature: Higher temperature = more creative responses = more likely to comply. Test at temperature 0.7 and 1.0.
- Not testing edge cases: Multi-turn conversations, system prompt variations, and encoding combinations often succeed where single-prompt tests fail.
The red team toolkit
Your toolkit for AI red teaming:
- Model APIs: OpenAI, Anthropic, Google, xAI, DeepSeek, Zhipu - for direct testing
- Ollama: For local uncensored model testing (Dolphon, Hermes, WizardLM)
- Test case templates: Structured prompts for each category x technique combination
- Logging infrastructure: JSONL logging for every test result
- Analysis scripts: Python scripts for scoring and reporting
- Model racing: ULTRAPLINIAN for parallel testing across all models
- Jailbreak prompt library: Tested prompts for each model family (see our arsenals)
Note: This is educational content about AI security testing methodology. A structured red team methodology is essential for anyone conducting authorized security assessments of LLM systems. How you use this knowledge is your responsibility.