def check_cofense_indicator(self, indicator):
        """To check if the sentinel indicator is from cofense intelligence."""
        try:
            __method_name = inspect.currentframe().f_code.co_name
            source = indicator.get("properties", {}).get("source", None)
            if (
                source is not None
                and source.strip() != ""
                and source.startswith(consts.COFENSE_SOURCE_PREFIX)
            ):
                return True
            else:
                applogger.debug(
                    "{}(method={}) : {} : {} is not cofense indicator from Sentinel TI.".format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        consts.SENTINEL_TO_DEFENDER,
                        indicator.get("properties", {}).get("displayName", None),
                    )
                )
                return False
        except CofenseIntelligenceException as error:
            applogger.error(
                "{}(method={}) : {} : Error occurred while checking cofense indicator from Sentinel TI. "
                "Sentinel indicator name : {}. Error : {}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.SENTINEL_TO_DEFENDER,
                    indicator.get("properties", {}).get("displayName", None),
                    error,
                )
            )
            raise CofenseIntelligenceException()
To check if the sentinel indicator is from cofense intelligence.
Solutions/CofenseIntelligence/Data Connectors/CofenseIntelligenceDataConnector/SentinelToDefender/sentinel.py