Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Update drawSvg Library to latest version #116

Open
jondricek opened this issue May 31, 2023 · 0 comments
Open

[Request] Update drawSvg Library to latest version #116

jondricek opened this issue May 31, 2023 · 0 comments

Comments

@jondricek
Copy link
Contributor

We have a dependency on drawSvg both in the requirements-dev.txt and setup.py files. It is used in the mitreattack/navlayers section of the library, specifically in the svg_templates.py and svg_objects.py files.

The documentation for drawSvg is here: https://github.com/cduck/drawsvg

It would be great to update our dependency to use the latest version of drawSvg, but the last time we did that, we had the following error: #106

Test

After upgrading the dependency, a good way to test that it worked may be as follows:

  • Download the G0016 Navigator Layer file
  • Download the Enterprise ATT&CK v13.1 STIX file
  • Run the following command in a python virtual environment with the updated version of the mitreattack-python library
    • layerExporter_cli G0016-enterprise-layer.json -m svg -s local --resource enterprise-attack.json -o my-G0016-svg-output.svg
  • Check out the my-G0016-svg-output.svg file to see if it looks right!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant