Skip to main content

A Python library to create and display STIX2 graphs

Project description

PySTIXView

Python PyPI version codecov Documentation Status Super-Linter License

PySTXIView is a Python library to create and display STIX2 graphs.

PySTIXView is based on pyvis that allows you to create graph and visualize them in your browser or in Jupyter Notebook.

Installation

Requirements

  • python3 (tested on python 3.12)
  • pyvis
  • stix2

Install from pip

pip install PySTIXview

Install from source code

git clone https://github.com/vincenzocaputo/PySTIXView
cd PySTIXView
pip install .

Usage

Below is a simple example to create a graph from the STIX2 Bundle Threat Actor Leveraging Attack Patterns and Malware. (The JSON file is available at https://github.com/oasis-open/cti-documentation/blob/main/examples/example_json/threat-actor-leveraging-attack-patterns-and-malware.json)

from pystixview import PySTIXView

stix_graph = PySTIXView()
with open("threat-actor-leveraging-attack-patterns-and-malware.json", "r") as fd:
    stix_graph.add_bundle(fd.read())
stix_graph.save_graph("threat-actor-leveraging-attack-patterns-and-malware.html", width="100%", height="600px")

PySTIXView can be used also in Jupyter Notebook:

Documentation

Documentation is available here

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystixview-0.1.7.tar.gz (7.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystixview-0.1.7-py3-none-any.whl (8.1 MB view details)

Uploaded Python 3

File details

Details for the file pystixview-0.1.7.tar.gz.

File metadata

  • Download URL: pystixview-0.1.7.tar.gz
  • Upload date:
  • Size: 7.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pystixview-0.1.7.tar.gz
Algorithm Hash digest
SHA256 351c39499e5ab785e753c2ae2343539c246f4563f5f01e87e1a384677f47e4a0
MD5 841fd2a7165ccee90681d3f6c4ed1fb1
BLAKE2b-256 63210be3a914f298704c36e3d545e1c2a76056b67c0f5b6d18e126a0aea66623

See more details on using hashes here.

File details

Details for the file pystixview-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pystixview-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pystixview-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2054ef1f65c3f7b14c19e5b2b97bd7542612f32d72c28fa3069ee383c25eaefa
MD5 b3379d9ba3a41c70863d2dfde1019b6e
BLAKE2b-256 a1d3497ee4cd12d92c51cb8fad06f74e9e3ab74e4aa08896b5586550f717abe0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page