def process_malware(children: Dict[str, Any], parent: Dict[str, Any]) -> None:
    """
    Process a malware item and enrich it with parent item's data.

    Parameters:
    children (Dict[str, Any]): A dictionary representing a child object.
    parent (Dict[str, Any]): A dictionary representing the parent object.

    Returns:
    None
    """
    pattern = children.get("pattern")
    if isinstance(pattern, str):
        try:
            matches = STIX_PARSER.findall(pattern)
        except TypeError as err:
            logging.error("Error on pattern: %s and %s", pattern, err)
            return
        for match in matches:
            stix_type, stix_property, value = match
            indicator_type = (
                f"{stix_type}:{stix_property}" if stix_type == "file" else stix_type
            )
            if indicator_type and IOC_MAPPING.get(indicator_type):
                mapping_method = IndicatorTypes.get(indicator_type)

                if mapping_method is None:
                    raise ValueError(f"Invalid indicator type: {indicator_type}")

                # Ensure indicator_type exists in IOC_MAPPING before use
                ioc_mapping_value = IOC_MAPPING.get(indicator_type)

                if ioc_mapping_value is None:
                    raise ValueError(
                        f"Missing IOC mapping for indicator type: {indicator_type}"
                    )

                # Call the mapping function safely
                ioc = mapping_method(ioc_mapping_value, value)
                children.update(
                    {
                        "malware_details": parent,
                        "indicator_type": ioc["indicator_type"],
                        "indicator_value": ioc["indicator_value"],
                    }
                )
                parent["name"] = children["name"]
    else:
        logging.error(
            "Unexpected pattern type: %s in children: %s", type(pattern), children
        )

    Process a malware item and enrich it with parent item's data.

    Parameters:
    children (Dict[str, Any]): A dictionary representing a child object.
    parent (Dict[str, Any]): A dictionary representing the parent object.

    Returns:
    None
    
Solutions/CognyteLuminar/Data Connectors/CognyteLuminar/main.py