asvs-requirements
OWASP ASVS 5.0 requirements database for security audits. Provides chapter structure, control objectives, and verification requirements for all 17 ASVS domains.
What this skill does
# ASVS 5.0 Requirements Structured access to OWASP Application Security Verification Standard (ASVS) 5.0 requirements for security auditing. ## When to Use This Skill - **Planning security audits** - To understand which chapters apply to the project - **Scoping audit depth** - To select appropriate verification level (L1/L2/L3) - **Building auditor agents** - To define specific checks for each domain - **Mapping findings** - To reference ASVS requirements in audit reports ## When NOT to Use This Skill - **Quick vulnerability checks** - Use vulnerability-patterns skill instead - **Remediation guidance** - Use remediation-library skill instead - **Non-ASVS audits** - Use industry compliance auditors directly ## ASVS Verification Levels | Level | Name | Applicability | Depth | |-------|------|---------------|-------| | L1 | Opportunistic | All applications | Minimum baseline | | L2 | Standard | Most applications | Recommended | | L3 | Advanced | High-value/critical apps | Maximum rigor | **Mapping to Audit Modes:** - Quick Scan → L1 requirements only - Standard Audit → L1 + L2 requirements - Comprehensive Audit → L1 + L2 + L3 requirements --- ## Chapter Overview | Chapter | Name | Requirements | Primary Focus | |---------|------|--------------|---------------| | V1 | Encoding & Sanitization | 28 | Injection prevention | | V2 | Validation & Business Logic | 15 | Input validation | | V3 | Web Frontend Security | 32 | Browser security | | V4 | API & Web Service | 17 | API security | | V5 | File Handling | 14 | File security | | V6 | Authentication | 44 | Identity verification | | V7 | Session Management | 18 | Session security | | V8 | Authorization | 11 | Access control | | V9 | Self-contained Tokens | 7 | JWT security | | V10 | OAuth & OIDC | 50 | OAuth/OIDC security | | V11 | Cryptography | 32 | Crypto implementation | | V12 | Secure Communications | 13 | TLS/transport | | V13 | Configuration | 18 | Secure config | | V14 | Data Protection | 15 | Data handling | | V15 | Secure Coding | 20 | Code quality | | V16 | Security Logging | 19 | Audit logging | | V17 | WebRTC | 15 | WebRTC security | | **Total** | | **369** | | --- ## V1: Encoding and Sanitization (28 requirements) ### Control Objective Ensure the application correctly encodes and decodes data to prevent injection attacks. ### Sections - V1.1 Encoding Architecture - V1.2 Injection Prevention - V1.3 Sanitization - V1.4 Memory/String Safety - V1.5 Safe Deserialization ### Key Requirements | ID | Level | Requirement | |----|-------|-------------| | V1.2.1 | L1 | Parameterized queries for all database operations | | V1.2.2 | L1 | No string concatenation for SQL/NoSQL commands | | V1.2.3 | L1 | OS command injection prevention | | V1.3.1 | L1 | HTML output encoding | | V1.5.1 | L1 | No unsafe deserialization (use JSON) | ### Detection Patterns - SQL string concatenation: `"SELECT * FROM " + table` - Command injection: shell invocation with user input - Unsafe deserialize: Python object serialization, PHP unserialize --- ## V2: Validation and Business Logic (15 requirements) ### Control Objective Ensure input validation enforces business expectations and prevents logic bypass. ### Sections - V2.1 Documentation - V2.2 Input Validation - V2.3 Business Logic Security - V2.4 Anti-automation ### Key Requirements | ID | Level | Requirement | |----|-------|-------------| | V2.2.1 | L1 | Server-side validation for all inputs | | V2.2.2 | L1 | Allowlist validation preferred | | V2.3.1 | L1 | Sequential step enforcement | | V2.4.1 | L2 | Rate limiting on sensitive ops | ### Detection Patterns - Client-only validation: `if (form.valid)` without server check - Missing rate limiting: No throttle on login/register - Mass assignment: Accepting all form fields without filtering --- ## V3: Web Frontend Security (32 requirements) ### Control Objective Protect browsers against common web attacks through proper headers and configurations. ### Sections - V3.1 Documentation - V3.2 Content Interpretation - V3.3 Cookie Setup - V3.4 Security Headers - V3.5 Origin Separation - V3.6 External Resources - V3.7 Other Browser Security ### Key Requirements | ID | Level | Requirement | |----|-------|-------------| | V3.3.1 | L1 | Cookies: Secure, HttpOnly, SameSite | | V3.4.1 | L1 | Content-Security-Policy header | | V3.4.2 | L1 | X-Content-Type-Options: nosniff | | V3.4.3 | L1 | Strict-Transport-Security (HSTS) | | V3.6.1 | L2 | Subresource integrity for CDN scripts | ### Detection Patterns - Missing CSP: No Content-Security-Policy header - Insecure cookies: Missing Secure/HttpOnly flags - No HSTS: Missing Strict-Transport-Security --- ## V4: API and Web Service (17 requirements) ### Control Objective Ensure API endpoints are secure against common attack patterns. ### Sections - V4.1 Generic Web Service Security - V4.2 HTTP Message Validation - V4.3 GraphQL - V4.4 WebSocket ### Key Requirements | ID | Level | Requirement | |----|-------|-------------| | V4.1.1 | L1 | Content-Type header validation | | V4.2.1 | L2 | HTTP request smuggling prevention | | V4.3.1 | L2 | GraphQL query depth limiting | | V4.3.2 | L2 | GraphQL introspection disabled in prod | | V4.4.1 | L2 | WebSocket authentication | ### Detection Patterns - GraphQL introspection: `introspectionQuery` enabled - No depth limit: Unbounded GraphQL queries - Missing auth: WebSocket without handshake validation --- ## V5: File Handling (14 requirements) ### Control Objective Handle files securely throughout upload, storage, and download lifecycle. ### Sections - V5.1 Documentation - V5.2 File Upload - V5.3 File Storage - V5.4 File Download ### Key Requirements | ID | Level | Requirement | |----|-------|-------------| | V5.2.1 | L1 | File extension validation | | V5.2.2 | L1 | Content-type validation | | V5.2.3 | L1 | Upload size limits | | V5.3.1 | L1 | Uploads cannot run as code | | V5.4.1 | L1 | Path traversal prevention | ### Detection Patterns - No extension check: Accepting any file type - Path traversal: `../` in filenames not sanitized - Direct run: Uploads served from code directory --- ## V6: Authentication (44 requirements) ### Control Objective Ensure robust authentication mechanisms protect user accounts. ### Sections - V6.1 Documentation - V6.2 Password Security - V6.3 General Auth Security - V6.4 Factor Lifecycle - V6.5 Multi-factor Auth - V6.6 Out-of-Band Auth - V6.7 Cryptographic Auth - V6.8 Identity Provider Auth ### Key Requirements | ID | Level | Requirement | |----|-------|-------------| | V6.2.1 | L1 | Minimum 8 character passwords | | V6.2.2 | L1 | 64+ character max allowed | | V6.2.3 | L1 | Password breach checking | | V6.2.4 | L1 | Secure hashing (bcrypt/argon2) | | V6.3.1 | L1 | Account lockout after failures | | V6.5.1 | L2 | MFA for sensitive operations | ### Detection Patterns - Weak hashing: MD5/SHA1 for passwords - No lockout: Unlimited login attempts - Plain text: Passwords in logs/storage --- ## V7: Session Management (18 requirements) ### Control Objective Ensure session tokens are generated, managed, and invalidated securely. ### Sections - V7.1 Documentation - V7.2 Session Token Lifecycle - V7.3 Session Logout and Timeout - V7.4 Cookie-based Session Management ### Key Requirements | ID | Level | Requirement | |----|-------|-------------| | V7.2.1 | L1 | Cryptographically random session IDs | | V7.2.2 | L1 | 128+ bit entropy | | V7.3.1 | L1 | Session invalidation on logout | | V7.3.2 | L2 | Absolute session timeout | | V7.4.1 | L1 | Cookie security attributes | ### Detection Patterns - Predictable IDs: Sequential or timestamp-based - No logout: Missing session invalidation - No timeout: Sessions never expire --- ## V8: Authorization (11 requirements) ### Control Objective Ensure access control is enforced at all levels of the application. ### Sections - V8.1 Documentation - V8.2 Application Access Control - V8.3 Directory Browsing and Resource Protection ### Key Requirements | ID | Lev
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.