feat(tools): cluster_variants — CVE variant clustering across 3 dimensions + CLI subcommand - #187
Open
manus-use wants to merge 1 commit into
Open
feat(tools): cluster_variants — CVE variant clustering across 3 dimensions + CLI subcommand#187manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
…sions + CLI subcommand (+75 tests)
This was referenced Aug 17, 2026
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the
cluster_variantstool andmanus-agent cluster-variantsCLI subcommand — both documented in the README but previously unimplemented (zero code existed).What it does
Groups CVEs related to an input CVE across three cluster dimensions:
This is useful for finding the full attack surface when one CVE is confirmed exploited — you get immediate visibility into related vulnerabilities in the same component, same weakness class, and same disclosure ecosystem.
Usage
manus-agent cluster-variants CVE-2021-44228 manus-agent cluster-variants CVE-2021-44228 --output json | jq .clustersDesign decisions
requests(already in deps)NVD_MAX_RETRIES,NVD_RETRY_BASE_DELAYenv vars)Files changed
src/manus_agent/tools/cluster_variants.py(new) — tool implementationsrc/manus_agent/cli.py— addedcluster-variantsto_SUBCOMMANDS, parser, runner, and dispatchtests/test_cluster_variants.py(new) — 75 fully-mocked testsTest results
(Baseline 1158 + 75 new tests, 0 failures)
Test categories (75 tests)
Duplicate check
Checked all 50 open PRs (#137–#186) and 30 most recent merged PRs. No existing open or merged PR implements
cluster-variants. Closest PRs checked:cve-neighbors) — finds neighbors by CVSS similarity, NOT by component/CWE/researcher clusteringcve-enrich) — enrichment aggregator, different scopeclassify-refs) — classifies reference URLs, doesn't cluster CVEsget_osv_data) — single CVE OSV fetch, no clustering