Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[py-tx] Implement Tech Against Terrorism Hash List API #1610

Open
Dcallies opened this issue Aug 6, 2024 · 0 comments
Open

[py-tx] Implement Tech Against Terrorism Hash List API #1610

Dcallies opened this issue Aug 6, 2024 · 0 comments
Labels
help wanted python-threatexchange Items related to the threatexchange python tool / library

Comments

@Dcallies
Copy link
Contributor

Dcallies commented Aug 6, 2024

Looks like TAT add a hash exchange API, we should add a reference client, here's the documentation: https://www.terrorismanalytics.org/docs/hash-list-v1

A good 1:1 comparison for how to do this is from StopNCII:

If you want to give a crack at it, you can follow the same approach we did for StopNCII

  1. Add a reference version for a client for the TAT hash api. Here’s StopNCII’s: https://github.com/facebook/ThreatExchange/blob/main/python-threatexchange/threatexchange/exchanges/clients/stopncii/api.py
    1. We should add tests
  2. Add an “Exchange” interface implementation, which tells the library how to download a copy of all hashes. Here’s StopNCII’s: https://github.com/facebook/ThreatExchange/blob/main/python-threatexchange/threatexchange/exchanges/impl/stop_ncii_api.py
    1. You can test to see it works correctly using the tx commandline interface to download and then match signals
  3. Potentially add implementations for "SHA256", "SHA512", cryptographic types, and a generic "File" content type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted python-threatexchange Items related to the threatexchange python tool / library
Projects
None yet
Development

No branches or pull requests

2 participants