ThreatExchange supports creating connections (also known as edges or relations) between ThreatIndicator objects to express relationships. Examples of when this can be useful are for describing URL redirect chains or domain-to-IP-address relationships.
When you connect one descriptor to another, you must own one or the other.
testing-relation-editing
. The results are saved as in the following example.
Just as in the Use the UI topic, you can assume that multiple descriptors are related to another one.
These are optional columns you can use to bulk-relate (see also Submit Data:
td_related_ids_for_upload
column.td_related_triples_for_upload
column. Provide the owner-app ID, indicator type, and indicator text, which will uniquely identify the linked-to descriptors.
td_description Testing bulk upload
td_status NON_MALICIOUS
td_confidence 100
td_severity INFO
td_share_level AMBER
td_indicator_type HASH_MD5
td_raw_indicator e8b19da37825a3056e84c522f05eb000
td_visibility HAS_WHITELIST
td_subjective_tags testing
td_whitelist_apps 494491891138576:Media Hash Sharing RF Test
td_privacy_groups
td_review_status REVIEWED_MANUALLY
td_related_ids_for_upload 2515798535123892,2376386079125415
td_related_triples_for_upload
td_description Testing bulk upload
td_status NON_MALICIOUS
td_confidence 100
td_severity INFO
td_share_level AMBER
td_indicator_type HASH_MD5
td_raw_indicator e8b19da37825a3056e84c522f05eb001
td_visibility HAS_WHITELIST
td_subjective_tags pwny;testing
td_whitelist_apps 494491891138576:Media Hash Sharing RF Test
td_privacy_groups
td_review_status REVIEWED_MANUALLY
td_related_ids_for_upload
td_related_triples_for_upload 494491891138576:HASH_MD5:e8b19da37825a3056e84c522f05eb000,494491891138576:HASH_MD5:e8b19da37825a3056e84c522f05eb002
[
{
"td_description": "Testing bulk upload/relate",
"td_status": "NON_MALICIOUS",
"td_confidence": 100,
"td_severity": "INFO",
"td_share_level": "AMBER",
"td_indicator_type": "HASH_MD5",
"td_raw_indicator": "e8b19da37825a3056e84c522f05eb000",
"td_visibility": "HAS_WHITELIST",
"td_subjective_tags": ["testing"],
"td_whitelist_apps": [
{
"id": "494491891138576",
"name": "Media Hash Sharing RF Test"
}
],
"td_privacy_groups": [],
"td_review_status": "REVIEWED_MANUALLY",
"td_related_ids_for_upload": ["2515798535123892","2376386079125415"]
},
{
"td_description": "Testing bulk upload/relate",
"td_status": "NON_MALICIOUS",
"td_confidence": 100,
"td_severity": "INFO",
"td_share_level": "AMBER",
"td_indicator_type": "HASH_MD5",
"td_raw_indicator": "e8b19da37825a3056e84c522f05eb001",
"td_visibility": "HAS_WHITELIST",
"td_subjective_tags": ["pwny", "testing"],
"td_whitelist_apps": [
{
"id": "494491891138576",
"name": "Media Hash Sharing RF Test"
}
],
"td_privacy_groups": [],
"td_review_status": "REVIEWED_MANUALLY",
"td_related_triples_for_upload": [
{
"owner_app_id": "494491891138576",
"td_indicator_type": "HASH_MD5",
"td_raw_indicator": "e8b19da37825a3056e84c522f05eb000"
},
{
"owner_app_id": "494491891138576",
"td_indicator_type": "HASH_MD5",
"td_raw_indicator": "e8b19da37825a3056e84c522f05eb002"
}
]
}
]
Using the API, you can create connections via an HTTP POST
request to the /related
URI for a specific object:
https://graph.facebook.com/v2.8/<object_id>/related
In this example, create a connection between the facebook.com
domain object (788497497903212
) and the 173.252.120.6 IP address object (1061383593887032
), which facebook.com
can resolve to via DNS.
https://graph.facebook.com/v2.8/788497497903212/related POST DATA: related_id=1061383593887032 &access_token=<access_token>
Data returned:
{ "success": true }