attack-surface-test-checklist
Use when a pull request, release branch or feature is about to be security tested and needs a targeted test list. Maps the changed code to nine attack surfaces and attaches OWASP ASVS 4.0.3 requirements, Top 10 2021 IDs and WSTG sections, only for surfaces the change touches.
Install attack-surface-test-checklist
npx skills add testland/qa --skill attack-surface-test-checklist -a claude-codeInstalls into .claude/skills/ in your project. Add -g to install it for all your projects, in ~/.claude/skills/.
SKILL.md
Shown as published, under the repository's MIT license.
---
name: attack-surface-test-checklist
description: "Use when a pull request, release branch or feature is about to be security tested and needs a targeted test list. Maps the changed code to nine attack surfaces and attaches OWASP ASVS 4.0.3 requirements, Top 10 2021 IDs and WSTG sections, only for surfaces the change touches."
---# attack-surface-test-checklist
## Overview
A change set has an attack surface: the set of security-relevant behaviors its files participate
in. A migration adding an `avatar_url` column and one adding a `password_reset_token` column
look identical in a diff stat and need entirely different tests. This skill turns a change set
into a bounded security test checklist in four moves:
1. Classify each changed file into one or more of nine attack surfaces.
2. Attach the OWASP ASVS verification requirements for each active surface.
3. Tag each active surface with its OWASP Top 10 2021 category and WSTG test sections.
4. Emit the per-surface manual and automated test items, and list the excluded surfaces.
## Differentiation axis
**What this owns:** the mapping from a specific change to the specific security tests worth
running against it, expressed as checkable items with standards references.
**What it deliberately is not:**
- **Not a scanner configuration.** The automated items are specifications of what to run, not tool settings. Triaging findings a scanner already produced is a different job.
- **Not a penetration-test methodology.** WSTG describes a full assessment of a deployed target; this selects a small subset because a change touched a surface, and stops when that surface is covered.
- **Not a compliance-control audit.** ASVS chapters are a catalog of things worth testing, not controls to attest against. A completed checklist is evidence tests ran, never evidence the change is secure or that any ASVS level is met.
## Which ASVS version this uses
**All requirement IDs below use OWASP ASVS 4.0.3 numbering.** ASVS renumbers requirements
between major versions, so an ID with no version attached is ambiguous. ASVS 5.0.0 was released
on 2025-05-30 and 4.0.3 remains published as the previous stable release ([OWASP ASVS project page](https://owasp.org/www-project-application-security-verification-standard/)). On a
project standardized on 5.0.0, treat the chapter names below as the lookup key and re-resolve
the numbers against that edition; the surfaces and test items do not change.
ASVS defines three verification levels: Level 1 is a low assurance level that is completely
penetration testable, Level 2 is for applications containing sensitive data and is the
recommended level for most applications, and Level 3 is for the most critical applications such
as those handling high value transactions or sensitive medical data ([ASVS 4.0.3, Using the ASVS](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x03-Using-ASVS.md)). For a per-change
checklist, default to Level 1 items and escalate to Level 2 when the change touches credential
storage or session token issuance. That default is a scoping convention of this skill, not an
ASVS rule.
## The nine attack surfaces
Classify each changed file by path first, then confirm or correct with content. A file can
belong to more than one surface.
| Surface | Path signals | Content signals |
|---|---|---|
| Authentication | `auth/`, `login/`, `oauth/`, `sso/`, `mfa/`, `token/` | Password hashing, session creation, JWT issuance, credential validation |
| Session management | `session/`, `cookie`, `middleware/` | Cookie attribute setting, token expiry, invalidation on logout |
| Input handling | `routes/`, `controllers/`, `validators/`, `forms/`, `parsers/` | SQL queries, template rendering, shell invocation, XML or JSON parsing |
| File upload | `upload/`, `storage/`, `media/`, `attachments/` | Multipart handling, MIME validation, storage path construction |
| Deserialization | `serializ`, `marshal`, `pickle`, `yaml.load`, `JSON.parse` | Object hydration from an untrusted source |
| Access control | `permissions/`, `policy/`, `roles/`, `authz/`, `acl/` | Role checks, ownership assertions, resource-level guards |
| API and web service | `api/`, `graphql/`, `soap/`, `rest/` | Schema validation, HTTP method checks, rate limiting |
| Cryptography | `crypto/`, `cipher`, `hmac`, `hash`, `tls/` | Key generation, algorithm selection, IV or nonce handling |
| Data protection | `pii/`, `gdpr/`, `models/`, `db/`, `cache/` | Sensitive fields stored in plaintext, logging of secrets, caching policy |
Two rules keep the classification honest:
1. **Path first, content second.** The path signal decides unless file content contradicts it. A
file under `utils/` that calls `yaml.load` is a deserialization surface; a file under
`crypto/` that only re-exports constants is not a cryptography surface.
2. **A surface with zero changed lines is excluded, not marked "not applicable".** Overscoping
is the failure mode that kills these checklists: when every change produces the same forty
items, the list stops being read.
## Step 1 - Mark the active surfaces
For each changed file, record the surface or surfaces it matched and the count of changed lines
attributed to each. A surface is **active** when at least one changed line lands in it. Keep the
file list per surface: it is what makes the test items concrete later ("SQL injection probes on
the two new query parameters in `orders_controller`", not "test for SQL injection"). Record the
excluded surfaces explicitly too. A reader needs to see that file upload was considered and
found untouched, otherwise they cannot tell whether it was skipped or forgotten.
## Step 2 - Attach ASVS requirements
| Surface | ASVS 4.0.3 chapter | Requirement areas to pull items from |
|---|---|---|
| Authentication | V2 Authentication | V2.2 General Authenticator Security, V2.4 Credential Storage, V2.5 Credential Recovery ([V2](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x11-V2-Authentication.md)) |
| Session management | V3 Session Management | V3.2 Session Binding, V3.3 Session Termination, V3.4 Cookie-based Session Management ([V3](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x12-V3-Session-management.md)) |
| Input handling | V5 Validation, Sanitization and Encoding | V5.1 Input Validation, V5.2 Sanitization and Sandboxing, V5.3 Output Encoding and Injection Prevention ([V5](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x13-V5-Validation-Sanitization-Encoding.md)) |
| File upload | V12 Files and Resources | V12.1 File Upload, V12.2 File Integrity, V12.3 File Execution, V12.4 File Storage, V12.6 SSRF Protection ([V12](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x20-V12-Files-Resources.md)) |
| Deserialization | V5 Validation, Sanitization and Encoding | V5.5 Deserialization Prevention ([V5](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x13-V5-Validation-Sanitization-Encoding.md)) |
| Access control | V4 Access Control | V4.1 General Access Control Design, V4.2 Operation Level Access Control, V4.3 Other Access Control Considerations ([V4](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x12-V4-Access-Control.md)) |
| API and web service | V13 API and Web Service | V13.1 Generic Web Service Security, V13.2 RESTful Web Service, V13.4 GraphQL ([V13](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x21-V13-API.md)) |
| Cryptography | V6 Stored Cryptography | V6.2 Algorithms, V6.3 Random Values, V6.4 Secret Management ([V6](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x14-V6-Cryptography.md)) |
| Data protection | V8 Data Protection, plus V7 Error Handling and Logging | V8.1 General Data Protection, V8.2 Client-side Data Protection, V8.3 Sensitive Private Data ([V8](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x16-V8-Data-Protection.md)); V7.1 Log Content ([V7](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x15-V7-Error-Logging.md)) |
Data protection spans two chapters on purpose. Secrets leaking into logs is a logging
requirement (V7.1), not a data protection one, and a checklist that only reads V8 misses it.
## Step 3 - Tag Top 10 2021 categories and WSTG sections
| Surface | OWASP Top 10 2021 | WSTG section |
|---|---|---|
| Authentication | [A07:2021 Identification and Authentication Failures](https://owasp.org/Top10/2021/A07_2021-Identification_and_Authentication_Failures/) | [4.4 Authentication Testing](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/README) |
| Session management | [A07:2021](https://owasp.org/Top10/2021/A07_2021-Identification_and_Authentication_Failures/) | [4.6 Session Management Testing](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/06-Session_Management_Testing/README) |
| Input handling | [A03:2021 Injection](https://owasp.org/Top10/2021/A03_2021-Injection/) | [4.7 Input Validation Testing](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) |
| File upload | [A04:2021 Insecure Design](https://owasp.org/Top10/2021/A04_2021-Insecure_Design/), [A10:2021 SSRF](https://owasp.org/Top10/2021/A10_2021-Server-Side_Request_Forgery_%28SSRF%29/) | [4.10 Business Logic Testing](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/10-Business_Logic_Testing/README) (4.10.8, 4.10.9) |
| Deserialization | [A08:2021 Software and Data Integrity Failures](https://owasp.org/Top10/2021/A08_2021-Software_and_Data_Integrity_Failures/) | [4.7 Input Validation Testing](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/07-Input_Validation_Testing/README) (4.7.11 Code Injection) |
| Access control | [A01:2021 Broken Access Control](https://owasp.org/Top10/2021/A01_2021-Broken_Access_Control/) | [4.5 Authorization Testing](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/05-Authorization_Testing/README) |
| API and web service | [A01:2021](https://owasp.org/Top10/2021/A01_2021-Broken_Access_Control/), [A03:2021](https://owasp.org/Top10/2021/A03_2021-Injection/) | [4.12 API Testing](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/12-API_Testing/README) (4.12.1 Testing GraphQL) |
| Cryptography | [A02:2021 Cryptographic Failures](https://owasp.org/Top10/2021/A02_2021-Cryptographic_Failures/) | [4.9 Testing for Weak Cryptography](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/09-Testing_for_Weak_Cryptography/README) |
| Data protection | [A02:2021](https://owasp.org/Top10/2021/A02_2021-Cryptographic_Failures/), [A05:2021 Security Misconfiguration](https://owasp.org/Top10/2021/A05_2021-Security_Misconfiguration/) | [4.2 Configuration and Deployment Management Testing](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/README) |
Three tagging notes that catch people out:
- **XSS is inside A03:2021 Injection.** The 2021 category maps 33 CWEs including CWE-79
Cross-site Scripting, CWE-89 SQL Injection, and CWE-78 OS Command Injection ([A03:2021](https://owasp.org/Top10/2021/A03_2021-Injection/)). Do not
file XSS under a separate category.
- **XXE is inside A05:2021 Security Misconfiguration.** Its notable CWEs include CWE-611
Improper Restriction of XML External Entity Reference ([A05:2021](https://owasp.org/Top10/2021/A05_2021-Security_Misconfiguration/)), even though the test that
finds it lives in WSTG 4.7 Input Validation.
- **`WSTG-<CAT>-<NN>` shorthand IDs are not printed on the stable index pages.** The section
numbers used here (4.4.3, 4.5.4, and so on) are what the stable guide publishes, so they are
the citable form.
## Step 4 - Per-surface test items
Pull only the sections whose surface is active. Rewrite each item with the specific files,
parameters, and endpoints recorded in Step 1.
### Authentication
Manual:
- Inspect changed credential storage: passwords must be salted and hashed with an approved
one-way key derivation or password hashing function (ASVS 4.0.3 2.4.1). If PBKDF2 is used, the
iteration count should be as large as verification server performance allows, typically at
least 100,000 iterations (2.4.3). If bcrypt is used, the work factor should be as large as
performance allows, with a minimum of 10 (2.4.4) ([V2](https://github.com/OWASP/ASVS/blob/v4.0.3/4.0/en/0x11-V2-Authentication.md)).
- Confirm changed login endpoints keep anti-automation controls effective against breached
credential testing, brute force, and account lockout attacks; ASVS states no more than 100
failed attempts per hour should be possible on a single account (2.2.1). Pair with WSTG 4.4.3
Testing for Weak Lock Out Mechanism ([WSTG 4.4](https://owasp.org/www-project-web-security-testing-guide/stable/4-Web_Application_Security_Testing/04-Authentication_Testing/README)).
- If the change adds an alternative sign-in path, confirm weak authenticators such as SMS and
email are limited to secondary verification and transaction approval rather than replacing a
stronger method (2.2.2). Pair with WSTG 4.4.10 Testing for Weaker Authentication in
Alternative Channel.
- Exercise any changed recovery path: a system generated activation or recovery secret must not
be sent in clear text (2.5.1), knowledge-based "secret questions" must not be present (2.5.2),
and recovery must not reveal the current password (2.5.3). Pair with WSTG 4.4.9 Testing for
Weak Password Change or Reset Functionalities.
Automated:
- Run static-analysis rules for plaintext or reversibly-stored credentials against the changed
files only.
- Scan the changed lines for hard-coded credentials and API keys.
The remaining eight surfaces (session management, input handling, file upload,
deserialization, access control, API and web service, cryptography, data protection) follow the
same Manual / Automated shape with their own ASVS 4.0.3, Top 10 2021, and WSTG citations. Pull
the full catalog from [references/per-surface-test-items.md](references/per-surface-test-items.md).
## Output format
Emit one Markdown block containing, in order:
1. **Header** naming the change set (repository, branch or pull request identifier, and the
commit the plan was built from) and the date.
2. **Surfaces touched**, with the changed-line count per surface.
3. **ASVS target level** and one sentence saying why that level was chosen.
4. **Test items by surface**, as checkboxes tagged `[MANUAL]` or `[AUTO]`, each carrying its
ASVS 4.0.3 requirement ID and, where one applies, its WSTG section number. Name the actual
files, parameters, or endpoints.
5. **Surfaces excluded**, listed by name, so a reader can see what was considered and found
untouched.
6. **Findings already visible in the change**, if any: something spotted while classifying that
is a defect now, not a test to run later.
7. **Not established by this checklist**: an explicit line stating that completing the items is
evidence tests ran, not evidence the change is secure, and not an ASVS level attestation.
Keep item 7 even when it feels redundant. It is what stops a green checklist from being read as
a sign-off.
## Worked example
Change set: a pull request on a document management service adding shared-link downloads.
Changed files:
```
src/api/routes/share_links.py +142
src/services/share_link_service.py +96
src/storage/attachment_fetcher.py +54
src/models/share_link.py +31
migrations/0042_share_link.sql +18
tests/api/test_share_links.py +210
```
Classification: `api/routes/` and the new query parameters make **input handling** and **API and
web service** active. `storage/` plus a fetch by URL makes **file upload** active (its SSRF
sub-area specifically). The model and migration add a token column, making **data protection**
active. `share_link` tokens are generated in the service, making **cryptography** active. The
link grants object access without a session, making **access control** active. No login, cookie,
or deserialization code changed. Test files are excluded from classification.
```markdown
## Security test plan - docs-service PR #814 - 3f9a1c2
**Surfaces touched:** input handling (142), API and web service (142),
access control (96), file upload / SSRF (54), data protection (49),
cryptography (96)
**ASVS target level:** L2 (the change issues a bearer-style access token)
**Produced:** 2026-07-19
### Input handling
- [ ] [MANUAL] SQL metacharacters on `?token=` and `?expires=` in `share_links.py`; confirm parameterized queries (ASVS 4.0.3 5.3.4; WSTG 4.7.5)
- [ ] [MANUAL] Positive allow-list validation on both new parameters (ASVS 4.0.3 5.1.3)
- [ ] [AUTO] Injection static-analysis rules scoped to `src/api/routes/`
### API and web service
- [ ] [MANUAL] Verb tampering on `/share/{id}`: PUT, DELETE, PATCH (ASVS 4.0.3 13.2.1; WSTG 4.7.3)
- [ ] [MANUAL] Wrong and missing `Content-Type` rejected (ASVS 4.0.3 13.2.5, 13.1.5)
- [ ] [MANUAL] `token` is not exposed in the URL path or logs (ASVS 4.0.3 13.1.3)
### Access control
- [ ] [MANUAL] Fetch another tenant's document id with a valid token (ASVS 4.0.3 4.2.1; WSTG 4.5.4)
- [ ] [MANUAL] Force an exception in the token guard; confirm deny (ASVS 4.0.3 4.1.5)
### File upload / SSRF
- [ ] [MANUAL] `attachment_fetcher.py` remote fetch against 169.254.169.254 and file:// ; confirm allow list (ASVS 4.0.3 12.6.1; A10:2021)
### Cryptography
- [ ] [MANUAL] Token generated via CSPRNG, not `random` (ASVS 4.0.3 6.3.1)
- [ ] [AUTO] Flag `Math.random` / `random.random` in `share_link_service.py`
### Data protection
- [ ] [MANUAL] Token column encrypted or stored hashed (ASVS 4.0.3 8.3.7)
- [ ] [MANUAL] No token value in the new log lines (ASVS 4.0.3 7.1.1)
### Surfaces excluded (no changed lines)
Authentication, session management, deserialization
### Findings already visible in the change
- `share_link_service.py:41` builds the token with `random.randint`. This is a defect now, not a test item. Route it to defect triage.
### Not established by this checklist
Completing these items is evidence that the listed tests ran against this change. It is not a statement that the change is secure, and it is not an ASVS L2 attestation.
```
## Anti-patterns
| Anti-pattern | Why it fails | Correct behavior |
|---|---|---|
| Applying the generic Top 10 list unchanged | Every change gets the same forty items and the team stops reading them | Filter to active surfaces in Step 1 and list the excluded ones explicitly |
| Expanding to a full application assessment | The checklist balloons past what anyone will execute, so nothing gets tested | Bound the plan by the changed surface. A file upload change does not trigger a full authentication review |
| Building the checklist from scanner output | That is triage of findings that already exist, a different input and a different decision | Build this before scanners run; feed findings to defect triage instead |
| Inventing ASVS requirement numbers | Fabricated IDs misroute the tester and destroy trust in every other ID on the page | Cite only IDs read from the published chapter; when unsure, name the chapter and section instead |
| Quoting requirement IDs without a version | ASVS renumbers across major versions, so a bare `V2.4` is ambiguous | Write the version next to the ID, as in ASVS 4.0.3 2.4.3 |
| Marking an item PASS with no evidence | Produces false confidence that survives into release | Items are binary: tested with recorded evidence, or not tested |
| Burying an obvious defect as a checklist item | A hard-coded key becomes a task someone might do next sprint | Split it out as a finding in its own section and route it now |
| Treating a complete checklist as a security sign-off | The checklist covers the changed surface only, at one ASVS level | Keep the "not established by this checklist" line in the output |
## Limitations
- **Path classification is a heuristic.** A shared utility in the change set can reach an
authentication flow that no path signal touched. Content signals reduce this but do not remove
it; a short human read of the change set is still warranted.
- **The level default is conservative.** The Level 1 default, escalating to Level 2 for
credential storage or session token issuance (defined in "Which ASVS version this uses"),
suits most changes; teams in regulated or safety-critical domains should raise it rather than
accept Level 1.
- **No threat model.** Surfaces map to known categories. Attacker motivation, likelihood, and
business impact are not modeled, so the checklist cannot rank its own items by risk.
- **No dynamic analysis is performed.** The `[AUTO]` items are specifications of what to run.
Something else has to run them.
- **Requirement IDs are version-bound.** Every ID here is ASVS 4.0.3. On a project standardized
on 5.0.0 the chapter names still route correctly but the numbers must be re-resolved against
that edition ([OWASP ASVS project page](https://owasp.org/www-project-application-security-verification-standard/)).
- **WSTG shorthand IDs are not used.** The stable guide's index pages publish section numbers,
not `WSTG-<CAT>-<NN>` identifiers, so section numbers are what this skill cites.
## Source index
Every requirement ID, section number, and quoted phrase above carries its source link at the
point it is used. These are the three roots those links come from, for anyone who wants to
browse rather than verify one claim:
- [OWASP ASVS 4.0.3 chapter index](https://github.com/OWASP/ASVS/tree/v4.0.3/4.0/en): chapters V2 through V13, the source of every `ASVS 4.0.3 <n.n.n>` ID here.
- [OWASP Top 10 2021](https://owasp.org/Top10/2021/A01_2021-Broken_Access_Control/): category pages A01 through A10.
- [OWASP WSTG stable table of contents](https://owasp.org/www-project-web-security-testing-guide/stable/): section 4 test areas 4.1 through 4.12, the source of every `4.x.y` number.0 errors · 1 warning · 0 tips · 57 checks passed
SKILL.md body: 284 lines, about 5,471 tokens · description: 276 characters · 3 files in the folder
- SpecificationA
Fields and format the Agent Skills specification requires
15 of 15 passed - DescriptionA
Whether an agent can tell when to use the skill
6 of 6 passed - Structure and contentA
How the body and the bundled files are laid out
15 of 16 passed - SecurityA
Secrets, hidden instructions, shell commands and side effects
21 of 21 passed
All checks
Body is about 5,471 tokens, over about 5,000warning
After compaction Claude Code keeps only the first 5,000 tokens.
Fix: Split detail into files that load on demand. The token count shown in the report is an estimate: characters divided by four.
Rule: Body stays under about 5,000 tokens →Starts with a frontmatter blockspecification
SKILL.md has to open with a
Rule: Starts with a frontmatter block →---block that holds at leastnameanddescription.Frontmatter is valid YAMLspecification
The text between the
Rule: Frontmatter is valid YAML →---lines has to parse as a YAML map.No byte order mark before the frontmatterspecification
Finds the invisible UTF-8 byte order mark (U+FEFF) that some Windows editors put at the start of a file.
Rule: No byte order mark before the frontmatter →Has a namespecification
The spec requires a
Rule: Has a name →namefield.Name uses lowercase letters, digits and hyphensspecification
1 to 64 characters of
Rule: Name uses lowercase letters, digits and hyphens →a-z,0-9and-, not starting or ending with a hyphen, with no double hyphens.Name avoids the words anthropic and claudespecification
The name must not contain
Rule: Name avoids the words anthropic and claude →anthropicorclaude.Name matches its folderspecification
The
Rule: Name matches its folder →namemust equal the name of the folder that holds SKILL.md.Has a descriptionspecification
The spec requires a non-empty
Rule: Has a description →description.Description fits in 1,024 charactersspecification
The spec caps
Rule: Description fits in 1,024 characters →descriptionat 1,024 characters.No angle brackets in name or descriptionspecification
Rule: No angle brackets in name or description →nameanddescriptionmust not contain<or>, so no XML-style tags such as<example>either.Compatibility note fits in 500 charactersspecification
When
Rule: Compatibility note fits in 500 characters →compatibilityis set it must be 1 to 500 characters.Frontmatter sticks to the spec's fieldsspecification
Fields other than
Rule: Frontmatter sticks to the spec's fields →name,description,license,compatibility,metadataandallowed-tools.metadata maps keys to plain valuesspecification
Rule: metadata maps keys to plain values →metadatamust be a map whose values are strings, not lists or nested maps.Frontmatter keys are plain textspecification
Finds unquoted keys such as
Rule: Frontmatter keys are plain text →true:,no:,123:or2026-01-01:in the frontmatter, including keys undermetadata.Uses paths, not the legacy globs fieldspecification
The frontmatter sets
Rule: Uses paths, not the legacy globs field →globs, which Cursor keeps only for older skills.Description says when to use the skilldescription
The description should contain a trigger such as
Rule: Description says when to use the skill →Use when ....Description is written in the third persondescription
Avoid openers like
Rule: Description is written in the third person →You are,I help,I canorYou can.Description names the tool and the resultdescription
Flags short descriptions with no trigger that lean on vague verbs (
Rule: Description names the tool and the result →helps with,handles,manages), and descriptions that repeat the name.Description is long enough to matchdescription
Descriptions under 60 characters rarely carry both the job and the trigger.
Rule: Description is long enough to match →Description and when_to_use fit in 1,536 charactersdescription
Claude Code cuts the combined
Rule: Description and when_to_use fit in 1,536 characters →descriptionandwhen_to_usetext at 1,536 characters.Description says when to use it earlydescription
The first trigger phrase, such as
Rule: Description says when to use it early →Use when, starts after character 400.Body has instructionsstructure and content
The Markdown after the frontmatter should hold the instructions the agent follows, not be empty or a stray word.
Rule: Body has instructions →SKILL.md stays under 500 linesstructure and content
The spec and Anthropic both recommend keeping SKILL.md under 500 lines.
Rule: SKILL.md stays under 500 lines →Long skills keep detail in reference filesstructure and content
A body over 250 lines that never points to a bundled file, by link or by path.
Rule: Long skills keep detail in reference files →Body gives numbered stepsstructure and content
No numbered list and no
Rule: Body gives numbered steps →Stepheadings.Body shows an examplestructure and content
No code block and no heading named Example.
Rule: Body shows an example →Paths use forward slashesstructure and content
Finds backslash paths such as
Rule: Paths use forward slashes →scripts\helper.py.No wording that goes out of datestructure and content
Finds dated phrases like
Rule: No wording that goes out of date →as of 2025,before March 2026orcoming soon.Every linked file existsstructure and content
A relative link in SKILL.md points to a file that is not in the skill's folder.
Rule: Every linked file exists →Reference files are linked from SKILL.mdstructure and content
A file linked from SKILL.md links on to further bundled files that SKILL.md does not link.
Rule: Reference files are linked from SKILL.md →Long reference files start with a contents liststructure and content
A bundled Markdown reference file over 100 lines with no contents list near the top. Files under
Rule: Long reference files start with a contents list →assets/ortemplates/, templates and test data are skipped.Explains rules instead of shouting themstructure and content
Five or more all-caps
Rule: Explains rules instead of shouting them →MUST,NEVERorALWAYSin the body.Bundled files have descriptive namesstructure and content
Files named like
Rule: Bundled files have descriptive names →doc2.md,file1.mdornotes3.txt.No READMEs or changelogs inside the skillstructure and content
A
Rule: No READMEs or changelogs inside the skill →README.md,CHANGELOG.md,INSTALLATION_GUIDE.mdorQUICK_REFERENCE.mdat the root of the skill folder.Scripts never wait for typed inputstructure and content
A bundled script calls
Rule: Scripts never wait for typed input →input(),getpass(),read -p,Read-Hostor a prompt library such as inquirer. Files named as templates are skipped, since a person runs the copy.Placeholders work in every agentstructure and content
Finds
Rule: Placeholders work in every agent →$ARGUMENTS,${CLAUDE_SKILL_DIR}and${CLAUDE_PROJECT_DIR}in SKILL.md.No real secretssecurity
Finds API keys, tokens, private keys and literal passwords in SKILL.md and its bundled files. Files under
Rule: No real secrets →evals/,fixtures/,__fixtures__/or test data folders are checked by the test data rule instead.Test data uses obvious placeholderssecurity
Finds secret-looking values in
Rule: Test data uses obvious placeholders →evals/,fixtures/,__fixtures__/and test data folders. These are usually fakes, so they cost a warning; the same value anywhere else fails the secrets rule.No piping downloads into a shellsecurity
Finds
Rule: No piping downloads into a shell →curl ... | sh,wget ... | bash,curl ... | python,bash <(curl ...),curl ... | source,source <(curl ...)andiwr ... | iex.Commands that run before loading are reviewedsecurity
Finds
Rule: Commands that run before loading are reviewed →!command blocks that Claude Code runs before the skill reaches the model.allowed-tools stays narrowsecurity
Rule: allowed-tools stays narrow →allowed-toolspre-approves unrestrictedBash(orShell) or every tool.Skills with side effects wait to be askedsecurity
The name or description is about deploying, publishing, sending or deleting, and automatic invocation is not turned off.
Rule: Skills with side effects wait to be asked →No hidden characterssecurity
Finds Unicode tag characters and bidirectional controls in SKILL.md and the bundled files, and runs of two or more zero-width characters on one line of a Markdown, text or YAML file.
Rule: No hidden characters →Frontmatter has no code-running YAML tagssecurity
Finds language tags such as
Rule: Frontmatter has no code-running YAML tags →!!python/object,!!python/apply,!!js/functionor!!ruby/objectin the frontmatter.No instructions to hide actions or override safeguardssecurity
Finds wording such as "ignore previous instructions", "override all system prompts", "don't tell the user." or "without telling the user." Quoted examples, lines that tell the agent to resist such text, tests and test data are skipped.
Rule: No instructions to hide actions or override safeguards →Doesn't turn off permission promptssecurity
Finds
Rule: Doesn't turn off permission prompts →--dangerously-skip-permissions,--dangerously-bypass-approvals-and-sandbox,danger-full-access,--yoloandbypassPermissionson a line that runs an agent CLI or sets a permission mode, unless the same file says it runs in a container or VM.Doesn't read credentials and call the networksecurity
One file names a file that holds secrets, such as an SSH private key,
Rule: Doesn't read credentials and call the network →~/.aws/credentials,.netrcor browserLogin Data, and also makes network calls withcurl,fetch,requestsor similar.No encoded or obfuscated codesecurity
Finds decode-then-run code (
Rule: No encoded or obfuscated code →base64 -d | sh,eval(atob(...)),exec(base64...)), long chains of hex escapes orString.fromCharCode, base64 strings over 200 characters outsideassets/and data files, and password-protected archives (unzip -P,7z x -p).Downloads use HTTPSsecurity
Finds
Rule: Downloads use HTTPS →curl,wgetand PowerShell downloads fromhttp://URLs. Local and private addresses such aslocalhost,127.0.0.1,10.x,192.168.xand169.254.169.254are skipped.Hooks in the frontmatter are reviewedsecurity
The frontmatter has a
Rule: Hooks in the frontmatter are reviewed →hooksfield, which Claude Code turns into commands that run on later tool calls.Credential files are reviewedsecurity
Names files that hold credentials:
Rule: Credential files are reviewed →~/.sshand SSH private keys,~/.aws/credentials,.netrc,.pypirc,~/.kube/config,~/.docker/config.json,~/.config/gh,/etc/shadow, browserLogin Dataand cookies, wallet files and macOS keychain lookups.Changes outside the project are reviewedsecurity
Finds recursive deletes of
Rule: Changes outside the project are reviewed →/,~or$HOME,chmod 777and setuid, writes to shell startup files and agent settings, scheduled jobs and services (crontab,launchctl load,systemctl enable,schtasks),mkfsanddd if=.Downloads are pinned to a versionsecurity
Finds downloads from
Rule: Downloads are pinned to a version →releases/latestand from a branch such asmainormasteron raw.githubusercontent.com, of scripts and binaries that the skill then runs.Instructions ship with the skillsecurity
Finds a skill that tells the agent to fetch an instruction file from a URL (
Rule: Instructions ship with the skill →SKILL.md,AGENTS.md,CLAUDE.md,instructions.md,prompt.md,.cursorrules) or to follow the steps or commands on a web page.Links show where they gosecurity
Finds links through URL shorteners such as bit.ly or tinyurl.com, links to public IP addresses instead of domain names, and downloads from paste sites or anonymous file hosts such as pastebin.com or transfer.sh.
Rule: Links show where they go →Network callssecurity
Lists the first network call:
Rule: Network calls →curl,wget,fetch(,requests,urllib,axios,Invoke-WebRequestand similar. A note, not a fault: it costs no points.Binary filessecurity
Lists compiled or packaged files in the skill folder, such as
Rule: Binary files →.exe,.dll,.so,.jar,.pycor.wasm. A note, not a fault: it costs no points.
To fix these in your copy of the skill, let your agent do it: the skillland-fix skill for Claude Code, Codex and Cursor edits the SKILL.md and runs these checks again until it scores A. Get the skills
The validator checks how the SKILL.md is written. It doesn't run the skill, so a high score doesn't mean the skill is useful, correct or safe. What the score covers
Compared with the index
Score
92 scores higher than 46% of 4,462 skills.
Body size
About 5,471 tokens, loaded each time the skill runs. The median is 1,651.
Files (3)
A tick marks the 3 of 3 files the validator read. It reads text files under 200 KB.
More testing & qa skills
fix-pr
D·64questdb/questdb · official
Develop features and fix bugs or review findings from a list, one item at a time, with exhaustive tests enforced while developing - design the change and its test plan against CLAUDE.md "Testing" and have both challenged independently, build test-first, run the item's tests with coverage (ci/diff_coverage.py) and add tests until every changed line, branch and condition runs, have the tests reviewed independently and close the gaps; commit. When the queue is empty, run review-pr at level 3 over the whole PR, as before approval, and treat what blocks it the same way until a review finds nothing that blocks. Bugs this PR caused that an independent risk rating finds unlikely to hurt users ship as private issues, and bugs found on the way that the PR base already has become GitHub issues; neither is work for the run. Use when the user runs /skill:fix-pr or asks to develop or fix items with it.
npx skills add questdb/questdb --skill fix-pr17.6k
snailsploit/claude-red
Comprehensive API security testing methodology covering REST, gRPC, and WebSocket attack surfaces. Addresses the full OWASP API Security Top 10 2023 including BOLA/IDOR, broken authentication, excessive data exposure, rate limiting bypass, BFLA, mass assignment, SSRF, and security misconfiguration. Includes REST-specific attacks such as HTTP verb tampering, content-type switching, and parameter pollution. Covers gRPC exploitation through protobuf interception, reflection API enumeration, and metadata injection. Addresses WebSocket vulnerabilities including origin bypass, message injection, and cross-site WebSocket hijacking. Provides tooling guidance for Burp Suite, Postman, grpcurl, websocat, and mitmproxy. Each technique includes detection signatures and defensive indicators so you understand what artifacts your testing leaves behind. Designed for authorized penetration testing engagements against API-driven architectures.
npx skills add snailsploit/claude-red --skill offensive-api-security11.6k
elementalsouls/claude-bughunter
Drive a single exploit attempt all the way to proof instead of giving up one step early — for the failure where you found the bug and wrote the right payload but never confirmed it landed. Three mechanics: (1) inspect and FOLLOW every redirect (a 3xx is a step in the flow, not the end — the reflection or state change often fires only after the Location hop); (2) diff each response against an explicit expected outcome (a named marker, a status, a body delta) — never assume a 2xx or a delivered POST means success; (3) stop and CHANGE APPROACH after N identical failures instead of re-sending the same request. Use when a payload won't land, when the exploit seems delivered but is unconfirmed, when you are following (or skipping) redirects, or when you catch yourself looping the same request. This is per-attempt proof mechanics; for 'is this signal a finding' see triage-validation, for 'don't abandon surface coverage' see redteam-mindset.
npx skills add elementalsouls/claude-bughunter --skill exploit-completion24.1k
More from testland/qa
- a11y-violation-gate
- ab-test-validity-checklist
- add-to-homescreen-flow-tests
- ai-spec-coverage-mapper
- ai-test-generator
- allure-reports
- api-chaos-runner
- apollo-server-tests
- appium-testing
- aria-authoring-patterns
- async-ordering-tests
- atlas-migrations
- audit-trail-test-author
- auth0-tests
- aws-sam-local-testing
- axe-a11y
- azure-functions-tests
- bats-testing
- bdd-step-library-curator
- behave-testing
- boundary-value-generator
- browser-matrix-strategy-reference
- buf-cli-lint-breaking-build
- bug-bash-facilitator
- bug-report-template
- bug-tracker-workflow
- bullmq-tests
- cache-key-discriminator-audit
- cdn-cache-purge-tests
- ceedling-build-runner
- celery-tests
- chaos-drill-protocol
- chaos-experiment-author
- chaos-mesh
- chart-render-tests
- checkov-policy
- chromatic-visual-regression-testing
- chrome-extension-messaging-tests
- ci-failure-triage
- ci-test-job-conventions
- cli-output-conventions
- cloud-grid-e2e
- cloudflare-workers-miniflare
- codeql-queries
- compliance-coverage-scoring
- confirmation-testing-workflow
- contract-compatibility-gate
- coverage-diff-reporter
- coverage-guided-fuzzing
- coverage-py-analysis
- cron-job-test-author
- cross-tenant-data-leak-tests
- cucumber-testing
- currents-integration
- cve-exploitability-triage
- cypress-testing
- data-contract-extractor
- data-quality-conventions
- data-quality-gate
- db-query-plan-analyzer
- dbt-testing
- deadlock-detection-harness
- decision-table-test-design
- deepchecks-tests
- deepeval-evaluation
- defect-escape-taxonomy
- definition-of-done
- dependabot-config
- dependency-vulnerability-scanning
- desktop-test-strategy-reference
- detox-testing
- docker-compose-tests
- dotnet-unit-tests
- dr-drill-runner
- dst-transition-reference
- e2e-suite-budget
- elasticsearch-relevance-tests
- electron-playwright
- embedded-coverage-strategy-reference
- error-budget-tests
- espresso-suite
- event-sourcing-tests
- evidently-monitoring
- exec-quality-narrative
- experiment-results-interpreter
- experiment-sdk-testing
- exploratory-charter-author
- exploratory-testing
- failure-injection-test-author
- fairlearn-fairness
- fake-clock-testing
- faker-data
- fast-check-testing
- feature-flag-test-harness
- flake-axis-bisection
- flake-dashboard-author
- flake-pattern-reference
- flaky-test-quarantine
- flame-graph-analyzer
- flaui-tests
- flutter-testing
- flyway-migrations
- framework-choice-advisor
- game-perf-profiling
- gameplay-recording-replay
- gdpr-test-patterns
- gherkin-from-stories
- ghz-load
- giskard-llm
- giskard-tests
- github-actions-test-jobs
- gitlab-ci-test-jobs
- gitleaks-scanning
- go-unit-tests
- godot-gut-tests
- golden-file-conventions
- googletest-embedded-arm
- graphql-complexity-limit-tester
- graphql-n-plus-one-remediation
- graphql-schema-regression
- graphql-subscription-test-author
- graphql-yoga-tests
- great-expectations
- grpc-mock
- grpc-streaming-test-author
- grpcurl-cli
- hardware-in-loop-reference
- hasura-tests
- helm-chart-tester
- hipaa-test-patterns
- hybrid-search-eval-author
- hypothesis-testing
- i18n-string-coverage
- idempotency-test-author
- jacoco-analysis
- jaeger-trace-tests
- jenkinsfile-test-stages
- jmeter-load-testing
- jqwik-testing
- js-unit-tests
- judgment-list-author
- junit-xml-analysis
- jvm-unit-tests
- k-anonymity-verifier
- k6-load-testing
- kafka-consumer-tests
- karate-testing
- keycloak-tests
- knip-dead-code
- langfuse-tracing
- language-native-sast
- launchdarkly-testing
- lcov-analysis
- lighthouse-perf
- liquibase-migrations
- living-documentation-publisher
- lizard-complexity
- llm-eval-anti-patterns
- llm-regression-suite-author
- load-testing-overview
- locale-format-validator
- madge-deps
- maestro-flows
- mailpit-testing
- malicious-payload-bank
- manual-test-script-author
- mfa-flow-test-author
- migration-operation-taxonomy
- mobile-a11y-test-author
- mobile-device-matrix-toolkit
- model-based-test-graph-author
- model-performance-regression-gate
- model-risk-evidence-matrix
- mqtt-tests
- msw-handlers
- mull-mutation
- multi-tool-finding-triage
- multiplayer-state-machine-coverage
- mutant-survival-triage
- mutmut-mutation
- mvcc-isolation-tests
- negative-test-generator
- non-functional-requirement-extractor
- notebook-ci-pipeline-author
- nuclei-dast
- oauth-flow-test-author
- object-model-patterns
- offline-fallback-tests
- okta-tests
- openapi-contract-diff
- openfeature-sdk-testing
- opentelemetry-trace-assertions
- otel-collector-config-tester
- outbox-pattern-test-author
- pact-contract-testing
- pairwise-test-case-generator
- payment-flow-test-author
- payment-gateway-sandboxes
- pci-dss-control-test-author
- pdf-accessibility-checker
- pdf-snapshot-tester
- percy-visual-regression-testing
- perf-budget-gate
- pester-cli-testing
- pii-masking-pipeline-builder
- pitest-mutation
- platform-cert-overview-reference
- playwright-agents
- playwright-extension-fixtures
- playwright-fixture-builder
- playwright-snapshots
- playwright-testing
- policy-as-code-runner
- post-mortem-author
- postman-collections
- presidio-pii-detection
- print-stylesheet-tests
- prod-canary-validator
- promptfoo-evaluation
- proptest-testing
- protobuf-compat-checking
- pseudo-localization-runner
- push-notification-test-author
- pytest-asyncio-patterns
- python-unit-tests
- qa-hiring-kit
- qemu-system-test-runner
- qt-test-framework
- quality-status-digest
- rabbitmq-tests
- race-condition-test-author
- ragas-evaluation
- reachability-analyzer
- red-green-refactor
- redis-cache-tests
- regression-suite-selector
- release-runbook-author
- renovate-config
- reqnroll-testing
- restassured-testing
- restler-fuzzing
- risk-matrix
- rtl-rendering-tester
- rust-unit-tests
- saga-transaction-tests
- schemathesis-fuzzing
- screen-reader-test-author
- secrets-rotation-runner
- seed-data-curator
- selenium-grid-4-runner
- selenium-testing
- semgrep-rules
- server-sent-events-tests
- serverless-integration-test-builder
- service-worker-lifecycle-tests
- session-management-test-author
- sidekiq-tests
- skill-matrix-author
- slo-load-test-plan
- smoke-suite-gate
- sms-test-author
- soc2-evidence-collector
- soda-checks
- sonarqube-maintainability-gate
- sonarqube-rules
- spec-testability-heuristics
- sqs-tests
- state-transition-test-design
- storybook-visual-regression-testing
- stride-threat-modeling
- stripe-subscription-billing-test-author
- stripe-test-cards-and-webhooks
- stryker-mutation
- stryker-net-mutation
- syft-generation
- synthea-healthcare-data
- synthetic-data-toolkit
- synthetic-monitor-author
- synthetic-pii-generator
- tcm-case-management
- tenant-onboarding-test-author
- test-case-anatomy-reference
- test-case-from-live-feature
- test-case-ideation-from-story
- test-code-conventions
- test-coverage-targeter
- test-data-patterns
- test-design-scorecard
- test-effort-estimation
- test-framework-architecture-audit
- test-framework-blueprint
- test-isolation-patterns
- test-management-sync
- test-pyramid-balancer
- test-removal-criteria
- test-run-summary-author
- test-strategy-author
- test-suite-health-audit
- testcontainers
- timezone-test-matrix-builder
- toxiproxy-chaos
- trace-spec-author
- traceability-matrix-builder
- trivy-config
- trivy-image
- tui-snapshot-tester
- unity-test-framework
- unity-test-framework-c
- unreal-automation-system
- varnish-test-vtc-syntax
- vector-search-recall-tests
- vex-author
- visual-baseline-conventions
- visual-baseline-gate
- wcag-color-contrast
- wcag-compliance-reporter
- wcag-keyboard-navigation
- web-e2e-overview
- web-push-tests
- web-vitals-inp-deep
- webdriverio-testing
- webhook-delivery-tester
- websocket-tests
- winappdriver
- wiremock-stubs
- workbox-tests
- xcuitest-suite
- zap-baseline