stix
An API for parsing and generating STIX content.
Decision gist · record as of 2026-08-14
Yes, but only for legacy STIX v1.2.0 workflows. The package is stable, has low install friction, carries no license restrictions, and has no known vulnerabilities. However, it is abandoned and will not receive updates. Install it if your threat intelligence pipeline is committed to STIX v1.2.0 and you cannot migrate to a maintained alternative. Do not install it for new projects—evaluate whether STIX 2.0+ or a maintained STIX library is available for your use case.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- lxml requires libxml2-dev and libxslt-dev system libraries on Linux; pre-built wheels are available for Windows and macOS but may require manual installation on older systems.
- Low install friction with a pure-wheel distribution.
- Maintenance status is abandoned—last commit was 2021-11-24, over two years ago.
License · maintenance · safety
BSD (permissive) — BSD license is permissive and poses no restrictions on use, modification, or distribution. You may use this package freely in commercial or private projects without license compliance burden.
last release 2020-11-16 (2097 days) · last repo commit 2021-11-24 · 251 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 121,365 downloads/mo, #11,984 on PyPI
Alternatives
Verify before relying
pip install stix
import stix
from stix.core import STIXPackage
package = STIXPackage()- Whether the package works reliably with Python versions beyond 3.8 (classifiers list 3.8 as the latest tested version).
- Current compatibility with modern versions of its runtime dependencies (mixbox, cybox, python-dateutil, lxml).
- Whether STIX v1.2.0 remains the active standard or if newer STIX versions require a different library.
What it is and what it does
python-stix is a library for working with STIX v1.2.0, a standardized XML-based format for expressing and sharing structured threat intelligence. It provides Python APIs to read STIX documents from XML, construct threat objects programmatically (campaigns, indicators, threat actors, incidents, and other STIX constructs), and serialize them back to XML. The library depends on lxml for XML handling, cybox for cyber observable data, mixbox for common utilities, and python-dateutil for timestamp handling.
The package is production-stable but abandoned—its last release was November 2020 and the repository received its final commit in November 2021. It remains suitable for parsing and generating existing STIX v1.2.0 content in established workflows, but it will not evolve to support newer STIX versions or adapt to future Python ecosystem changes. Use it only if your threat intelligence pipeline is locked to STIX v1.2.0 and you have no migration path to newer standards.
Use it for
- Parse STIX v1.2.0 XML threat intelligence feeds from external sources into Python objects for analysis.
- Programmatically construct STIX packages describing campaigns, threat actors, and indicators for export to legacy systems.
- Convert threat data between STIX and other formats by leveraging the library's object model as an intermediate representation.
- Integrate STIX threat intelligence into legacy security tools or workflows that depend on v1.2.0 compatibility.
- Extract and manipulate individual STIX constructs (indicators, exploit targets, TTPs) from larger documents.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but only for legacy STIX v1.2.0 workflows.
The package is stable, has low install friction, carries no license restrictions, and has no known vulnerabilities. However, it is abandoned and will not receive updates. Install it if your threat intelligence pipeline is committed to STIX v1.2.0 and you cannot migrate to a maintained alternative. Do not install it for new projects—evaluate whether STIX 2.0+ or a maintained STIX library is available for your use case.
Install
stix on PyPI
Before you install
Low install friction with a pure-wheel distribution. Maintenance status is abandoned—last commit was 2021-11-24, over two years ago. The package remains functional for its stated purpose but will not receive updates for new Python versions, security patches, or bug fixes.
lxml requires libxml2-dev and libxslt-dev system libraries on Linux; pre-built wheels are available for Windows and macOS but may require manual installation on older systems.
License in practice
BSD license is permissive and poses no restrictions on use, modification, or distribution. You may use this package freely in commercial or private projects without license compliance burden.
Quickstart
pip install stix
import stix
from stix.core import STIXPackage
package = STIXPackage()
Verify before relying
- Whether the package works reliably with Python versions beyond 3.8 (classifiers list 3.8 as the latest tested version).
- Current compatibility with modern versions of its runtime dependencies (mixbox, cybox, python-dateutil, lxml).
- Whether STIX v1.2.0 remains the active standard or if newer STIX versions require a different library.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesmixboxcyboxpython-dateutillxml |
| Maintenance | Abandoned 2,097 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 121,365 / month, #11,984 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8 |
Evidence: stix-1.2.0.11-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “stix parsing and generation”
- stixParses, manipulates, and generates STIX v1.2.0 (Structured Threat…
- stix2Serializes and deserializes STIX 2 JSON content, providing Python…
- stix2-validatorValidates STIX 2.x JSON documents against the STIX 2.1 specification,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Security packages
Provides Python bindings to the FreeDesktop.org Secret Service API for securely storing and retrieving passwords and secrets through GNOME Keyring, KWallet, or KeePassXC.
MSAL for Python handles OAuth2 and OpenID Connect authentication with Microsoft identity services, managing token acquisition, caching, and refresh for applications integrating with Microsoft Entra ID, Microsoft Accounts, and Azure AD B2C.
joserfc implements JOSE standards (JWS, JWE, JWK, JWT, and related RFCs) for signing, encrypting, and managing JSON-based cryptographic tokens in Python.
Authlib provides a complete implementation of OAuth 1.0, OAuth 2.0, and OpenID Connect 1.0 for building both authentication clients and servers, with built-in support for JWS, JWK, JWA, and JWT standards.
Provides low-level CFFI bindings to the official Argon2 password hashing algorithm for use by libraries and applications that need direct access to Argon2 without higher-level abstractions.
ADAL for Python authenticates applications with Azure Active Directory to obtain tokens for accessing Azure AD-protected resources.
Install only if maintaining existing code that already depends on it, and plan a migration.
See also cybox · maec · mixbox · stix2 · stix2-patterns · OTXv2 · stix2-validator · taxii2-client · pycti · xmlsec