# Harry24k/adversarial-attacks-pytorch

PyTorch implementation of adversarial attacks [torchattacks]

Repository: https://github.com/Harry24k/adversarial-attacks-pytorch
Canonical: https://ross.abutalabs.com/products/adversarial-attacks-pytorch
Homepage: https://adversarial-attacks-pytorch.readthedocs.io/en/latest/index.html
Language: Python
License: MIT
License Family: permissive
Topics: deep-learning, pytorch, adversarial-attacks
Last push: 2024-06-29T01:24:32+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2694, "days_push": 796, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2177, forks 368 (observed 2026-08-28T04:06:22.238570+00:00)

## What it is
Torchattacks is a PyTorch library providing implementations of adversarial attacks to generate adversarial examples against deep learning models. It offers a PyTorch-like interface so users can easily apply attacks like PGD to their models.

## Use cases
- generate adversarial examples for a pytorch model
- evaluate model robustness against adversarial attacks
- run PGD attacks on image classifiers
- benchmark adversarial attack methods in research
- create adversarial training data
- test deep learning model security

## When to choose
- you use PyTorch and need ready-made adversarial attack implementations
- you are researching adversarial robustness and want a citable, widely used library
- you want a simple PyTorch-like API to generate adversarial examples

## When to avoid
- you need adversarial defenses or training frameworks rather than attacks
- you work in TensorFlow or JAX instead of PyTorch
- you need attacks for non-image modalities not covered by the library

## Facets
- artifact type: library
- maturity: active
- function: machine-learning, deep-learning, security
- domain: machine-learning, deep-learning, security
- platform: python
- tags: adversarial-attacks, adversarial-examples, pytorch, robustness, torchattacks

## Member repositories
- Harry24k/adversarial-attacks-pytorch (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:22.238570+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-30T02:48:49.968421+00:00, confidence not recorded.
  - readme: https://github.com/Harry24k/adversarial-attacks-pytorch (fetched 2026-08-28T04:06:22.238570+00:00, sha 190526a482a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
