# facebook/ThreatExchange

Trust & Safety tools for working together to fight digital harms.

Repository: https://github.com/facebook/ThreatExchange
Canonical: https://ross.abutalabs.com/products/threatexchange
Homepage: https://facebook.github.io/ThreatExchange/
Language: C++
License: NOASSERTION
License Family: other
Topics: hashing, image, image-hashing, image-similarity, ncmec, perceptual-hashing, threatexchange, video, video-hashing, stopncii, video-similarity
Last push: 2026-08-22T16:18:19+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 4220, "days_push": 11, "days_rel": 90, "gap_med": 17.0, "n_releases_24m": 5}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1373, forks 354 (observed 2026-08-28T04:04:32.824782+00:00)

## What it is
A collection of Trust & Safety tools from Meta for fighting digital harms, including perceptual hashing algorithms (PDQ for images, TMK and vPDQ for video) and a Python library/CLI for content scanning and signal exchange. It also includes the Hasher-Matcher-Actioner, a deployable content moderation platform for AWS, and reference examples for Meta's ThreatExchange API.

## Use cases
- detect reposts of known harmful images
- match videos against a database of known content hashes
- share threat signals between platforms
- scan uploaded media for CSAM or non-consensual imagery
- deploy a content moderation hash-matching service
- query and publish threat intelligence via Meta's ThreatExchange API

## When to choose
- you need perceptual hashing of images or videos for content moderation
- you want to participate in hash-sharing programs like StopNCII or NCMEC
- you need a ready-to-deploy hash-and-match platform on AWS
- you want reference implementations for the ThreatExchange API

## When to avoid
- you need general-purpose cryptographic hashing or malware detection
- you want a turnkey moderation solution without operating your own infrastructure
- your use case is unrelated to media hash matching or threat signal exchange

## Facets
- artifact type: library
- maturity: active
- function: image-processing, video-processing, security, sdk, cli, http-client
- domain: security, developer-tools, media
- platform: python, cpp, cloud, cross-platform
- tags: perceptual-hashing, content-moderation, threat-intelligence, pdq, video-hashing, hash-exchange, stopncii, ncmec, trust-and-safety, docker

## Member repositories
- facebook/ThreatExchange (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:32.824782+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:41.944190+00:00, confidence not recorded.
  - readme: https://github.com/facebook/ThreatExchange (fetched 2026-08-28T04:04:32.824782+00:00, sha be447456f421)
  - homepage: https://facebook.github.io/ThreatExchange/ (fetched 2026-08-29T11:57:06.341291+00:00, sha f3925acbf5a0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
