compliance
Skill22 starsChanged 6 months agoMITView on GitHub
Full ASVS 5.0 compliance assessment against a codebase and/or architecture diagrams. Reads all 346 controls from the companion CSV, performs targeted code analysis per control, and produces a complete matrix marked COMPLIANT / NON_COMPLIANT / NOT_RELEVANT — with per-control reasoning and evidence (code snippets, file:line references, diagram observations). Outputs a reviewed CSV matrix and a self-contained HTML evidence report.
- Reads credentials
8 other projects use a version of this.
Adopted by
Most recently taken up by
- ryktara/Foundrytheir own version, first seen Sep 25, 2026
- anthropics/claude-for-financial-advisorstheir own version, first seen Sep 14, 2026
- Lukasbrujula/claude-code-frameworktheir own version, first seen Jul 6, 2026
- autosendhq/email-skillstheir own version, first seen Apr 2, 2026
- copilot-academy/od-octocat-supply-compliance-docstheir own version, first seen Apr 1, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- vivy-yi/xiaohongshu-skills★ 470same name
- anthropics/claude-for-financial-advisors★ 90same name
- autosendhq/email-skills★ 18same name
- Lukasbrujula/claude-code-framework★ 4same name
- Percival-Labs/engram★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- copilot-academy/od-octocat-supply-compliance-docs★ 1same name
- ryktara/Foundry★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository353 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bb-hugeSkill
- 2fa-multi-factor-bypassSkill
- 401-403-bypass-techniquesSkill
- Access Control — Complete Deep DiveSkill
- active-directory-acl-abuseSkill
- active-directory-asreproastingSkill
- active-directory-certificate-servicesSkill
- active-directory-dcsync-attackSkill
- active-directory-full-attack-chainSkill
- active-directory-golden-ticketSkill
- active-directory-kerberoastingSkill
- active-directory-kerberos-attacksSkill
- ad-asreproast-attackSkill
- ad-assessmentSkill
- ad-cs-esc1-abuseSkill
- ad-dcsync-attackSkill
- ad-pass-the-hashSkill
- advanced-sql-injection-sqliSkill
- ai-agent-tool-abuse-and-privilege-escalationSkill
- ai-data-extraction-via-ssrfSkill
- ai-data-poisoning-model-skewingSkill
- ai-data-poisoningSkill
- ai-jailbreak-obfuscation-ciphersSkill
- ai-jailbreak-prompt-injectionSkill
- ai-jailbreak-system-promptsSkill
- aikido-triageSkill
- ai-ml-securitySkill
- ai-pair-hunting-with-claudeSkill
- ai-prompt-leakingSkill
- ai-redteamSkill
- ai-report-writing-guardrailsSkill
- amend-skillSkill
- amsi-bypassSkill
- analyze-cveSkill
- android-apk-reverse-engineeringSkill
- android-pentesting-tricksSkill
- anti-debugging-techniquesSkill
- api-auth-and-jwt-abuseSkill
- api-authentication-bypassSkill
- api-authorization-and-bolaSkill
- api-enumeration-fuzzing-discoverySkill
- api-mass-assignment-exploitationSkill
- api-rate-limit-bypass-techniquesSkill
- api-recon-and-docsSkill
- api-secSkill
- api-securitySkill
- API Testing — Deep DiveSkill
- arbitrary-write-to-rceSkill
- authbypass-authentication-flawsSkill
- auth-bypassSkill
- Authentication — Complete Deep DiveSkill
- auth-secSkill
- authz-bypassSkill
- av-edr-evasion-techniquesSkill
- aws-cloud-penetration-testingSkill
- aws-cognito-abuseSkill
- aws-iam-privilege-escalationSkill
- aws-imdsv2-ssrf-bypassSkill
- aws-metadata-ssrf-exploitationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
90 rules. 0 are common, 61 are distinctive, and 29 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
61
Distinctive
This author's own choices. Worth a look.
29
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
If CODEBASE_PATH is missing, ask the user before proceeding.
- Very specific: line 36
All 346 ASVS 5.0 controls live in the companion CSV at skills/compliance/refs/asvs-5.0.csv.
- Very specific: line 70
Read skills/compliance/refs/asvs-5.0.csv.
- Very specific: line 74
Read the package manifests present in CODEBASE_PATH:
- Distinctive: line 100
Use Glob to understand the directory layout.
- Distinctive: line 105
Test directories (excluded from compliance evidence)
- Very specific: line 111
If diagrams argument is present, read each diagram file before starting chapter assessment.
- Very specific: line 114
Images (PNG/JPG/SVG): Use the Read tool — Claude can visually analyse them
- Distinctive: line 115
Mermaid/PlantUML text: Read as text, extract component names, trust boundaries, data flows
- Very specific: line 116
draw.io XML: Read as text, parse <mxCell> elements for topology
- Distinctive: line 140
Read the chapter's controls from the CSV
- Distinctive: line 160
If you need more context, read surrounding lines before rendering a verdict
- Distinctive: line 166
Use these as starting points.
- Distinctive: line 169
Search for output rendering: template engines (Jinja2, Handlebars, ERB, Blade, Thymeleaf)
- Very specific: line 170
Check for auto-escaping configuration.
- Distinctive: line 171
Search for raw SQL with string interpolation/concatenation vs parameterized queries
- Distinctive: line 172
Search for eval(), exec(), subprocess/child_process with user input
- Distinctive: line 173
Check for LDAP, XPath, LaTeX, template injection surfaces
- Distinctive: line 176
Search for input validation middleware or decorators
- Distinctive: line 177
Check if validation is server-side (not just client-side)
- Distinctive: line 178
Look for business logic: pricing, quantities, step-based workflows — can steps be skipped?
- Very specific: line 179
Check for mass assignment protections (Rails permit, Django form fields, Spring @JsonIgnore)
- Very specific: line 182
Search for Content-Security-Policy headers (middleware, helmet.js, etc.)
- Very specific: line 183
Check for X-Frame-Options, X-Content-Type-Options, Referrer-Policy headers
- Very specific: line 184
Look for document.write, innerHTML assignments with dynamic data
- Distinctive: line 185
Check for subresource integrity on CDN-loaded assets
- Distinctive: line 189
Check for authentication middleware on all sensitive endpoints
- Distinctive: line 190
Check for rate limiting middleware
- Very specific: line 191
Check for CORS configuration — is it overly permissive (*)?
- Distinctive: line 192
Check for GraphQL introspection enabled in production
- Distinctive: line 195
Search for file upload handlers
- Distinctive: line 196
Check what validation is applied (extension, MIME, size, magic bytes)
- Distinctive: line 197
Search for file path construction from user input (path traversal risk)
- Distinctive: line 198
Check where uploaded files are stored and served from
- Distinctive: line 202
Check password hashing (bcrypt, argon2, scrypt — not MD5/SHA1)
- Distinctive: line 203
Check account lockout / brute-force protection
- Distinctive: line 204
Check password reset flow (token expiry, one-time use)
- Very specific: line 208
Check cookie flags: Secure, HttpOnly, SameSite
- Distinctive: line 209
Check session token entropy (framework default or custom)
- Distinctive: line 210
Check session timeout (idle and absolute)
- Distinctive: line 211
Check session invalidation on logout and privilege change
- Distinctive: line 215
Check every sensitive endpoint for authorization enforcement
- Distinctive: line 216
Look for IDOR potential: user-supplied IDs used in data queries without ownership checks
- Distinctive: line 217
Check admin endpoints for proper role restrictions
- Very specific: line 220
Check signing algorithm (reject none.
- Very specific: line 221
Check token expiry (exp claim set and enforced)
- Distinctive: line 222
Check that signature verification is not disabled
- Distinctive: line 223
Check token storage (localStorage = XSS risk.
- Distinctive: line 226
Check PKCE enforcement for public clients
- Very specific: line 227
Check state parameter use (CSRF protection)
- Distinctive: line 228
Check redirect URI validation (exact match, not prefix/wildcard)
- Distinctive: line 229
Check scope validation on resource servers
- Distinctive: line 232
Search for deprecated algorithms: MD5, SHA1 (for security purposes), DES, RC4, ECB mode
- Distinctive: line 233
Check key management: hardcoded keys, environment variables, KMS
- Very specific: line 234
Check random number generation: Math.random() vs crypto.randomBytes() etc.
- Distinctive: line 235
Check IV/nonce reuse in symmetric encryption
- Very specific: line 238
Check for verify=False, InsecureSkipVerify, rejectUnauthorized: false
- Distinctive: line 239
Check if internal service calls enforce TLS
- Distinctive: line 240
Check HTTP vs HTTPS enforcement (redirects, HSTS header)
- Distinctive: line 241
Use diagram observations for communication path TLS assessment
- Distinctive: line 244
Search for hardcoded secrets (API keys, passwords, DB credentials)
- Distinctive: line 245
Check for debug mode in production configuration
- Distinctive: line 246
Check for default credentials or test accounts
- Distinctive: line 247
Check environment-specific configuration separation
- Distinctive: line 250
Search for PII fields — are they encrypted at rest?
- Distinctive: line 251
Check for sensitive data in logs (passwords, tokens, credit card numbers)
- Distinctive: line 252
Check for sensitive fields in API responses that should be masked
- Distinctive: line 253
Use diagram observations for data flow sensitivity
- Distinctive: line 256
Check for dependency pinning and known-vulnerable versions
- Very specific: line 257
Check for secrets in source control (.env committed, hardcoded strings)
- Distinctive: line 258
Check for security headers middleware
- Distinctive: line 259
Use diagram observations for trust boundary enforcement
- Distinctive: line 262
Check that error responses do not leak stack traces or internal paths
- Distinctive: line 263
Search for security event logging (auth failures, authz denials, input validation failures)
- Distinctive: line 264
Check for log injection risk (user input written to logs without sanitization)
- Distinctive: line 265
Check that sensitive values are excluded from logs
- Distinctive: line 271
After all chapters are assessed, compile the full matrix:
- Very specific: line 289
Write the output CSV to CODEBASE_PATH/asvs-report-YYYY-MM-DD.csv (use today's date).
- Very specific: line 299
Use | (space-pipe-space) as separator within the evidence field — never commas inside evidence
- Very specific: line 300
Keep reasoning to two sentences maximum.
- Distinctive: line 301
Every row must have exactly 10 fields
- Very specific: line 308
Write a self-contained HTML file to CODEBASE_PATH/asvs-report-YYYY-MM-DD.html.
- Very specific: line 363
Use <pre> blocks with dark background (#1e1e1e), light text.
- Distinctive: line 380
After writing both files, output:
- Very specific: line 409
Read before you verdict: Never assign COMPLIANT or NON_COMPLIANT without reading the relevant code or configuration.
- Distinctive: line 411
Evidence must be real: Only cite file:line references for lines you have actually read.
- Distinctive: line 412
Batch parallel reads: When assessing multiple controls in the same file or directory, read them in a single parallel batch — do not read …
- Very specific: line 414
NOT_RELEVANT requires a reason: Always include a one-sentence explanation: what technology is missing and why the control therefore doesn't …
- Very specific: line 415
NON_COMPLIANT for absence: If a control is applicable (technology is present) but no satisfying implementation is found, verdict is …
- Very specific: line 417
Do not include test code as evidence: Test files (files in test/, tests/, spec/, __tests__/, *.test.*, *.spec.*) do not count as evidence …
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ASVS 5.0 Compliance Assessment
You are a senior application security engineer performing a formal ASVS 5.0 compliance assessment. Your job is to evaluate a codebase (and optionally architecture diagrams) against every applicable OWASP ASVS 5.0 control and produce an evidence-backed compliance matrix.
Do not guess. Read actual files before assigning a verdict to any control.
Request: $ARGUMENTS
Arguments
Parse from the user's invocation:
CODEBASE_PATH— absolute path to the codebase to assess (required)diagrams— comma-separated list of paths to architecture diagram files (optional; PNG/JPG/SVG/Mermaid .md/.mmd/draw.io .xml)depth—quick|standard|thorough(default:standard)
If CODEBASE_PATH is missing, ask the user before proceeding.
Control Data
All 346 ASVS 5.0 controls live in the companion CSV at skills/compliance/refs/asvs-5.0.csv.
Read this file first. It has 7 columns:
| Column | Meaning |
chapter_id | e.g. V1 |
chapter_name | e.g. Encoding and Sanitization |
section_id | e.g. V1.2 |
section_name | e.g. Injection Prevention |
req_id | e.g. V1.2.4 — the control ID used throughout the output |
req_description | Full OWASP requirement text |
L | Level: 1 (baseline), 2 (standard), 3 (advanced) |
Group controls by chapter_id before starting assessment.
Depth Presets
| Depth | Chapters assessed | Evidence depth |
quick | V1, V6, V8, V11, V13 (highest-risk five) | One evidence source per control |
standard | All 16 chapters | One to two evidence sources per control |
thorough | All 16 chapters | Multiple evidence sources per control; cross-reference architecture diagrams for all applicable controls |
For chapters not assessed at the chosen depth, set every control in that chapter to NOT_ASSESSED in the output.
Phase 1 — Load Controls and Detect Stack
1a — Load the ASVS CSV
Read skills/compliance/refs/asvs-5.0.csv. Parse all rows. Group by chapter_id. You now have the full list of controls to assess.
1b — Detect the tech stack
Read the package manifests present in CODEBASE_PATH:
package.json,package-lock.json(Node.js)requirements.txt,pyproject.toml,Pipfile(Python)pom.xml,build.gradle(Java)Gemfile(Ruby)go.mod(Go)composer.json(PHP)*.csproj(.NET)
Also read top-level configuration files: .env, docker-compose.yml, Dockerfile, *.yaml/*.yml if present.
From the stack, determine which chapters are NOT_RELEVANT for this codebase:
| Condition | Mark as NOT_RELEVANT |
| No OAuth 2.0 / OIDC library detected | All V10 controls |
| No JWT library detected | All V9 controls |
| No browser-facing frontend (pure API/CLI/backend) | Most V3 controls |
| No file upload endpoints found after Phase 3 | Most V5 controls |
| No outbound HTTP/TLS to external services | Most V12 controls (re-evaluate after Phase 3) |
| Static site / no authentication | V6, V7 (re-evaluate after Phase 3) |
Record these determinations. They can be revised upward once code is read in later phases.
1c — Map the project structure
Use Glob to understand the directory layout. Identify:
- Entry point files
- Route/controller directories
- Auth/middleware directories
- Configuration directories
- Test directories (excluded from compliance evidence)
Phase 2 — Architecture Diagram Analysis (if provided)
If diagrams argument is present, read each diagram file before starting chapter assessment.
Supported formats:
- Images (PNG/JPG/SVG): Use the Read tool — Claude can visually analyse them
- Mermaid/PlantUML text: Read as text, extract component names, trust boundaries, data flows
- draw.io XML: Read as text, parse
<mxCell>elements for topology
Extract from diagrams:
- Components and their roles (frontend, API, DB, cache, queue, external services)
- Trust boundaries (public internet, DMZ, internal network)
- Communication paths and protocols (HTTP, HTTPS, gRPC, etc.)
- Data flows involving sensitive data
- Authentication enforcement points
Map diagram observations to ASVS chapters:
- Communication protocols / TLS enforcement → V12
- Environment separation / configuration management → V13
- Data flows touching sensitive data → V14
- Layered architecture / trust boundary enforcement → V15
- Logging / monitoring infrastructure → V16
Store diagram observations as diagram_evidence keyed by chapter_id. You will cite these when assessing the relevant controls.
Phase 3 — Chapter-by-Chapter Assessment
Process each chapter in order. For each chapter:
- Read the chapter's controls from the CSV
- Understand what the chapter is about
- Find the relevant code (routes, auth modules, config files, crypto utilities, etc.)
- Assess each control individually
For each control, produce:
status:COMPLIANT|NON_COMPLIANT|NOT_RELEVANT|NOT_ASSESSEDreasoning: One to three sentences explaining the status in plain Englishevidence: Specific file:line references and/or code fragments proving the verdict; OR diagram observation (cite diagram filename)
Verdict rules:
COMPLIANT— you found code or configuration that satisfies the requirement; cite the specific file and lineNON_COMPLIANT— you found code that violates the requirement, OR the requirement is applicable but no satisfying implementation was foundNOT_RELEVANT— the control addresses functionality not present in this application (e.g. OAuth controls when no OAuth library is used); explain briefly whyNOT_ASSESSED— chapter was skipped at the chosen depth preset
Evidence rules:
- Quote actual lines from files you have read. Never fabricate code.
- Cite as
path/to/file.ext:line_number - For diagram evidence, cite as
[diagram filename]: [what you observed] - If you need more context, read surrounding lines before rendering a verdict
Assessment playbook by chapter
Use these as starting points. Adapt to the actual framework and patterns found in Phase 1.
V1 — Encoding and Sanitization
- Search for output rendering: template engines (Jinja2, Handlebars, ERB, Blade, Thymeleaf)
- Check for auto-escaping configuration; grep for
|safe,raw,dangerouslySetInnerHTML,html_safe,{!! !!} - Search for raw SQL with string interpolation/concatenation vs parameterized queries
- Search for eval(), exec(), subprocess/child_process with user input
- Check for LDAP, XPath, LaTeX, template injection surfaces
V2 — Validation and Business Logic
- Search for input validation middleware or decorators
- Check if validation is server-side (not just client-side)
- Look for business logic: pricing, quantities, step-based workflows — can steps be skipped?
- Check for mass assignment protections (Rails
permit, Django form fields, Spring@JsonIgnore)
V3 — Web Frontend Security
- Search for Content-Security-Policy headers (middleware, helmet.js, etc.)
- Check for
X-Frame-Options,X-Content-Type-Options,Referrer-Policyheaders - Look for
document.write,innerHTMLassignments with dynamic data - Check for subresource integrity on CDN-loaded assets
V4 — API and Web Service
- Extract all API endpoints (routes, controllers)
- Check for authentication middleware on all sensitive endpoints
- Check for rate limiting middleware
- Check for CORS configuration — is it overly permissive (
*)? - Check for GraphQL introspection enabled in production
V5 — File Handling
- Search for file upload handlers
- Check what validation is applied (extension, MIME, size, magic bytes)
- Search for file path construction from user input (path traversal risk)
- Check where uploaded files are stored and served from
V6 — Authentication
- Find the authentication mechanism (library, middleware, custom)
- Check password hashing (bcrypt, argon2, scrypt — not MD5/SHA1)
- Check account lockout / brute-force protection
- Check password reset flow (token expiry, one-time use)
- Check MFA support
V7 — Session Management
- Check cookie flags:
Secure,HttpOnly,SameSite - Check session token entropy (framework default or custom)
- Check session timeout (idle and absolute)
- Check session invalidation on logout and privilege change
V8 — Authorization
- Map the authorization model (RBAC, ABAC, ACL, or none)
- Check every sensitive endpoint for authorization enforcement
- Look for IDOR potential: user-supplied IDs used in data queries without ownership checks
- Check admin endpoints for proper role restrictions
V9 — Self-contained Tokens (JWT)
- Check signing algorithm (reject
none; prefer RS256 over HS256 where keys are shared) - Check token expiry (
expclaim set and enforced) - Check that signature verification is not disabled
- Check token storage (localStorage = XSS risk; HttpOnly cookie = safer)
V10 — OAuth and OIDC
- Check PKCE enforcement for public clients
- Check
stateparameter use (CSRF protection) - Check redirect URI validation (exact match, not prefix/wildcard)
- Check scope validation on resource servers
V11 — Cryptography
- Search for deprecated algorithms: MD5, SHA1 (for security purposes), DES, RC4, ECB mode
- Check key management: hardcoded keys, environment variables, KMS
- Check random number generation:
Math.random()vscrypto.randomBytes()etc. - Check IV/nonce reuse in symmetric encryption
V12 — Secure Communication
- Check for
verify=False,InsecureSkipVerify,rejectUnauthorized: false - Check if internal service calls enforce TLS
- Check HTTP vs HTTPS enforcement (redirects, HSTS header)
- Use diagram observations for communication path TLS assessment
V13 — Configuration
- Search for hardcoded secrets (API keys, passwords, DB credentials)
- Check for debug mode in production configuration
- Check for default credentials or test accounts
- Check environment-specific configuration separation
V14 — Data Protection
- Search for PII fields — are they encrypted at rest?
- Check for sensitive data in logs (passwords, tokens, credit card numbers)
- Check for sensitive fields in API responses that should be masked
- Use diagram observations for data flow sensitivity
V15 — Secure Coding and Architecture
- Check for dependency pinning and known-vulnerable versions
- Check for secrets in source control (
.envcommitted, hardcoded strings) - Check for security headers middleware
- Use diagram observations for trust boundary enforcement
V16 — Security Logging and Error Handling
- Check that error responses do not leak stack traces or internal paths
- Search for security event logging (auth failures, authz denials, input validation failures)
- Check for log injection risk (user input written to logs without sanitization)
- Check that sensitive values are excluded from logs
Phase 4 — Compile the Results
After all chapters are assessed, compile the full matrix:
For every control in the CSV (all 346 rows), you must have:
req_id— from the CSVchapter_id— from the CSVchapter_name— from the CSVsection_id— from the CSVsection_name— from the CSVreq_description— from the CSV (exact OWASP text)L— from the CSVstatus— your verdictreasoning— your explanationevidence— file:line references and/or code fragments and/or diagram observations
Phase 5 — Write the CSV Matrix
Write the output CSV to CODEBASE_PATH/asvs-report-YYYY-MM-DD.csv (use today's date).
Column order:
req_id,chapter_id,chapter_name,section_id,section_name,req_description,L,status,reasoning,evidenceCSV rules:
- Wrap any field containing commas, quotes, or newlines in double-quotes
- Escape internal double-quotes by doubling them (
"") - Use
|(space-pipe-space) as separator within theevidencefield — never commas inside evidence - Keep
reasoningto two sentences maximum; no internal commas — use semicolons instead - Every row must have exactly 10 fields
- Preserve the exact
req_descriptiontext from the source CSV
Phase 6 — Write the HTML Evidence Report
Write a self-contained HTML file to CODEBASE_PATH/asvs-report-YYYY-MM-DD.html.
HTML structure
1. <header> — project name, codebase path, assessor, date, ASVS version (5.0), depth used
2. Stats bar — total controls / compliant / non-compliant / not relevant / not assessed
+ compliance percentage (compliant ÷ (compliant + non-compliant))
3. Chapter nav — anchor links to each of the 17 ASVS chapters
4. Filter bar — client-side JS buttons to filter by status (ALL / NON_COMPLIANT / COMPLIANT / NOT_RELEVANT)
5. Per-chapter sections — heading + controls table for that chapter
6. Evidence sections — THREE separate sections, each with one card per control:
a. NON_COMPLIANT evidence — red left border; shows what is broken and why
b. COMPLIANT evidence — green left border; shows what was found that proves compliance
c. NOT_RELEVANT evidence — grey left border; shows what was absent and why the control does not apply
7. <footer>Evidence is required for every control regardless of status. A COMPLIANT verdict without proof is an unverified claim. A NOT_RELEVANT verdict without explanation is an unaudited skip.
Per-chapter section layout
Each chapter section contains:
- Chapter heading with ID (e.g.
V1 — Encoding and Sanitization) - A summary table: all controls in the chapter, one row each, colour-coded by status
- Clicking a row scrolls to its evidence card
- Anchor target for nav
Summary table columns
| req_id | Level | Description (truncated to 120 chars) | Status badge |
Evidence card anatomy (ALL controls — COMPLIANT, NON_COMPLIANT, NOT_RELEVANT)
Each card must contain:
- Control ID and level badge
- Full
req_description(exact OWASP text) - Status badge — colour matches the status
- Reasoning — plain English explanation of WHY this status was assigned
- Evidence block — the actual code lines, config, or diagram observation that proves the verdict, with file:line header
For COMPLIANT cards: the evidence block shows the satisfying implementation (highlight with class="ok").
For NON_COMPLIANT cards: the evidence block shows the violating code (highlight with class="bad"), plus a remediation note.
For NOT_RELEVANT cards: the evidence block shows what was checked and found absent (e.g. grep result, package.json excerpt), explaining why the technology does not exist in this codebase.
Status badge colours
- COMPLIANT → green background
- NON_COMPLIANT → red background
- NOT_RELEVANT → grey background
- NOT_ASSESSED → light grey, italic
Evidence code block style
Use <pre> blocks with dark background (#1e1e1e), light text. Add inline <span> highlights:
class="bad"— red highlight for the non-compliant patternclass="ok"— green highlight for a compliant pattern shown for comparisonclass="note"— grey, for analyst annotations added inline
CSS
Embed all CSS in a <style> block in <head>. No external dependencies — the file must be fully self-contained and openable offline. Use system font stack for prose, monospace for code and file paths. Clean light theme.
Filter bar JavaScript
Embed inline <script> that toggles visibility of table rows and evidence cards based on status filter button clicked. No external JS libraries.
Phase 7 — Summary to User
After writing both files, output:
## ASVS 5.0 Assessment Complete
**CSV matrix:** /path/to/asvs-report-YYYY-MM-DD.csv
**HTML report:** /path/to/asvs-report-YYYY-MM-DD.html
**ASVS version:** 5.0 (346 controls)
**Depth:** [quick|standard|thorough]
| Status | Count | % of applicable |
|----------------|-------|-----------------|
| COMPLIANT | N | N% |
| NON_COMPLIANT | N | N% |
| NOT_RELEVANT | N | — |
| NOT_ASSESSED | N | — |
**NON_COMPLIANT controls (prioritised by level):**
- [req_id] L[1|2|3] — [one-line summary]
- ...
**Key findings:**
- [Most significant compliance gaps, 3-5 bullets]Rules
- Read before you verdict. Never assign COMPLIANT or NON_COMPLIANT without reading the relevant code or configuration. NOT_RELEVANT is acceptable without a full read if the technology is confirmed absent.
- Exact OWASP text. The
req_descriptionfield in the output must match the source CSV verbatim — do not paraphrase. - Evidence must be real. Only cite file:line references for lines you have actually read. Only quote code you have actually seen. Never fabricate.
- Batch parallel reads. When assessing multiple controls in the same file or directory, read them in a single parallel batch — do not read the same file multiple times.
- Diagrams are additive. Diagram observations supplement code evidence; they do not replace it for controls that are verifiable from source code.
- NOT_RELEVANT requires a reason. Always include a one-sentence explanation: what technology is missing and why the control therefore doesn't apply.
- NON_COMPLIANT for absence. If a control is applicable (technology is present) but no satisfying implementation is found, verdict is NON_COMPLIANT — not NOT_RELEVANT.
- Write the HTML last. Finalize all verdicts in the CSV first, then generate the HTML report from the completed matrix.
- Do not include test code as evidence. Test files (files in
test/,tests/,spec/,__tests__/,*.test.*,*.spec.*) do not count as evidence of compliance. Production implementation only.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

