cleverhans
by cleverhans-lab
CleverHans is a Python library for benchmarking machine learning models against adversarial examples by providing implementations of attacks and defenses.
An adversarial example library for constructing attacks, building defenses, and benchmarking both
Primary Use Case
This tool is primarily used by researchers and developers in AI security to evaluate the robustness of machine learning models against adversarial attacks. It helps in constructing attacks, building defenses, and benchmarking models to identify vulnerabilities and improve security.
- Reference implementations of adversarial attacks against ML models
- Implementations of defense mechanisms against adversarial examples
- Support for three major ML frameworks: JAX, PyTorch, and TensorFlow 2
- Tutorial scripts demonstrating library features
- Continuous development with community contributions
- Benchmarking tools for model vulnerability assessment
- Modular directory structure separating attacks, defenses, and tutorials
Installation
- Ensure Python 3.6 and one of the supported ML libraries (JAX, PyTorch, or TensorFlow 2) are installed
- Install CleverHans via pip with `pip install cleverhans` for the latest stable release
- Alternatively, install the bleeding edge version using `pip install git+https://github.com/cleverhans-lab/cleverhans.git#egg=cleverhans`
- For development, fork the repository on GitHub and clone your fork locally
- Navigate to the cloned directory and install in editable mode with `pip install -e .`
Usage
>_ pip install cleverhansInstalls the latest stable release of CleverHans from PyPI
>_ pip install git+https://github.com/cleverhans-lab/cleverhans.git#egg=cleverhansInstalls the bleeding edge version of CleverHans directly from the GitHub repository
>_ git clone https://github.com/<your-org>/cleverhansClones your fork of the CleverHans repository for development
>_ pip install -e .Installs CleverHans in editable mode for local development and contribution
- Integrate CleverHans into CI/CD pipelines to continuously benchmark ML model robustness against adversarial attacks.
- Use the library to simulate adversarial attacks during purple team exercises to improve collaboration between red and blue teams.
- Leverage CleverHans for training AI/ML security teams on emerging adversarial techniques and defenses.
- Combine CleverHans with threat intelligence feeds to proactively identify and mitigate novel adversarial threats.
- Extend the library with custom attacks to model organization-specific ML threat scenarios and improve defense strategies.
Docs Take 2 Hours. AI Takes 10 Seconds.
Ask anything about cleverhans. Installation? Config? Troubleshooting? Get answers trained on real docs and GitHub issues—not generic ChatGPT fluff.
This tool hasn't been indexed yet. Request indexing to enable AI chat.
Admin will review your request within 24 hours
Related Tools
CL4R1T4S
elder-plinius/CL4R1T4S
LEAKED SYSTEM PROMPTS FOR CHATGPT, GEMINI, GROK, CLAUDE, PERPLEXITY, CURSOR, DEVIN, REPLIT, AND MORE! - AI SYSTEMS TRANSPARENCY FOR ALL! 👐
TextAttack
QData/TextAttack
TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/
AI-Infra-Guard
Tencent/AI-Infra-Guard
A.I.G (AI-Infra-Guard) is a comprehensive, intelligent, and easy-to-use AI Red Teaming platform developed by Tencent Zhuque Lab.
mcp-containers
metorial/mcp-containers
Metorial MCP Containers - Containerized versions of hundreds of MCP servers 📡 🧠
nlp
duoergun0729/nlp
兜哥出品 <一本开源的NLP入门书籍>
llm-guard
protectai/llm-guard
The Security Toolkit for LLM Interactions
