{"id":23059,"library":"cybox","title":"cybox","description":"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.","status":"maintenance","version":"2.1.0.21","language":"python","source_language":"en","source_url":"https://github.com/CybOXProject/python-cybox","tags":["cybox","stix","observables","cti","cybersecurity"],"install":[{"cmd":"pip install cybox","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"XML parsing and generation","package":"lxml","optional":false}],"imports":[{"wrong":"from cybox.core import CybOX","symbol":"CybOX","correct":"from cybox import CybOX"}],"quickstart":{"code":"from cybox.core import CybOX\nfrom cybox.objects import build_object\n\ncybox = CybOX()\nobj = build_object({'type': 'File', 'name': 'test.txt'})\ncybox.add(obj)\nprint(cybox.to_xml())","lang":"python","description":"Creates a CybOX document, adds a File object, and prints XML."},"warnings":[{"fix":"Use stix2 library instead (pip install stix2).","message":"cybox is in maintenance mode; prefer the STIX 2 Python library for new projects.","severity":"deprecated","affected_versions":"all"},{"fix":"Update imports to match current module structure, e.g., from cybox.objects import build_object.","message":"Import paths changed between versions. Older code may use 'cybox.common' but now objects are in 'cybox.objects'.","severity":"gotcha","affected_versions":"<2.0"}],"env_vars":null,"search_vec":"'2.1.0.21':15 'content':13 'cti':31 'cyber':10 'cybersecur':32 'cybox':1,9,28 'express':12 'generat':8 'infrequ':26 'latest':18 'librari':4,20 'mainten':23 'mode':24 'observ':11,30 'pars':6 'python':3 'releas':27 'stix':29 'version':14","created_at":"2026-05-01T06:02:11.256966+00:00","updated_at":"2026-05-01T06:02:11.256966+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'CybOX' from 'cybox' (/tmp/tmpar9bz83r/venv/lib/python3.12/site-packages/cybox/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.1.0.21","cli_name":"","cli_version":null,"type":"library","homepage":"https://cyboxproject.github.io/","github":"https://github.com/CybOXProject/python-cybox","docs":"https://cybox.readthedocs.io/","changelog":null,"pypi":"https://pypi.org/project/cybox/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","auth-security"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}