Skip to content

mounikabodapati/ThreatExchange

 
 

Repository files navigation

Facebook ThreatExchange

ThreatExchange is a set of RESTful APIs on the Facebook Platform for querying, publishing, and sharing security threat information. It's a lightweight way for exchanging details on malware, phishing pages, and other threats with either specific members of the community or the ThreatExchange community at large.

This repository contains example code for using the API.

Documentation

Full details on the ThreatExchange API and UI, data formats, and best practices are available in the ThreatExchange docs.

New tools for a new generation (2019 and beyond)

In addition to the venerable pytx (see below), we now offer tag-based, descriptor-focused reference designs in Python, Ruby, and Java.

The common context to all these is that since early 2018 ThreatExchange has moved beyond malware/phishing into cross-company integrity-signal sharing. This newer tooling largely overlaps the old (such as pytx), but with an added focus on more interactive tooling for a broader, more diverse userbase; a strong threat-descriptor focus (vs malware analyses); and enhanced support for cross-company feedback mechanisms.

Example code

This project offers example code in Java, Python, PHP, and Ruby. There's also a reference client-side user interface to ThreatExchange, written in JavaScript. (A far richer featureset is available in the hosted TE UI.)

Get all available data

For tag-driven workloads, supporting either bulk download or incremental updates, our currently recommended best practice is a Java reference design.

We also offer scripts in the pytx/scripts folder. For example, to get threat descriptors uploaded to ThreatExchange run the following command:

$ python pytx/scripts/get_data.py -o threat_descriptor

Blog

You can get details on the ThreatExchange platform, new features and other updates via our blog at https://www.facebook.com/threatexchange.

Getting Access

To request access to ThreatExchange, please submit an application via https://developers.facebook.com/products/threat-exchange/.

License

Please see ./LICENSE.

About

Share threat information with vetted partners

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 80.2%
  • Python 6.7%
  • Java 5.7%
  • Ruby 1.7%
  • JavaScript 1.6%
  • PHP 1.2%
  • Other 2.9%