Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,37 @@ If no naming mechanism is available, skip session naming.
for a code review of C code, suggest adding the `memory-safety-c` protocol.
- **Suggest taxonomies** when the task involves classification. For example,
if investigating stack corruption, suggest the `stack-lifetime-hazards` taxonomy.
- **Ask for the audit domain** when the selected template is
`investigate-security`, `review-code`, `review-cpp-code`, or
`exhaustive-bug-hunt`. The library includes CWE-derived per-domain
taxonomies that scope findings to domain-relevant vulnerability classes.
Ask the user which domain best describes the code under review:
Comment thread
Alan-Jowett marked this conversation as resolved.
Resolved

| Domain | Taxonomy | Description |
|--------|----------|-------------|
| `kernel-mode-c-cpp` | `cwe-kernel-mode-c-cpp` | OS kernel and driver code in C/C++ |
| `native-user-mode-c-cpp` | `cwe-native-user-mode-c-cpp` | User-mode native applications in C/C++ |
| `managed-dotnet` | `cwe-managed-dotnet` | .NET managed code (C#, F#, VB.NET) |
| `web-js-ts` | `cwe-web-js-ts` | Web frontend JavaScript/TypeScript |
| `web-backend` | `cwe-web-backend` | Server-side web applications (any language) |
| `cloud-service` | `cwe-cloud-service` | Cloud-hosted services and APIs |
| `iac` | `cwe-iac` | Infrastructure as Code (Terraform, Bicep, ARM, etc.) |
| `firmware-embedded` | `cwe-firmware-embedded` | Firmware and embedded systems |
| `crypto-protocols` | `cwe-crypto-protocols` | Cryptographic protocol design and implementation |
| `data-processing` | `cwe-data-processing` | Data pipelines, ETL, batch processing |
| `cli-tools` | `cwe-cli-tools` | Command-line tools and utilities |
| `mobile-app` | `cwe-mobile-app` | Mobile applications (iOS, Android) |
| `container-k8s` | `cwe-container-k8s` | Container and Kubernetes workloads |
| *(none)* | *(skip)* | Do not scope by CWE domain |

If the user has already provided enough context to infer the domain
(e.g., "review this C kernel driver" → `kernel-mode-c-cpp`), suggest
the inferred domain and ask for confirmation instead of presenting the
full table. If the user declines CWE scoping, skip it — the template's
existing taxonomies still apply. When a domain is selected, add the
corresponding `cwe-<domain>` taxonomy to the assembled prompt's
`# Classification Taxonomy` section alongside any taxonomies already
declared by the template.
- **Include non-goals** in every assembled prompt. Ask the user what should be
explicitly out of scope, or suggest sensible defaults from the template.
- **Allow customization.** If the user wants to modify a component (e.g.,
Expand Down
4 changes: 0 additions & 4 deletions scripts/ingest-cwe.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,10 +751,6 @@ def generate_taxonomy_file(domain_key, cwes, weaknesses, version):
f" {n} weakness classes from CWE version {version}. Use to scope",
" security audits to domain-relevant vulnerability classes only.",
f'cwe_version: "{version}"',
"applicable_to:",
" - investigate-security",
" - review-code",
" - exhaustive-bug-hunt",
"---",
"",
f"# Taxonomy: CWE {info['display_name']}",
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-cli-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
65 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This taxonomy’s frontmatter no longer includes an applicable_to field, but other taxonomies in this repo consistently include it (e.g., taxonomies/stack-lifetime-hazards.md:13-17), and docs list it as a standard taxonomy frontmatter field (docs/architecture.md:113-114). Keeping applicable_to here (or explicitly setting it to [] if intentionally omitted) would make taxonomy metadata consistent for discovery and tooling.

Suggested change
cwe_version: "4.19.1"
cwe_version: "4.19.1"
applicable_to: []

Copilot uses AI. Check for mistakes.
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE CLI Tools
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-cloud-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
113 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Cloud Service
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-container-k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
5 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This taxonomy’s frontmatter no longer includes an applicable_to field, but other taxonomies in this repo consistently include it (e.g., taxonomies/stack-lifetime-hazards.md:13-17), and docs list it as a standard taxonomy frontmatter field (docs/architecture.md:113-114). Keeping applicable_to here (or explicitly setting it to [] if intentionally omitted) would make taxonomy metadata consistent for discovery and tooling.

Suggested change
cwe_version: "4.19.1"
cwe_version: "4.19.1"
applicable_to:
- container-k8s

Copilot uses AI. Check for mistakes.
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Container and Kubernetes
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-crypto-protocols.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
63 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This taxonomy’s frontmatter no longer includes an applicable_to field, but other taxonomies in this repo consistently include it (e.g., taxonomies/stack-lifetime-hazards.md:13-17), and docs list it as a standard taxonomy frontmatter field (docs/architecture.md:113-114). Keeping applicable_to here (or explicitly setting it to [] if intentionally omitted) would make taxonomy metadata consistent for discovery and tooling.

Suggested change
cwe_version: "4.19.1"
cwe_version: "4.19.1"
applicable_to: []

Copilot uses AI. Check for mistakes.
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Cryptographic Protocols
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-data-processing.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
69 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This taxonomy’s frontmatter no longer includes an applicable_to field, but other taxonomies in this repo consistently include it (e.g., taxonomies/stack-lifetime-hazards.md:13-17), and docs list it as a standard taxonomy frontmatter field (docs/architecture.md:113-114). Keeping applicable_to here (or explicitly setting it to [] if intentionally omitted) would make taxonomy metadata consistent for discovery and tooling.

Suggested change
security audits to domain-relevant vulnerability classes only.
security audits to domain-relevant vulnerability classes only.
applicable_to:
- data-processing

Copilot uses AI. Check for mistakes.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Data Processing
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-firmware-embedded.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
226 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Firmware and Embedded Systems
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-iac.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
8 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Infrastructure as Code
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-kernel-mode-c-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
113 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Kernel-Mode C/C++
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-managed-dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
92 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This taxonomy’s frontmatter no longer includes an applicable_to field, but other taxonomies in this repo consistently include it (e.g., taxonomies/stack-lifetime-hazards.md:13-17), and docs list it as a standard taxonomy frontmatter field (docs/architecture.md:113-114). Keeping applicable_to here (or explicitly setting it to [] if intentionally omitted) would make taxonomy metadata consistent for discovery and tooling.

Suggested change
security audits to domain-relevant vulnerability classes only.
security audits to domain-relevant vulnerability classes only.
applicable_to:
- managed-dotnet

Copilot uses AI. Check for mistakes.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Managed .NET
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-mobile-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
23 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This taxonomy’s frontmatter no longer includes an applicable_to field, but other taxonomies in this repo consistently include it (e.g., taxonomies/stack-lifetime-hazards.md:13-17), and docs list it as a standard taxonomy frontmatter field (docs/architecture.md:113-114). Keeping applicable_to here (or explicitly setting it to [] if intentionally omitted) would make taxonomy metadata consistent for discovery and tooling.

Suggested change
security audits to domain-relevant vulnerability classes only.
security audits to domain-relevant vulnerability classes only.
applicable_to:
- mobile-app

Copilot uses AI. Check for mistakes.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Mobile Applications
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-native-user-mode-c-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
172 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Native User-Mode C/C++
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-web-backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
423 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.
cwe_version: "4.19.1"

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This taxonomy’s frontmatter no longer includes an applicable_to field, but other taxonomies in this repo consistently include it (e.g., taxonomies/stack-lifetime-hazards.md:13-17), and docs list it as a standard taxonomy frontmatter field (docs/architecture.md:113-114). Keeping applicable_to here (or explicitly setting it to [] if intentionally omitted) would make taxonomy metadata consistent for discovery and tooling.

Suggested change
cwe_version: "4.19.1"
cwe_version: "4.19.1"
applicable_to:
- web-backend

Copilot uses AI. Check for mistakes.
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Web Backend
Expand Down
4 changes: 0 additions & 4 deletions taxonomies/cwe-web-js-ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description: >
265 weakness classes from CWE version 4.19.1. Use to scope
security audits to domain-relevant vulnerability classes only.

Copilot AI Apr 8, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This taxonomy’s frontmatter no longer includes an applicable_to field, but other taxonomies in this repo consistently include it (e.g., taxonomies/stack-lifetime-hazards.md:13-17), and docs list it as a standard taxonomy frontmatter field (docs/architecture.md:113-114). Keeping applicable_to here (or explicitly setting it to [] if intentionally omitted) would make taxonomy metadata consistent for discovery and tooling.

Suggested change
security audits to domain-relevant vulnerability classes only.
security audits to domain-relevant vulnerability classes only.
applicable_to:
- web-js-ts

Copilot uses AI. Check for mistakes.
cwe_version: "4.19.1"
applicable_to:
- investigate-security
- review-code
- exhaustive-bug-hunt
---

# Taxonomy: CWE Web Frontend JavaScript/TypeScript
Expand Down
Loading