Testing with Generative AI study guide

Red Teaming GenAI Systems

Red Teaming is a proactive security testing practice where QA engineers act as malicious adversaries to intentionally stress-test an LLM, attempting to bypass safety filters, extract sensitive data, or force the model to generate harmful content.

Practical example

Unlike standard QA, Red Teaming assumes a hostile user. Testers use techniques like character obfuscation (encoding prompts in Base64), role-playing (telling the LLM it is a hacker without morals), and payload splitting to discover vulnerabilities before public release.

Exam scenario and common trap

Question: What is the primary goal of GenAI Red Teaming? The Trap: "To verify that the model produces accurate answers." The Correct Answer: To identify vulnerabilities, biases, and bypasses in the model's safety and alignment guardrails.

Related syllabus material covers the broader concept; this page includes additional context. Reference sections: 3.2.1–3.2.3. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.