[Bug] showSubtechniques in SVGConfig does not show the sub techniques in the SVG
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start in mitreattack.navlayers.exporters.to_svg, focusing on SVGConfig and ToSvg.to_svg. Reproduce the issue with showSubtechniques="all" and the supplied layer settings, then compare the generated SVG with the attack navigator output. Done means the SVG includes expanded subtechniques under the described configuration.
Written by the indexing model from the issue text.
Description
Expected Behavior
Expanded sub techniques in SVG
Actual Behavior
SVG is not showing sub techniques, while the attack navigator does
Steps to Reproduce the Problem
- create a json with:
layout: "expandedSubtechniques": "all"
techniques "showSubtechniques": True
"selectSubtechniquesWithParent": True - Validate that the json contains:
layout: "expandedSubtechniques": "all"
techniques: "showSubtechniques": true
"selectSubtechniquesWithParent": true - Validate that the json works in attack explorer
- Import: from mitreattack.navlayers.exporters.to_svg import ToSvg, SVGConfig
- svgconf =SVGConfig(width=118.9, height=84.1, unit="cm", showHeader=False, fontSize=12, showSubtechniques="all")
- export with
exporter = ToSvg(domain='enterprise', source='local', resource=resource_path, config=svgconf)
exporter.to_svg(layerInit=layer, filepath="Coverage.svg")
Possible Solution
Review > mitreattack.navlayers.exporters.to_svg
- Dominant language
- HTML
- Stars
- 744
- Forks
- 175
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mitre-attack/mitreattack-python
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mitre-attack/mitreattack-python#207 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mitre-attack/mitreattack-python#188 · 1 comment ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mitre-attack/mitreattack-python#183 · 2 comments · 1 reaction ·
-
[Request] OWL exportOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in mitre-attack/mitreattack-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
EverMind-AI/Raven#845 ·
Maintainers usually reply within 1 day
-
bug needs-acceptance wg/developer-experience-ecosystem
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vllm-project/semantic-router#4480 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ehmpathy/rhachet-roles-bhuild#411 ·
-
good first issue hacktoberfest
Difficulty 1/5 Under an hour Newbie friendliness 92/100
RogueAlg0/taken#387 · 4 comments ·
Maintainers usually reply within 1 day
-
comp/agent P3 tool/terminal type/feature
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#131900 ·
Maintainers usually reply within 1 day