#4747th of 58 in Security

textattack

Python framework for adversarial attacks, augmentation and training of NLP models

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Releases and problems feed (RSS)

Stars
3.5k
License
MIT
Last commit
Aug 2026
Last release
Aug 2026
Language
Python
Stars, last 29 weeks+86
2 May 2026: 3,397 stars9 May 2026: 3,400 stars16 May 2026: 3,404 stars23 May 2026: 3,409 stars30 May 2026: 3,413 stars6 Jun 2026: 3,415 stars13 Jun 2026: 3,419 stars20 Jun 2026: 3,422 stars27 Jun 2026: 3,424 stars4 Jul 2026: 3,426 stars11 Jul 2026: 3,432 stars18 Jul 2026: 3,436 stars25 Jul 2026: 3,442 stars1 Aug 2026: 3,449 stars8 Aug 2026: 3,452 stars15 Aug 2026: 3,459 stars22 Aug 2026: 3,461 stars29 Aug 2026: 3,467 stars5 Sept 2026: 3,468 stars12 Sept 2026: 3,469 stars19 Sept 2026: 3,469 stars26 Sept 2026: 3,469 stars3 Oct 2026: 3,474 stars10 Oct 2026: 3,474 stars17 Oct 2026: 3,476 stars24 Oct 2026: 3,478 stars31 Oct 2026: 3,479 stars7 Nov 2026: 3,480 stars14 Nov 2026: 3,482 stars21 Nov 2026: 3,483 stars

3,397 on 2 May 20263,483 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

TextAttack is a Python library and `textattack` CLI that runs published adversarial attack recipes (TextFooler, BAE, DeepWordBug, HotFlip, PWWS and others) against NLP classification and sequence-to-sequence models. Attacks are built from goal functions, constraints, transformations and search methods. It also provides text augmentation recipes and single-command model training.

Who it is for: NLP researchers testing model robustness and building adversarial attacks

Strengths

  • About 20 attack recipes from papers, runnable with one `textattack attack` command
  • Attacks are composable: swap transformation, constraints, goal function and search method
  • Augmentation recipes (wordnet, embedding, charswap, eda, back_trans) with a CSV CLI
  • Multi-GPU attacks via --parallel; GPU is optional

Weaknesses

  • Targets classification and seq2seq models; no LLM jailbreak or prompt-injection tooling listed
  • Many recipes need downloaded embeddings, sentence encoders and masked language models
  • seq2sick is implemented black-box, unlike the white-box attack in its paper
  • README gives Python 3.6+ as the baseline, which is dated

What it needs

  • GPU optional
  • Needs Python 3.6+, pip
  • Models: BERT, DistilBERT, LSTM, T5, Keras models

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Security

See all 58
Also in Security
RankProjectScore
#45pwnagotchiWiFi handshake-capturing agent that tunes its attacks with reinforcement learning9.3k starscustom license49 out of 100
#46deepteamRed teaming framework that attacks LLM apps and scores vulnerabilities3.1k starsApache-2.049 out of 100
#48aibeatSecurity evaluation of LLMs, RAG apps and agents, with trace evidence1.4k starsno license47 out of 100
#49pentest-ai-agentsClaude Code subagents for pentesting, from recon to reporting2.5k starsMIT46 out of 100
#50superagentSDK that blocks prompt injections and redacts PII in AI agent apps6.9k starsMIT44 out of 100