colander_data_converter.converters.misp.converter
- class colander_data_converter.converters.misp.converter.ColanderToMISPMapper[source]
Bases:
MISPMapper
Mapper class for converting Colander objects to MISP format.
Handles the conversion of various Colander entity types (threats, actors, events, artifacts, etc.) to their corresponding MISP object representations using predefined mapping configurations.
- convert_case(case, feed)[source]
- Return type:
Tuple[MISPEvent | None, List[Annotated[Actor | Artifact | DataFragment | Observable | DetectionRule | Device | Event | Threat, FieldInfo(annotation=NoneType, required=True, discriminator=’colander_internal_type’)]]]
- convert_colander_object(colander_object)[source]
Convert a Colander object to its corresponding MISP representation.
This method performs the core conversion logic by: 1. Looking up the appropriate mapping for the Colander object type 2. Creating the corresponding MISP object (Attribute or Object) 3. Mapping fields, literals, and attributes from Colander to MISP format
- Parameters:
colander_object (
EntityTypes
) – The Colander object to convert- Returns:
The converted MISP object, or None if no mapping exists
- Return type:
Optional[Union[AbstractMISP, TagStub]]