Git Product home page Git Product logo

taoquanyus / llmfuzzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mnns/llmfuzzer

0.0 0.0 0.0 49 KB

๐Ÿง  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. ๐Ÿš€๐Ÿ’ฅ

License: MIT License

Python 100.00%

llmfuzzer's Introduction

๐Ÿง  LLMFuzzer - Fuzzing Framework for Large Language Models ๐Ÿง 

LLMFuzzer-shell

Version License Stars Forks Issues

forthebadge forthebadge forthebadge

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

๐ŸŒŸ 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
git clone https://github.com/mnns/LLMFuzzer.git
  1. Navigate to the project directory
cd LLMFuzzer
  1. Install dependencies
pip install -r requirements.txt
  1. Edit llmfuzzer.cfg with your LLM API endpoint (LLMFuzzer -> Your Application -> LLM)
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
  1. Run LLMFuzzer
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! ๐Ÿ’–

llmfuzzer's People

Contributors

mnns avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.