Skip to content

Generate a Security Test Checklist Aligned with OWASP ASVS

Security TestingUpdated 2026-10-21intermediate
TL;DR

Returns an OWASP ASVS-aligned security testing checklist covering authentication, session management, authorization, input validation, output encoding, cryptography, API security, file upload, and HTTP security headers: each item with a test method (manual / DAST / SAST) and ASVS chapter citation.

When to use it

  • You're preparing for a pen test and want a self-audit first.
  • You're documenting security testing scope for SOC 2 / ISO 27001.
  • You're onboarding security testing into a team without an AppSec hire.
  • You're standardizing security checks across multiple services.

The prompt

XML-tagged: works best with Claude
security-test-checklist.claude.mdprompt
<role>You are an application security tester. You cite OWASP ASVS chapters because security work without citations is unverifiable. You pair every checklist item with a TEST METHOD (manual / DAST / SAST) so the reader knows how to actually run it.</role> <context>OWASP ASVS (Application Security Verification Standard) is the canonical security checklist. This prompt targets **ASVS 4.0.3**: always name the version, because 5.0.0 (May 2025) renumbered every chapter. Three levels: L1 (minimum), L2 (most apps), L3 (high-assurance). The 4.0.3 chapter scheme: V2 Authentication, V3 Session, V4 Access Control, V5 Validation/Sanitization, V6 Crypto, V7 Logging, V8 Data Protection, V9 Communication, V10 Malicious Code, V11 Business Logic, V12 Files, V13 API, V14 Configuration.</context> <task>For the application below, generate a security testing checklist with:1. Items grouped by ASVS chapter (V2-V14, scoped to what applies)2. ASVS chapter cited in every item (e.g., "V2.1.7")3. Test method per item: **Manual** (requires human judgment) / **DAST** (dynamic scan tool) / **SAST** (code analysis) / **Manual+DAST** (both)4. Severity if violated (Critical / Major / Minor): tied to compliance frameworks5. Group ordered: highest-risk chapters (V2, V4, V8) first</task> <input>Application description: {app}Tech stack: {stack}Compliance requirements (SOC 2, HIPAA, PCI DSS, etc.): {compliance}ASVS level target (L1, L2, L3): {level}</input> <constraints>- Cite ASVS chapter and item number for every entry (e.g., V2.1.7). Cite only item numbers you are certain exist in ASVS 4.0.3 with that meaning; if unsure, cite the section (e.g., V3.4) and say so. Never invent an item number.- Test method MUST be present per item.- Don't list items that don't apply to the stated app (e.g., file upload section is skipped if no uploads).- Group by ASVS chapter, ordered by risk priority for this app.- Highest-risk first; don't bury auth on page 5.</constraints> <output_format>Markdown document with chapter headings, each chapter contains a table: ASVS | Item | Test method | Severity. Followed by "Coverage summary": how many items, which chapters are out of scope and why.</output_format> <approach>Before writing, identify which ASVS chapters are most acute for this stack and compliance context.</approach>

Example

Input
Application description: SaaS expense management for SMBs. Web app + mobile. REST API consumed by integrations (QuickBooks, Xero). User uploads CSV expense files. Stores receipt images.
Tech stack: Next.js + Node.js API + PostgreSQL. JWT sessions. OAuth for integrations.
Compliance: SOC 2 Type II required; no PCI DSS (payment via Stripe).
ASVS level: L2
Output
# Security Test Checklist, Expense Management SaaS (OWASP ASVS 4.0.3, L2)

## V4 Access Control (priority: IDOR is the #1 source of B2B data leaks)

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V4.1.1 | Access control enforced on the server (API), never only in the Next.js UI | SAST + Manual | Critical |
| V4.1.2 | Tenant and role attributes come from the verified JWT, not from client-supplied fields or headers | Manual+DAST | Critical |
| V4.2.1 | IDOR: user A cannot read, update or delete user B's expenses or receipts by ID | Manual+DAST | Critical |
| V4.2.2 | Anti-CSRF protection on authenticated state-changing requests | DAST | Major |
| V4.3.1 | Admin interfaces require MFA | Manual | Critical |

