Generate Safe QA Security Test Ideas for a Feature
Generate a safe, QA-focused set of security test ideas for a feature — covering input validation, authentication, data exposure, and access control from a defensive testing perspective.
You are a QA engineer with a security-aware testing background. Generate safe, defensive security test ideas for the feature described below. IMPORTANT SCOPE: This prompt is for QA-level functional security testing — validating that the application enforces its stated security rules. It does not produce exploit code, offensive payloads, bypass instructions, or tools for attacking systems without authorisation. All testing must be performed only on authorised test environments with synthetic data. Feature: {{FEATURE_NAME}} Feature description: {{FEATURE_DESCRIPTION}} Inputs accepted by the feature: {{INPUTS}} User roles that interact with this feature: {{USER_ROLES}} Data handled by this feature (describe categories, not real values): {{DATA_CATEGORIES}} Known business rules: {{BUSINESS_RULES}} Generate test ideas in the following format: Test ID | Category | Test idea description | What to verify | Expected safe outcome Cover the following categories — at least 2–3 test ideas per category: **Input validation** - What happens when inputs contain special characters (< > " ' ; &)? - What happens when inputs exceed the maximum documented length? - What happens when a numeric field receives a string, or vice versa? - What happens when a required field is omitted entirely? - What happens when the same request is submitted multiple times (idempotency)? **Data exposure** - Does the API or page response expose more data than the user's role should see? - Do error messages reveal internal system details (file paths, stack traces, database names)? - Do API responses include fields that are not documented or expected? - Is sensitive data (tokens, passwords, internal IDs) absent from response bodies and browser storage? **Access control** - Can a lower-privilege role access functionality intended only for higher-privilege roles? - Can a user access another user's data by modifying an ID in the request (direct object reference check)? - Can the feature be accessed without authentication? - Can a valid but expired session still perform actions? **State and logic** - Can the feature be used out of the expected sequence (e.g. skipping a step in a multi-step flow)? - Can the feature be forced into an unexpected state by sending unusual but valid input combinations? - Are rate limits or quota checks enforced? After the test ideas, include a brief note: - That these tests must be run only on authorised test environments with synthetic test data - That findings should be reported through your organisation's standard defect tracking or responsible disclosure process - That this list is a starting point — a formal penetration test by a security professional is needed for comprehensive coverage
{{FEATURE_NAME}}requiredName of the feature being tested
e.g. User profile update
{{FEATURE_DESCRIPTION}}requiredBrief description of what the feature does
e.g. Allows authenticated users to update their display name, email address, and profile photo
{{INPUTS}}requiredInputs the feature accepts
e.g. Display name (string), email address (string), profile photo (file upload), current password (for email change)
{{USER_ROLES}}requiredUser roles that interact with this feature
e.g. Standard user (can update own profile), admin (can update any user's profile)
{{DATA_CATEGORIES}}requiredCategories of data handled — describe types, not real values
e.g. User display names, email addresses, profile images, passwords (hashed — not accessible to QA)
{{BUSINESS_RULES}}Business rules relevant to security testing
e.g. Email change requires current password confirmation; profile photos max 5MB, image types only
- Confirm all testing will be performed on an authorised test environment — never run security tests against production.
- Verify test data uses synthetic values only — no real user email addresses, names, or identifiers.
- Review the access control tests with your team to ensure you have test accounts for all roles before starting.
- Ensure any findings are reported through your organisation's defect process, not shared publicly.
- Treat this list as a supplement to, not a replacement for, a professional security assessment.
AI output requires human review before use. These checks are your responsibility.
- These test ideas are safe QA-level checks, not penetration testing — they will not find all security vulnerabilities.
- Direct object reference tests (IDOR checks) require test accounts for multiple users — confirm you have these before testing.
- Some tests (rate limiting, session expiry) require specific environment configuration — confirm with your team before running.
- Never test security scenarios against production systems or using real customer data.