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.6.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.6-py3-none-any.whl (8.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pystixview-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 7b604f682985932be582de6d7c9ee67327a1f087874e7c08bb4c11f8dbe7c3fa
MD5 c7ec21868ea208dbfd48e4f8e57962e0
BLAKE2b-256 858b379a8ce27ea1e576472ae1270d0faf64fc65f86ebec119f2a4a671211140

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystixview-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 685371cb184c5f1fb024d6bb7345c1bca842fe65889c2d7ecc7ca768b76e97d0
MD5 e4523b10e59fcff9c3ff6a452be111ad
BLAKE2b-256 a07daf29c0c5faa4d862398afa0dbf06e2bd7e0a938d4a1da5f0bad361f14495

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