\n\n\n\n\n\n\n**๐ก๏ธ AI Security Testing Platform with Multi-Provider API Support**\n\n[Live Demo](https://rg4hiyry.pinit.eth.limo) | [Documentation](#features) | [Quick Start](#quick-start) | [Report Issue](https://github.com/BANG644/PromptFuzzer/issues)\n\n
\n\n## ๐ Overview\n\n**PromptFuzzer** is a comprehensive security testing platform designed to identify vulnerabilities in Large Language Models (LLMs). It supports mรบltiple AI providers and implements various attack vectors to test prompt injection, jailbreaking, information leakage, and other security risks.\n\n### โจ Key Features\n\n- ๐ **Multi-Provider Support** - Seamlessly switch between Gemini, OpenAI, Anthropic, Azure, Alibaba Cloud, DeepSeek, and custom APIs\n- ๐ **Comprehensive Attack Vectors** - Test for injection, leakage, jailbreak, obfuscation, and multi-turn attacks\n- ๐ค **AI-Powered Mutation** - Automatically generate attack variations to bypass simple filters\n- ๐ก๏ธ **Defense Testing** - Evaluate different defense strategies (system prompts, XML tagging, sandwich defense)\n- **Real-time Monitoring** - Live dashboard with progress tracking and detailed logging\n- ๐ **Detailed Reporting** - Export comprehensive security assessment reports\n- ๐จ **Modern UI** - Professional, dark-mode-ready interface with smooth animations\n\n## ๐ Quick Start\n\n### Option 1: Use Deployed Version (Recommended)\n\nVisit the live deployment: **(https://rg4hiyry.pinit.eth.limo)**\n\n1. Navigate to the **Configuration** tab\n2. Expand the **API Configuration** panel\n3. Select your preferred AI provider\n4. Enter your API key\n5. Click **Test Connection** to verify\n6. Start security testing!\n\n### Option 2: Run Locally\n\n#### Prerequisites\n\n- [Node.js](https://nodejs.org/) >= 18.0.0\n- npm or yarn package manager\n- API key from your chosen provider\n\n#### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/BANG644/PromptFuzzer.git\ncd PromptFuzzer\n\n# Install dependencies\nnpm install\n\n# Start the development server\nnpm run dev\n```\n\nThe application will be available at `http://localhost:3000`\n\n#### Build for Production\n\n```bash\n# Create production build\nnpm run build\n\n# Preview production build\nnpm run preview\n```\n\n## ๐ง Technology Stack\n\n### Frontend\n- **React 19.2** - UI framework\n- **TypeScript** - Type-safe development\n- **Vite** - Fast build tool and dev server\n- **Tailwind CSS** - Utility-first styling\n- **Lucide React** - Modern icon library\n\n### API Integration\n- **@google/genai** - Google Gemini SDK\n- **Fetch API** - HTTP client for other providers\n- **Custom Adapters** - Unified interface for all AI providers\n\n### State Management\n- **React Hooks** - useState, useEffect for local state\n- **LocalStorage** - API key persistence (client-side only)\n\n### Testing & Security\n- **Attack Templates** - Pre-defined security test cases\n- **AI-Powered Mutation** - Dynamic attack generation\n- **Defense Evaluation** - Multi-strategy protection testing\n\n## ๐ Supported AI Providers\n\n| Provider | Models | Latest Update |\n|----------|--------|---------------|\n| **Google Gemini** | gemini-2.0-flash-exp, gemini-2.0-flash-thinking-exp, gemini-1.5-pro | Dec 2024 |\n| **OpenAI** | gpt-4o, gpt-4o-mini, gpt-4o-realtime-preview, gpt-4-turbo | Dec 2024 |\n| **Anthropic** | claude-3-5-sonnet-20241022, claude-3-5-haiku-20241022 | Oct 2024 |\n| **Azure OpenAI** | gpt-4o, gpt-4, gpt-35-turbo | - |\n| **Alibaba Cloud** | qwen-max, qwen2.5-72b-instruct, qwen-plus | Dec 2024 |\n| **DeepSeek** | deepseek-chat, deepseek-coder, deepseek-reasoner | Dec 2024 |\n| **Custom API** | Any OpenAI-compatible endpoint | - |\n\n## โก Features\n\n### Attack Types\n\n1. **Prompt Injection** - Attempts to override system instructions\n2. **Information Leakage** - Tries to extract system prompts or internal configurations\n3. **Jailbreaking** - Tests DAN mode and developer mode bypasses\n4. **Obfuscation** - Uses encoding (Base64) to hide malicious instructions\n5. **Multi-turn Attacks** - Builds trust over multiple conversation rounds\n6. **Manual Testing** - Interactive chat interface with risk assessment\n\n### Defense Strategies\n\n- **None** - Baseline testing without defenses\n- **System Prompt Hardening** - Enhanced security instructions\n- **XML Tagging** - Treats user input as data, not instructions\n- **Sandwich Defense** - Pre and post-instruction reinforcement\n\n### Reporting & Analytics\n\n- Real-time dashboard with vulnerability statistics\n- Color-coded risk levels (Critical, High, Medium, Low, Safe)\n- Detailed evidence and remediation recommendations\n- Export capabilities for security audits\n- Conversation history tracking\n\n## ๐ Privacy & Security\n\n> **IMPORTANT**: Your API keys are stored **locally in your browser only** and are never sent to any third-party servers. All API calls are made directly to your chosen AI provider.\n\n- โ Local-only storage (browser localStorage)\n- โ No server-side data collection\n- โ Direct API calls to providers\n- โ Full user control over credentials\n- โ Open-source and transparent\n\n## ๐ Usage Guide\n\n### 1. Configure API\n\n1. Open the application\n2. Navigate to **Configuration** tab\n3. Click to expand **API Configuration**\n4. Select your provider from the grid\n5. Enter your API key (get it from provider's website)\n6. Choose a model from the dropdown\n7. Click **Test Connection** to verify\n\n### 2. Set Up Target System\n\n1. Define your **Target System Prompt** (or use the demo)\n2. Select a **Defense Strategy** to test\n3. Choose **Attack Types** to include in the scan\n\n### 3. Run Security Audit\n\n1. Click **Start Audit** to begin automated testing\n2. Monitor progress in the **Live Dashboard**\n3. View real-time logs and results\n4. Review detailed findings in the **Report** tab\n\n### 4. Manual Testing\n\n1. Go to **Manual Test** tab\n2. Have interactive conversations with the AI\n3. Each response is automatically risk-assessed\n4. Save session reports for review\n\n## ๐ค Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## ๐ License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## ๐ Acknowledgments\n\n- Built with โค๏ธ using React and TypeScript\n- Icons by [Lucide](https://lucide.dev)\n- Inspired by AI security research community\n- Special thanks to all contributors\n\n## ๐ฎ Contact\n\n**Project Link**: [https://github.com/BANG644/PromptFuzzer](https://github.com/BANG644/PromptFuzzer)\n\n**Issues**: [https://github.com/BANG644/PromptFuzzer/issues](https://github.com/BANG644/PromptFuzzer/issues)\n\n---\n\n
\n\n**Made with ๐ก๏ธ for AI Security**\n\nยฉ 2025 PromptFuzzer | [GitHub](https://github.com/BANG644/PromptFuzzer)\n\n