Skip to content

Add MITRE CWE catalog, validator, and sync script - #137

Merged
ShadowBearVR merged 2 commits into
chipsalliance:mainfrom
ShadowBearVR:cwe-catalog
Sep 26, 2026
Merged

ShadowBearVR merged 2 commits into
chipsalliance:mainfrom
ShadowBearVR:cwe-catalog

Conversation

@ShadowBearVR

Copy link
Copy Markdown
Collaborator

In preparation for future improvements coming in follow up PRs, this PR introduces a simple script to download and process, and a corresponding agent tool for searching CWEs.

Add CWEValidator, search_cwe agent tool, and automated MITRE CWE
catalog synchronization script.
Add bundled MITRE CWE catalog (cwe_catalog.json) for offline validation
and agent keyword lookups.

@siemen11 siemen11 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Really cool Collin! Nice feature to include more knowledge in the future!

if not catalog or not query:
return []

tokens = [t.lower() for t in query.split() if len(t) > 1]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think here we split on whitespace, just to check if we should also split on hyphens/punctuation?

@ShadowBearVR
ShadowBearVR merged commit 3227348 into chipsalliance:main Sep 26, 2026
3 checks passed
@ShadowBearVR
ShadowBearVR deleted the cwe-catalog branch September 26, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants