(category)
Converts a STIX Incident Category or Package Intent to a CRITs Event Type.

    :param category: A STIX Incident Category or Package Intent
    :type category: str
    :returns: CRITs Event Type (str)
Converts a STIX Incident Category or Package Intent to a CRITs Event Type.
Converts a STIX Incident Category or Package Intent to a CRITs Event Type .
def get_crits_event_type(category):
    """
    Converts a STIX Incident Category or Package Intent to a CRITs Event Type.

    :param category: A STIX Incident Category or Package Intent
    :type category: str
    :returns: CRITs Event Type (str)
    """
    if category == IncidentCategory.TERM_DENIAL_OF_SERVICE:
        return EventTypes.DENIAL_OF_SERVICE
    elif category == IncidentCategory.TERM_EXERCISEORNETWORK_DEFENSE_TESTING:
        return EventTypes.UNKNOWN
    elif category == IncidentCategory.TERM_IMPROPER_USAGE:
        return EventTypes.EXPLOITATION
    elif category == IncidentCategory.TERM_INVESTIGATION:
        return EventTypes.INTEL_SHARING
    elif category == IncidentCategory.TERM_MALICIOUS_CODE:
        return EventTypes.MALICIOUS_CODE
    elif category == IncidentCategory.TERM_SCANSORPROBESORATTEMPTED_ACCESS:
        return EventTypes.SCANNING
    elif category == IncidentCategory.TERM_UNAUTHORIZED_ACCESS:
        return EventTypes.UNAUTHORIZED_INFORMATION_ACCESS

    elif category == PackageIntent.TERM_EXPLOIT_CHARACTERIZATION:
        return EventTypes.EXPLOITATION
    elif category == PackageIntent.TERM_INDICATORS_MALWARE_ARTIFACTS:
        return EventTypes.MALICIOUS_CODE
    elif category == PackageIntent.TERM_INDICATORS_PHISHING:
        return EventTypes.PHISHING
    elif category == PackageIntent.TERM_MALWARE_CHARACTERIZATION:
        return EventTypes.MALICIOUS_CODE
    elif category == PackageIntent.TERM_MALWARE_SAMPLES:
        return EventTypes.MALICIOUS_CODE
    elif category in PackageIntent.values():
        return EventTypes.INTEL_SHARING
def get_crits_event_type ( category ) : if category == IncidentCategory . TERM_DENIAL_OF_SERVICE : return EventTypes . DENIAL_OF_SERVICE elif category == IncidentCategory . TERM_EXERCISEORNETWORK_DEFENSE_TESTING : return EventTypes . UNKNOWN elif category == IncidentCategory . TERM_IMPROPER_USAGE : return EventTypes . EXPLOITATION elif category == IncidentCategory . TERM_INVESTIGATION : return EventTypes . INTEL_SHARING elif category == IncidentCategory . TERM_MALICIOUS_CODE : return EventTypes . MALICIOUS_CODE elif category == IncidentCategory . TERM_SCANSORPROBESORATTEMPTED_ACCESS : return EventTypes . SCANNING elif category == IncidentCategory . TERM_UNAUTHORIZED_ACCESS : return EventTypes . UNAUTHORIZED_INFORMATION_ACCESS elif category == PackageIntent . TERM_EXPLOIT_CHARACTERIZATION : return EventTypes . EXPLOITATION elif category == PackageIntent . TERM_INDICATORS_MALWARE_ARTIFACTS : return EventTypes . MALICIOUS_CODE elif category == PackageIntent . TERM_INDICATORS_PHISHING : return EventTypes . PHISHING elif category == PackageIntent . TERM_MALWARE_CHARACTERIZATION : return EventTypes . MALICIOUS_CODE elif category == PackageIntent . TERM_MALWARE_SAMPLES : return EventTypes . MALICIOUS_CODE elif category in PackageIntent . values ( ) : return EventTypes . INTEL_SHARING