maec_to_stix Module¶
- maec_to_stix.extract_indicators(package, config_directory=None)¶
Extract STIX Indicators from a MAEC Package file.
Parameters: - package – The MAEC Package file or file-like object to wrap.
- config_directory – (optional) The path to the directory housing the indicator extraction configuration files.
Returns: If indicators were extracted, a stix.STIXPackage instance with the extracted STIX Indicators. Otherwise, if no indicators were extracted, None.
- maec_to_stix.wrap_maec_package(package)¶
Wrap a MAEC Package file in a STIX Package/TTP.
Parameters: package – The MAEC Package file or file-like object to wrap. Returns: A stix.STIXPackage instance with the wrapped MAEC data.