Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug] showSubtechniques in SVGConfig does not show the sub techniques in the SVG

Đang mở
#169 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu trong mitreattack.navlayers.exporters.to_svg, tập trung vào SVGConfig và ToSvg.to_svg. Tái hiện sự cố với showSubtechniques="all" và các cài đặt layer được cung cấp, sau đó so sánh SVG được tạo với đầu ra của attack navigator. Hoàn thành khi SVG bao gồm các subtechnique đã được mở rộng theo cấu hình được mô tả.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

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

  1. create a json with:
    layout: "expandedSubtechniques": "all"
    techniques "showSubtechniques": True
    "selectSubtechniquesWithParent": True
  2. Validate that the json contains:
    layout: "expandedSubtechniques": "all"
    techniques: "showSubtechniques": true
    "selectSubtechniquesWithParent": true
  3. Validate that the json works in attack explorer
  4. Import: from mitreattack.navlayers.exporters.to_svg import ToSvg, SVGConfig
  5. svgconf =SVGConfig(width=118.9, height=84.1, unit="cm", showHeader=False, fontSize=12, showSubtechniques="all")
  6. 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

Ngôn ngữ chính
HTML
Star
750
Fork
174
Merge trung bình
12 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mitre-attack/mitreattack-python

Tất cả issue của mitre-attack/mitreattack-python

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.