## V2 Authentication (priority: SOC 2 access control evidence)

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V2.1.1 | User-set passwords are at least 12 characters | Manual + SAST (config check) | Major |
| V2.1.7 | Passwords checked against a breached-password list (e.g. HIBP k-anonymity API) | Manual+DAST | Major |
| V2.2.1 | Anti-automation on login and password reset (rate limiting, lockout, CAPTCHA) | DAST | Critical |
| V2.4.1 | Passwords salted and hashed with an approved KDF (argon2id, bcrypt, PBKDF2) | SAST | Critical |
| V2.5.4 | No shared or default accounts ("admin", "root") in any environment | Manual | Critical |

## V3 Session Management

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V3.3.1 | Logout and expiry invalidate the session; the back button does not resume it | Manual | Critical |
| V3.2.3 | Tokens stored in the browser only via secured cookies or sessionStorage, never localStorage | Manual | Major |
| V3.5.3 | JWTs are signature-checked against a fixed algorithm allow-list (no `alg: none`, no key substitution) | SAST + Manual | Critical |
| V3.5.1 | Users can revoke the OAuth grants given to QuickBooks / Xero | Manual | Major |
| V3.3.4 | Users can view and log out of all active sessions and devices | Manual | Minor |

## V5 Validation, Sanitization and Encoding (priority: CSV import is high-risk)

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V5.1.3 | All input (body, query, headers, CSV cells) validated server-side with allow-lists | SAST + Manual | Major |
| V5.1.4 | CSV rows validated against a defined schema; cells starting with = + - @ rejected or escaped (formula injection has no dedicated 4.0.3 item, so it is tracked here) | Manual+DAST | Major |
| V5.3.3 | Context-aware output escaping against reflected, stored and DOM XSS | SAST + DAST | Critical |
| V5.3.4 | Database queries parameterized (no string-built SQL, including raw ORM calls) | SAST | Critical |

## V12 Files and Resources (CSV + receipt images)

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V12.1.1 | Oversized files rejected before they fill storage | DAST | Major |
| V12.2.1 | File type validated by content (magic bytes), not by extension | Manual+DAST | Major |
| V12.4.1 | Uploads stored outside the web root with limited permissions (private S3 bucket) | Manual (config review) | Major |
| V12.4.2 | Uploads scanned by antivirus before processing | Manual + integration check | Major |
| V12.5.2 | Uploaded files are never served or executed as HTML / JavaScript | DAST | Critical |

## V13 API and Web Service (REST API consumed by QuickBooks / Xero)

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V13.1.3 | API URLs never carry API keys or tokens | DAST | Major |
| V13.2.2 | JSON schema validation before input is accepted | SAST + DAST | Major |
| V13.2.3 | Cookie-authenticated REST endpoints protected against CSRF | DAST | Major |

## V8 Data Protection and V6 Stored Cryptography (priority: receipt images contain PII)

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V6.1.1 | Regulated private data (PII on receipts, employee names) encrypted at rest | Manual + config check | Major |
| V8.2.2 | No sensitive data in localStorage / sessionStorage / IndexedDB | Manual | Major |
| V8.3.1 | Sensitive data sent in body or headers, never in query strings | DAST | Major |
| V8.3.2 | Users can export or delete their data on demand | Manual | Major |

## V7 Error Handling and Logging

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V7.1.1 | Credentials and payment details are never logged; session tokens only as hashes | SAST + log review | Critical |

## V11 Business Logic (priority: approval limits and race conditions)

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V11.1.3 | Business limits (approval amount per role, reimbursement caps) enforced server-side | Manual | Major |
| V11.1.6 | No TOCTOU races on sensitive operations (double approval, double reimbursement) | Manual+DAST | Major |

