Skip to content

Mapping data and explanations ​

Problems with the weakness mapping data in rules/mappings/, which gives each finding its CWE, OWASP Top 10 and ATT&CK entries.

catalog entry ... error from go test ./internal/mappings (or whatever loads the mapping data) ​

  • Cause: the catalog rules/mappings/attacks.yaml broke a rule. The message tells you which:
    • "mapping usage": MITRE marks that CWE as Discouraged or Prohibited for mapping. Pick a child or another entry.
    • "usage_note": the CWE is Allowed-with-Review and needs a written reason.
    • "not in the pinned CWE data": the number is wrong. Look it up on cwe.mitre.org.
    • "revoked or deprecated": MITRE retired the ATT&CK technique. Pick its replacement from the technique's page.
  • Check: go test ./internal/mappings/ 2>&1 | tail.

A finding shows "Unmapped" ​

  • Expected: neither our catalog nor any scanner gave a usable weakness number. This is deliberate. It is never guessed.
  • Check: the finding's class in waap assess findings, and rules/mappings/attacks.yaml.
  • Fix: add a catalog entry for the class, with a reason, or accept the scanner's CWE.

cwe_conflict on a finding ​

  • Cause: a scanner named a different CWE than our catalog. Ours is kept, and the scanner's is listed with how the two relate (more general, more specific, or unrelated).
  • Check: the explanation text. A scanner CWE that is "less specific" is usually fine. "Unrelated" deserves a look at the finding itself.

No OWASP Top 10 line on a finding ​

  • Cause: MITRE's data has no membership for that CWE (for example CWE-1336). Memberships are never invented. A tag that only the scanner gave is shown labelled "scanner only".

A mapping seems wrong ​

  • Cause: the mapping is the most specific CWE that MITRE allows and that fits what a black-box scan can see. It is a best fit, not a proof.
  • Fix: open rules/mappings/attacks.yaml, change the entry with a reason, and run go test ./internal/mappings ./internal/assess. Update golden files with UPDATE_GOLDEN=1.

make update-mappings says "sha256 mismatch" ​

  • Cause: MITRE changed the file at the pinned address.
  • Fix: check the new file, change the pin and version in scripts/update-mappings.sh, and regenerate. Read the diff of rules/mappings/*.json, then run make sbom and the tests.

The Learned model page shows nothing ​

  • Symptom: the Learned model page has no endpoints, samples or suggestions.
  • Cause: learning is opt-in per application (learning.enabled, default off). Only applications that turn it on are observed. Detect mode is enough.
  • Check: the Status tab shows a "Learning is off" card, or run waap learning status -app NAME.
  • Fix: press Turn on learning (operator), or run waap learning set -app NAME enabled=true learning.enabled=true, then send clean traffic.