Registry / serialization / cybox
library2.1.0.21pypypiunverified

A Python library for parsing and generating CybOX (Cyber Observable eXpression) content. Version 2.1.0.21 is the latest. The library is in maintenance mode with infrequent releases.

pip install cybox
INSTALL
IMPORT
SIG · CYBOX
C
cybox
serializationpythonv2.1.0.21
Install
4.1s avg
Import
—
Disk
41MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.1.0.21 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 42.2MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 4.1s · import 0.000s · 43MB
41MB installed
● package 41MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CybOX
✓ from cybox import CybOX
✗ from cybox.core import CybOX

Creates a CybOX document, adds a File object, and prints XML.

from cybox.core import CybOX from cybox.objects import build_object cybox = CybOX() obj = build_object({'type': 'File', 'name': 'test.txt'}) cybox.add(obj) print(cybox.to_xml())
Debug
Known issues
deprecatedcybox is in maintenance mode; prefer the STIX 2 Python library for new projects.
fix
Use stix2 library instead (pip install stix2).
affects: all
gotchaImport paths changed between versions. Older code may use 'cybox.common' but now objects are in 'cybox.objects'.
fix
Update imports to match current module structure, e.g., from cybox.objects import build_object.
affects: <2.0
Upgrade
Version history
2.1.0.21latest on PyPI · released Mar 6, 2020
Audit
Dependencies
lxmlrequiredXML parsing and generation
Agent activity
25 hits · last 30 days
node
24
OpenAI (training)
1
Resources
cybox — pip install cybox · libregistry