(type_)
Converts a CRITs Event Type to a STIX Incident Category.

    :param type_: The type of a CRITs event
    :type type_: str
    :returns: STIX Incident Category (str)
Converts a CRITs Event Type to a STIX Incident Category.
Converts a CRITs Event Type to a STIX Incident Category .
def get_incident_category(type_):
    """
    Converts a CRITs Event Type to a STIX Incident Category.

    :param type_: The type of a CRITs event
    :type type_: str
    :returns: STIX Incident Category (str)
    """
    #if type_ == EventTypes.APPLICATION_COMPROMISE:
    if type_ == EventTypes.DENIAL_OF_SERVICE:
        return IncidentCategory.TERM_DENIAL_OF_SERVICE
    elif type_ == EventTypes.DISTRIBUTED_DENIAL_OF_SERVICE:
        return IncidentCategory.TERM_DENIAL_OF_SERVICE
    #elif type_ == EventTypes.EXPLOITATION:
    #elif type_ == EventTypes.INTEL_SHARING:
    elif type_ == EventTypes.MALICIOUS_CODE:
        return IncidentCategory.TERM_MALICIOUS_CODE
    elif type_ == EventTypes.PHISHING:
        return IncidentCategory.TERM_SCANSORPROBESORATTEMPTED_ACCESS
    elif type_ == EventTypes.PRIVILEGED_ACCOUNT_COMPROMISE:
        return IncidentCategory.TERM_UNAUTHORIZED_ACCESS
    elif type_ == EventTypes.SCANNING:
        return IncidentCategory.TERM_SCANSORPROBESORATTEMPTED_ACCESS
    elif type_ == EventTypes.SENSOR_ALERT:
        return IncidentCategory.TERM_SCANSORPROBESORATTEMPTED_ACCESS
    elif type_ == EventTypes.SOCIAL_ENGINEERING:
        return IncidentCategory.TERM_SCANSORPROBESORATTEMPTED_ACCESS
    elif type_ == EventTypes.SNIFFING:
        return IncidentCategory.TERM_SCANSORPROBESORATTEMPTED_ACCESS
    #elif type_ == EventTypes.SPAM:
    #elif type_ == EventTypes.STRATEGIC_WEB_COMPROMISE:
    elif type_ == EventTypes.UNAUTHORIZED_INFORMATION_ACCESS:
        return IncidentCategory.TERM_UNAUTHORIZED_ACCESS
    #elif type_ == EventTypes.UNKNOWN:
    #elif type_ == EventTypes.WEBSITE_DEFACEMENT:
    else:
        return None
def get_incident_category ( type_ ) : #if type_ == EventTypes.APPLICATION_COMPROMISE: if type_ == EventTypes . DENIAL_OF_SERVICE : return IncidentCategory . TERM_DENIAL_OF_SERVICE elif type_ == EventTypes . DISTRIBUTED_DENIAL_OF_SERVICE : return IncidentCategory . TERM_DENIAL_OF_SERVICE #elif type_ == EventTypes.EXPLOITATION: #elif type_ == EventTypes.INTEL_SHARING: elif type_ == EventTypes . MALICIOUS_CODE : return IncidentCategory . TERM_MALICIOUS_CODE elif type_ == EventTypes . PHISHING : return IncidentCategory . TERM_SCANSORPROBESORATTEMPTED_ACCESS elif type_ == EventTypes . PRIVILEGED_ACCOUNT_COMPROMISE : return IncidentCategory . TERM_UNAUTHORIZED_ACCESS elif type_ == EventTypes . SCANNING : return IncidentCategory . TERM_SCANSORPROBESORATTEMPTED_ACCESS elif type_ == EventTypes . SENSOR_ALERT : return IncidentCategory . TERM_SCANSORPROBESORATTEMPTED_ACCESS elif type_ == EventTypes . SOCIAL_ENGINEERING : return IncidentCategory . TERM_SCANSORPROBESORATTEMPTED_ACCESS elif type_ == EventTypes . SNIFFING : return IncidentCategory . TERM_SCANSORPROBESORATTEMPTED_ACCESS #elif type_ == EventTypes.SPAM: #elif type_ == EventTypes.STRATEGIC_WEB_COMPROMISE: elif type_ == EventTypes . UNAUTHORIZED_INFORMATION_ACCESS : return IncidentCategory . TERM_UNAUTHORIZED_ACCESS #elif type_ == EventTypes.UNKNOWN: #elif type_ == EventTypes.WEBSITE_DEFACEMENT: else : return None