feat(tools): get_attack_map — CVE to MITRE ATT&CK technique mapper + CLI subcommand (+81 tests) - #188
Open
manus-use wants to merge 1 commit into
Open
feat(tools): get_attack_map — CVE to MITRE ATT&CK technique mapper + CLI subcommand (+81 tests)#188manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
…CLI subcommand (+81 tests)
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
Adds
get_attack_map— a new tool that maps CVEs to MITRE ATT&CK techniques and tactics by resolving the CVE → CWE → CAPEC → ATT&CK chain. Also wires up themanus-agent attack-mapCLI subcommand.What it does
Given a CVE identifier, the tool:
CLI Usage
manus-agent attack-map CVE-2024-3094 manus-agent attack-map CVE-2024-3094 --output json | jq .techniquesExample Output
Why this matters
Existing tools tell you what a vulnerability is (NVD, EPSS, KEV, CWE). This tool tells you how it fits into real-world attack campaigns — which ATT&CK techniques could exploit it and which defensive controls apply. This bridges the gap between vulnerability management and threat-informed defense.
Design decisions
requests(already in deps)Files changed
src/manus_agent/tools/get_attack_map.py— new tool implementationsrc/manus_agent/cli.py— CLI parser, runner, dispatch, and_SUBCOMMANDSregistrationtests/test_attack_map.py— 81 fully-mocked testsTest coverage (81 tests)
All tests are fully mocked — no real HTTP calls.
Open PRs checked (no overlap)
Checked all 100+ open PRs (#77–#187). No existing open or merged PR covers ATT&CK technique mapping, CAPEC resolution, or CWE-to-tactic mapping. Closest PRs are:
Test results