()
return all_data_srcs
returns all data sources in Enterprise ATT&CK
returns all data sources in Enterprise ATT&CK
returns all data sources in Enterprise ATT&CK
def data_sources():
    """returns all data sources in Enterprise ATT&CK"""

    all_data_srcs = []

    # Get all techniques in Enterprise ATT&CK
    techniques = tc_src.query([Filter("type", "=", "attack-pattern")])

    # Get all data sources in Enterprise ATT&CK
    for tech in techniques:
        if 'x_mitre_data_sources' in tech:
            all_data_srcs += [
                data_src for data_src in tech.x_mitre_data_sources
                if data_src not in all_data_srcs
            ]
    
    return all_data_srcs
def data_sources ( ) : all_data_srcs = [ ] # Get all techniques in Enterprise ATT&CK techniques = tc_src . query ( [ Filter ( "type" , "=" , "attack-pattern" ) ] ) # Get all data sources in Enterprise ATT&CK for tech in techniques : if 'x_mitre_data_sources' in tech : all_data_srcs += [ data_src for data_src in tech . x_mitre_data_sources if data_src not in all_data_srcs ] return all_data_srcs