[Bug] showSubtechniques in SVGConfig does not show the sub techniques in the SVG
还没有人认领这个 Issue。
评估
调研方向
从 mitreattack.navlayers.exporters.to_svg 开始,重点查看 SVGConfig 和 ToSvg.to_svg。使用 showSubtechniques="all" 以及提供的 layer 设置重现该问题,然后将生成的 SVG 与 attack navigator 的输出进行比较。在所述配置下 SVG 包含展开的子技术即表示完成。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- HTML
- 星标
- 750
- 派生
- 174
- 平均合并
- 12 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mitre-attack/mitreattack-python 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 35/100
mitre-attack/mitreattack-python#207 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
mitre-attack/mitreattack-python#188 · 1 条评论 ·
-
bug
难度 3/5 1-2 天 新手友好度 35/100
-
bug
难度 3/5 1-2 天 新手友好度 35/100
mitre-attack/mitreattack-python#183 · 2 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
查看 mitre-attack/mitreattack-python 的全部 Issue
相似的 Issue
-
beginner friendly community contributions-welcome data-structures good first issue hacktoberfest help wanted up-for-grabs
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
Hermes: /ponytail off never reaches the model, the ruleset stays active可能已有人在做 @szsunyuan 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
DietrichGebert/ponytail#1121 ·
维护者通常 3 天内回复
-
[Bug]: Three default prefs with JSON values are never set (override.sh escapes their quotes twice)未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
Floorp-Projects/Floorp#2913 ·
维护者通常 1 天内回复
-
agent/quality hive/hosted-available-lke648397-260827-5q9t needs-kind quality testing
难度 2/5 1-3 小时 新手友好度 74/100
cncf/prow-github-actions#466 · 1 条评论 ·
维护者通常 2 天内回复
-
area: ui difficulty: easy enhancement good first issue
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 1 天内回复