CWE exhaustive testing
Use when the ask names a CWE, OWASP/WSTG mapping to CWE, a CVE that
maps to CWE, SAST output with CWE IDs, or "test this app/binary/firmware
against CWE". Pair with sast-code-scans when source exists and
web-application-penetration-testing when the surface is HTTP.
When to use
- "CWE-79", "test for SQLi", "map findings to CWE"
- CVE analysis that must name the underlying weakness
- Coverage pass: every CWE that applies to this stack
Methodologies
| Catalog |
Role |
| CWE List 4.20 |
weakness IDs, views, categories — source of each reference |
| OWASP WSTG / ASVS |
web mapping onto CWE IDs |
| NIST SP 800-115 |
technical assessment techniques wrapping these tests |
| ATT&CK / CAPEC |
attacker technique; still report the CWE |
How to look up a CWE
Each CWE number is a file in this skill:
references/CWE-<id>.md
Examples: references/CWE-79.md, references/CWE-89.md,
references/CWE-787.md. Open that file and follow its procedure
end-to-end. Do not improvise a one-line "XSS test" when the reference
exists. references/INDEX.md lists every ID.
Exhaustive catalog procedure
- Identify the target class (web, API, native, firmware, cloud, human).
- Pick a CWE view (CWE-1000 Research Concepts, CWE-699 Software Development,
CWE-1194 Hardware Design, CWE-1326 CWE Top 25, etc.) from
references/.
- For every applicable member, run
references/CWE-<id>.md.
- Record N/A with a reason when the platform does not exist.
- Findings cite the member CWE, not only the view/category.
- Re-read saved evidence before calling the CWE tested.
Tooling
- Always:
skills_recall this skill, then read the CWE reference file.
- HTTP:
PWN::Plugins::BurpSuite or TransparentBrowser.
- Source:
PWN::SAST::Factory.start / pwn_sast.
- Authz:
PWN::Bounty::LifecycleAuthzReplay.
- Native:
PWN::Plugins::Assembly, gdb via shell.
- Hardware:
PWN::Plugins::Serial, BusPirate.
Pitfalls
- Scanner output is inventory, not a test.
- Categories and views are groupings; they are not vulnerabilities.
- One payload on one parameter is not exhaustive for a Base CWE.
- Do not skip deprecated IDs without following the replacement.
Verification
A CWE is done when its reference checklist is ticked and evidence
paths were re-read. The engagement is CWE-complete when every
applicable ID in the chosen view is tested or N/A.
Catalog size (CWE 4.20)
- Weaknesses: 969
- Categories: 422
- Views: 59
Full table: references/INDEX.md.
1---2name: cwe3description: Exhaustively test a target against every applicable CWE.4license: MIT5allowed-tools: [pwn, terminal, extrospection]6metadata:7 source: https://skillmd.com/skills/0dayinc/cwe8 bundled: true9 references:10 - https://cwe.mitre.org/11 - https://cwe.mitre.org/data/downloads.html12 - CWE List 4.2013---1415# CWE exhaustive testing1617Use when the ask names a CWE, OWASP/WSTG mapping to CWE, a CVE that18maps to CWE, SAST output with CWE IDs, or "test this app/binary/firmware19against CWE". Pair with `sast-code-scans` when source exists and20`web-application-penetration-testing` when the surface is HTTP.2122## When to use2324- "CWE-79", "test for SQLi", "map findings to CWE"25- CVE analysis that must name the underlying weakness26- Coverage pass: every CWE that applies to this stack2728## Methodologies2930| Catalog | Role |31|---|---|32| CWE List 4.20 | weakness IDs, views, categories — source of each reference |33| OWASP WSTG / ASVS | web mapping onto CWE IDs |34| NIST SP 800-115 | technical assessment techniques wrapping these tests |35| ATT&CK / CAPEC | attacker technique; still report the CWE |3637## How to look up a CWE3839Each CWE number is a file in this skill:4041```text42references/CWE-<id>.md43```4445Examples: `references/CWE-79.md`, `references/CWE-89.md`,46`references/CWE-787.md`. Open that file and follow its procedure47end-to-end. Do not improvise a one-line "XSS test" when the reference48exists. `references/INDEX.md` lists every ID.4950## Exhaustive catalog procedure51521. Identify the target class (web, API, native, firmware, cloud, human).532. Pick a CWE view (CWE-1000 Research Concepts, CWE-699 Software Development,54 CWE-1194 Hardware Design, CWE-1326 CWE Top 25, etc.) from `references/`.553. For every **applicable** member, run `references/CWE-<id>.md`.564. Record N/A with a reason when the platform does not exist.575. Findings cite the member CWE, not only the view/category.586. Re-read saved evidence before calling the CWE tested.5960## Tooling6162- Always: `skills_recall` this skill, then read the CWE reference file.63- HTTP: `PWN::Plugins::BurpSuite` or `TransparentBrowser`.64- Source: `PWN::SAST::Factory.start` / `pwn_sast`.65- Authz: `PWN::Bounty::LifecycleAuthzReplay`.66- Native: `PWN::Plugins::Assembly`, gdb via shell.67- Hardware: `PWN::Plugins::Serial`, BusPirate.6869## Pitfalls7071- Scanner output is inventory, not a test.72- Categories and views are groupings; they are not vulnerabilities.73- One payload on one parameter is not exhaustive for a Base CWE.74- Do not skip deprecated IDs without following the replacement.7576## Verification7778A CWE is done when its reference checklist is ticked and evidence79paths were re-read. The engagement is CWE-complete when every80applicable ID in the chosen view is tested or N/A.8182## Catalog size (CWE 4.20)8384- Weaknesses: 96985- Categories: 42286- Views: 598788Full table: `references/INDEX.md`.