cleverhans-lab/cleverhans
An adversarial example library for constructing attacks, building defenses, and benchmarking both observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3640
- days_rel: n/a
- days_push: 875
- n_releases_24m: 0
Adoption not part of the score
6450 stars · 1395 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
CleverHans is a Python library for benchmarking machine learning systems' vulnerability to adversarial examples, providing reference implementations of attacks and defenses. It supports JAX, PyTorch, and TensorFlow 2, with tutorials demonstrating its features.
Use cases
- benchmark my model's robustness to adversarial examples
- generate adversarial attacks against a neural network
- test defenses against adversarial perturbations
- implement FGSM or PGD attacks in PyTorch
- evaluate ML model security before deployment
- compare attack success rates across frameworks
When to choose
- you need reference implementations of well-known adversarial attacks (FGSM, PGD, etc.)
- you want to benchmark model robustness across JAX, PyTorch, or TF2
- you are researching adversarial ML and want a citable, standard baseline library
When to avoid
- you need production-grade defense mechanisms rather than research reference code
- you require active feature development or frequent updates
- you need adversarial robustness tooling outside the supported frameworks (e.g., scikit-learn models)
Facets
library · maturity maintenance
machine-learning security benchmarking testing machine-learning security deep-learning artificial-intelligence python adversarial-examples adversarial-attacks adversarial-defenses robustness pytorch tensorflow jax model-evaluation
2 sources
- readme: https://github.com/cleverhans-lab/cleverhans · fetched 2026-08-28 · 4873aa345c92
- registry_pypi: https://pypi.org/pypi/cleverhans/json · fetched 2026-08-29 · 2a745327c54f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cleverhans-lab/cleverhans | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="cleverhans-lab/cleverhans")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem