Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

redteamcaliber/python-stix

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-stix Build Status

A python library for parsing, manipulating, and generating STIX content. The python-stix library utilizes the STIX v1.0 bindings, is under heavy development and should be considered PRE-ALPHA.

For more information about STIX, see http://stix.mitre.org.

Installation

The python-stix package depends on the lxml XML parsing library and the python-cybox CybOX library.

To build lxml on Ubuntu, you will need the following packages from the Ubuntu package repository:

  • python-dev
  • libxml2-dev
  • libxslt1-dev

Once the dependencies have been built, you can install lxml via pip:

$ pip install lxml

Note, on Windows it is recommended to download a pre-compiled distribution of lxml.

For more information about installing lxml, see http://lxml.de/installation.html

The CybOX library can be found at its GitHub repositories: CybOX: https://github.com/CybOXProject/python-cybox

To install, download or clone the repositories into their own folders. Once cloned or downloaded, the setuptools script, setup.py can be run to install CybOX. To install, run the following commands from within the project directories:

$ python setup.py install

For more information about CybOX, see http://cybox.mitre.org

Versioning

Releases of the python-stix library will be given major.minor.revision version numbers, where major and minor correspond to the STIX version being supported. The revision number is used to indicate new versions of the Python library itself.

Layout

The python-stix package layout is as follows:

  • stix/ : root level package
  • examples/ : example python scripts that leverage the python-stix library
  • stix/utils.py : utility methods used internally by the python-stix library
  • stix/bindings/ : generateDS generated xml-to-python bindings (leveraged for parsing and output of STIX XML content)
  • stix/core/ : APIs for core STIX constructs (e.g., STIX Header, STIX Package)
  • stix/common/ : APIs for common STIX constructs (e.g., Structured Text, Information Source)
  • stix/indicator/ : APIs for STIX Indicator constructs
  • stix/extensions/ : APIs for STIX extensions (e.g., OVAL Test Mechanisms, CIQ Identity)

Please refer to examples for concrete examples of how to interact with the python-stix library

About

Python bindings and APIs for STIX

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.