A fast + lightweight implementation of the GCG algorithm in PyTorch
☆358May 13, 2025Updated last year
Alternatives and similar repositories for nanoGCG
Users that are interested in nanoGCG are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- [ICLR 2024] The official implementation of our ICLR2024 paper "AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language M…☆470Jan 22, 2025Updated last year
- Universal and Transferable Attacks on Aligned Language Models☆4,869Aug 2, 2024Updated 2 years ago
- Improving Alignment and Robustness with Circuit Breakers☆271Sep 24, 2024Updated 2 years ago
- Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks [ICLR 2025]☆400Jan 23, 2025Updated last year
- Improved techniques for optimization-based jailbreaking on large language models (ICLR2025)☆148Apr 7, 2025Updated last year
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal☆1,128Aug 16, 2024Updated 2 years ago
- AmpleGCG: Learning a Universal and Transferable Generator of Adversarial Attacks on Both Open and Closed LLM☆89Nov 3, 2024Updated 2 years ago
- JailbreakBench: An Open Robustness Benchmark for Jailbreaking Language Models [NeurIPS 2024 Datasets and Benchmarks Track]☆700Apr 4, 2025Updated last year
- ☆820Jul 2, 2025Updated last year
- Official implementation of AdvPrompter https//arxiv.org/abs/2404.16873☆183May 6, 2024Updated 2 years ago
- [ICML 2025] An official source code for paper "FlipAttack: Jailbreak LLMs via Flipping".☆182Aug 11, 2026Updated 3 months ago
- ☆11Oct 13, 2025Updated last year
- [NeurIPS 2024] Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Sampling☆35Nov 8, 2024Updated 2 years ago
- Official Repository for The Paper: Safety Alignment Should Be Made More Than Just a Few Tokens Deep☆194Apr 23, 2025Updated last year
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs. Empirical tricks for LLM Jailbreaking. (NeurIPS 2024)☆167Nov 30, 2024Updated last year
- An easy-to-use Python framework to generate adversarial jailbreak prompts.☆948Sep 1, 2026Updated 2 months ago
- ☆25Jan 17, 2025Updated last year
- Official Repository for ACL 2024 Paper SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding☆152Jul 19, 2024Updated 2 years ago
- Code repo of our paper Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysis (https://arxiv.org/abs/2406.10794…☆24Jul 26, 2024Updated 2 years ago
- ☆18Jul 3, 2025Updated last year
- TAP: An automated jailbreaking method for black-box LLMs☆255Dec 10, 2024Updated last year
- Code and results accompanying the paper "Refusal in Language Models Is Mediated by a Single Direction".☆492Jun 13, 2025Updated last year
- [USENIX Security'24] Official repository of "Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise a…☆120Oct 11, 2024Updated 2 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- PAL: Proxy-Guided Black-Box Attack on Large Language Models☆56Aug 17, 2024Updated 2 years ago
- The official repository for guided jailbreak benchmark☆34Aug 31, 2026Updated 2 months ago
- [ICLR 2025 Spotlight] The official implementation of our ICLR2025 paper "AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to…☆397Oct 8, 2025Updated last year
- [ICML 2024] COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllability☆175Dec 18, 2024Updated last year
- Repository for "StrongREJECT for Empty Jailbreaks" paper☆162Nov 3, 2024Updated 2 years ago
- ☆30Aug 12, 2026Updated 3 months ago
- Code and data to go with the Zhu et al. paper "An Objective for Nuanced LLM Jailbreaks"☆39Jul 2, 2026Updated 4 months ago
- ☆135Jul 29, 2026Updated 3 months ago
- TACL 2025: Investigating Adversarial Trigger Transfer in Large Language Models☆20Aug 17, 2025Updated last year
- Simple, predictable pricing with DigitalOcean hosting • AdAlways know what you'll pay with monthly caps and flat pricing. Enterprise-grade infrastructure trusted by 600k+ customers.
- ☆162Jul 7, 2025Updated last year
- Implementation of BEAST adversarial attack for language models (ICML 2024)☆89May 14, 2024Updated 2 years ago
- Independent robustness evaluation of Improving Alignment and Robustness with Short Circuiting☆18Apr 15, 2025Updated last year
- The official implementation of our pre-print paper "Automatic and Universal Prompt Injection Attacks against Large Language Models".☆75Oct 23, 2024Updated 2 years ago
- [TMLR 2025] Official implementation of AttnGCG: Enhancing Jailbreaking Attacks on LLMs with Attention Manipulation☆27Jun 17, 2025Updated last year
- Official repo for GPTFUZZER : Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts☆609Feb 27, 2026Updated 8 months ago
- ☆62Jun 5, 2024Updated 2 years ago
Are these results useful?