Registry / data / maec
library4.1.0.17pypypiunverified

An API for parsing and creating MAEC (Malware Attribute Enumeration and Characterization) content. Latest version 4.1.0.17. Release cadence is irregular, tied to MAEC updates.

pip install maec
INSTALL
IMPORT
SIG · MAEC
M
maec
datapythonv4.1.0.17
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

MAEC
import maec
from maec import MAEC

Create a minimal MAEC document with a package.

from maec import MAEC from maec.package import Package maec = MAEC() pkg = Package() maec.add_package(pkg) print(maec.to_xml())
Debug
Known issues
breakingmaec 4.x uses MAEC v4.1 schema; incompatible with MAEC v3.x data. Cannot load older MAEC documents without conversion.
fix
Convert MAEC 3.x documents to 4.1 format using provided migration scripts or manually update XML.
affects: >=4.0.0
deprecatedThe 'maec.bindings' module is deprecated. Direct binding manipulation is discouraged; use the high-level API instead.
fix
Replace binding code with API calls: e.g., use Package() instead of binding.PackageType().
affects: >=4.1.0
gotchaMissing CybOX dependency: maec requires cybox library. Installation via pip does not automatically install cybox on all systems.
fix
Run: pip install cybox
affects: all
gotchaLXML version compatibility: maec 4.1.0.17 may fail with lxml >= 5.0 due to API changes. Pin lxml<5.0 if errors occur.
fix
pip install 'lxml<5.0'
affects: 4.1.0.17
Upgrade
Version history
4.1.0.17latest on PyPI · released Nov 16, 2020
Audit
Dependencies
cyboxrequiredMAEC depends on CybOX for observables
lxmlrequiredXML parsing/binding support
python-dateutiloptionalDate handling for timestamps
mixboxoptionalCommon utilities and ID generation
Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
maec — pip install maec · libregistry