GitLab Well Architected
Cookbook navigation
Prompts / Create Security Test Cases

Create Security Test Cases

SecurityArchitectureSecopsTestingSecureIntermediate

Generate security-focused test cases for input validation, auth bypass, and injection attacks.

For Duo Security Analyst

prompt

@security_analyst Create security test cases for [FEATURE]:

Functionality:
[DESCRIBE FEATURE]

Generate tests for:
1. Input validation
2. Authentication bypass attempts
3. Authorization violations
4. Data exposure scenarios
5. Injection attacks

Use the prompt

Describe the feature's expected permissions and provide its entry points. The prompt addresses @security_analyst; select the corresponding agent and review the proposed tests against the behavior you're protecting.