Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mnns/LLMFuzzer
๐ง LLMFuzzer - Fuzzing Framework for Large Language Models ๐ง LLMFuzzer is the first open-source fuzzing framework specifically designed for Large Language Models (LLMs), especially for their integrations in applications via LLM APIs. ๐๐ฅ
https://github.com/mnns/LLMFuzzer
ai cybersecurity llm llmsecurity
Last synced: 2 months ago
JSON representation
๐ง LLMFuzzer - Fuzzing Framework for Large Language Models ๐ง LLMFuzzer is the first open-source fuzzing framework specifically designed for Large Language Models (LLMs), especially for their integrations in applications via LLM APIs. ๐๐ฅ
- Host: GitHub
- URL: https://github.com/mnns/LLMFuzzer
- Owner: mnns
- License: mit
- Created: 2023-05-20T16:40:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-12T07:22:56.000Z (11 months ago)
- Last Synced: 2024-08-02T15:11:53.089Z (5 months ago)
- Topics: ai, cybersecurity, llm, llmsecurity
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 201
- Watchers: 4
- Forks: 27
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gpt-security - LLMFuzzer - LLMFuzzer is the first open-source fuzzing framework specifically designed for Large Language Models (LLMs), especially for their integrations in applications via LLM APIs. (Tools / Detecting)
- awesome-llm-security - LLMFuzzer
- Awesome-LLM4Security - LLMFuzzer
- Awesome-LLM4Security - LLMFuzzer
README
# ๐ง LLMFuzzer - Fuzzing Framework for Large Language Models ๐ง
![LLMFuzzer-shell](https://github.com/mnns/LLMFuzzer/assets/1796080/71b006df-706c-43f6-acd1-49646dbcb0e5)
![Version](https://img.shields.io/badge/version-1.0.0-blue)
![License](https://img.shields.io/badge/license-MIT-green)
![Stars](https://img.shields.io/github/stars/mnns/LLMFuzzer)
![Forks](https://img.shields.io/github/forks/mnns/LLMFuzzer)
![Issues](https://img.shields.io/github/issues/mnns/LLMFuzzer)[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/contains-cat-gifs.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/not-a-bug-a-feature.svg)](https://forthebadge.com)----------------------------------------------------------------
## Project Status: Unmaintained
This project is no longer actively maintained. You are welcome to fork and continue its development on your own. Thank you for your interest and support.
----------------------------------------------------------------
LLMFuzzer is the first open-source fuzzing framework specifically designed for Large Language Models (LLMs), especially for their integrations in applications via LLM APIs. ๐๐ฅ
## ๐ฏ Who is this for?
If you're a security enthusiast, a pentester, or a cybersec researcher who loves to find and exploit vulnerabilities in AI systems, LLMFuzzer is the perfect tool for you. It's built to make your testing process streamlined and efficient. ๐ต๏ธโโ๏ธ
![Untitled](https://github.com/mnns/LLMFuzzer/assets/1796080/a143897d-383c-4ed9-8b2f-65f4cdc5aa63)
## ๐ Features
- Robust fuzzing for LLMs ๐งช
- LLM API integration testing ๐ ๏ธ
- Wide range of fuzzing strategies ๐
- Modular architecture for easy extendability ๐## ๐ฅ Roadmap
* Adding more attacks
* HTML Report as output
* Multiple Connectors (JSON-POST, RAW-POST, QUERY-GET)
* Multiple Comparers
* Proxy Support
* Dual-LLM (Side LLM observation)
* Autonomous Attack Mode## ๐ Get Started
1. Clone the repo
```bash
git clone https://github.com/mnns/LLMFuzzer.git
```2. Navigate to the project directory
```bash
cd LLMFuzzer
```3. Install dependencies
```bash
pip install -r requirements.txt
```4. Edit **llmfuzzer.cfg** with your LLM API endpoint (LLMFuzzer -> Your Application -> LLM)
```bash
Connection:
Type: HTTP-API
Url: "http://localhost:3000/chat" # Your LLM API
Content: JSON
Query-Attribute: "query" # Your JSON query attribute
Output-Attribute: "answer" # Your JSON response attribute
Headers: {'enwiki_session': '17ab96bd8ffbe8ca58a78657a918558'} # Add HTTP Headers if needed
Cookie: {'enwiki_session': '17ab96bd8ffbe8ca58a78657a918558'} # Add Cookies if needed
```5. Run LLMFuzzer
```bash
python main.py
```## ๐ Documentation
We are working on full documentation. It will cover detailed information about the architecture, different fuzzing strategies, examples, and how to extend the tool.## ๐ค Contributing
We welcome all contributors who are passionate about improving LLMFuzzer. See our contributing guidelines for ways to get started. ๐ค## ๐ผ License
LLMFuzzer is licensed under the MIT License. See the LICENSE file for more details.## ๐ฉ Acknowledgments
LLMFuzzer couldn't exist without the community. We appreciate all our contributors and supporters. Let's make AI safer together! ๐