## V9 Communication

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V9.1.1 | TLS for all client connections, no fallback to plaintext | DAST | Critical |
| V9.1.3 | Only TLS 1.2 and 1.3 enabled | DAST (testssl.sh) | Major |

## V14 Configuration

| ASVS | Item | Test method | Severity |
|------|------|-------------|----------|
| V14.2.1 | Dependencies up to date, checked in the build (npm audit, Dependabot) | SAST (dependency scan) | Major |
| V14.3.2 | Framework and server debug modes disabled in production | DAST | Major |
| V14.4.3 | Content-Security-Policy header present | DAST | Major |
| V14.4.4 | `X-Content-Type-Options: nosniff` on all responses | DAST | Minor |
| V14.4.5 | Strict-Transport-Security on all responses and subdomains | DAST | Major |

## Coverage summary

- 41 checklist items across 12 ASVS 4.0.3 chapters, all at L2 or below.
- **Out of scope**: V1 Architecture (covered by the threat-model review, not by testing), V10 Malicious Code (no plugins or auto-update surface), the remaining V6 items (no custom crypto: TLS and library defaults only).
- Compliance mapping: most items supply SOC 2 evidence for CC6 (logical and physical access) and CC7 (system operations); attach the checklist to the control catalog for the audit.
- Pen test scope: recommend an external pen test that covers V4, V2, V12 and V13 in depth.

Common pitfalls

  • Model produces generic security checklist (Top 10 style) without ASVS citations: explicit V2.1.7 references make it auditable.
  • Models invent plausible-looking item numbers (e.g. 'V2.4.1 rate limiting', which is really password storage). Check every ID against the official ASVS 4.0.3 CSV on the OWASP GitHub before the checklist goes to an auditor.
  • Test method column gets omitted: checklist becomes 'check this somehow' instead of actionable.
  • Items lumped into one big list without chapter grouping: harder to delegate by domain.
  • Severity defaults to 'High' for everything: meaningless. Force Critical/Major/Minor with reasoning.

Tips

  • Re-run when your programme moves to a new ASVS version (4.0.3 → 5.0 renumbered everything); swap the chapter list in the context block first.
  • Map each item to your bug tracker AS a ticket: checklist that doesn't become tickets is wallpaper.
  • Pair with `owasp-top-10-scenarios` for the dynamic test scenarios; this prompt produces the inventory.
  • Pair with `sbom-dependency-tests` to fill V10 Malicious Code and V14.2 Dependency coverage.

FAQ

What are ASVS levels 1/2/3?

In ASVS 4.0.3, L1 is the minimum baseline (~130 requirements), L2 covers most apps that handle sensitive data (~260), and L3 is for critical apps such as banking or health (all ~280). Most B2B SaaS targets L2. Don't aim for L3 unless your compliance regime requires it.

Should I target ASVS 4.0.3 or 5.0?

This prompt targets 4.0.3 because its V2-V14 chapter numbering is what most audit templates, Jira workflows, and compliance mappings still cite. ASVS 5.0.0 (released 30 May 2025) reorganised the standard: V1 is now Encoding and Sanitization, authentication moved to V6, session management to V7, authorization to V8, and new chapters cover self-contained tokens (V9) and OAuth/OIDC (V10). If your programme has migrated, swap the chapter list in the context block for the 5.0 one and cite "ASVS 5.0": the rest of the prompt is version-agnostic. Either way, name the version in every citation.

What's NOT in this checklist's scope?

Network infrastructure (firewall rules, network segmentation), physical security, supply chain attestation, social engineering. ASVS is about application-layer security. Infrastructure security needs a separate framework (CIS Benchmarks, NIST 800-53).

Is a checklist enough: should I also pen test?

Checklist establishes a baseline; pen test finds what the checklist missed. The checklist covers known weakness classes; a pen test finds novel chains and business-logic flaws. Most regulated industries require both.

How often should I re-run this?

Re-generate it when the stack, compliance scope or ASVS version changes, and re-run the tests at least once a year (quarterly for fast-moving products). The standard itself changes rarely; your app changes constantly.