Skip to content

A chatbot-based vulnerability scanner that helps users identify and resolve common web application security issues such as SQL Injection, Cross-Site Scripting (XSS), open ports, and more. It provides actionable advice on patching vulnerabilities and improving security, powered by Groq's AI model and an intuitive Gradio interface.

Notifications You must be signed in to change notification settings

HridikDev/Vulnerability_Scanner-Chat-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Vulnerability Scanner ChatBot

A conversational cybersecurity assistant built with Gradio and the Groq AI API that helps identify and mitigate common security vulnerabilities in websites, applications, or code. This chatbot provides practical guidance on issues like SQL Injection, Cross-Site Scripting (XSS), open ports, and more β€” making it a useful tool for developers and security enthusiasts.


πŸš€ Features

  • πŸ” Vulnerability Detection – Identify potential issues like SQLi, XSS, and insecure configurations.
  • πŸ’‘ Actionable Security Advice – Get clear, step-by-step recommendations for fixing vulnerabilities.
  • 🧠 AI-Powered Assistance – Uses the Groq LLM (e.g., llama3-8b-8192) to generate detailed, context-aware security insights.
  • 🎨 Clean Gradio UI – Simple and interactive chat interface for a seamless experience.
  • πŸ”’ Developer-Friendly – Easily customizable for new models, features, or vulnerability types.

🧰 Tech Stack

Component Description
Python Core language for the chatbot logic
Gradio User interface for chat interaction
Groq API Provides access to the LLM for generating responses
Requests Handles communication with the API

βš™οΈ Installation & Setup

1. Clone the Repository

git clone https://github.com/HridikDev/Vulnerability_Scanner-Chat-Bot.git
cd Vulnerability_Scanner-Chat-Bot

2. Create a Virtual Environment

python -m venv venv
source venv/bin/activate   # On Windows: venv\Scripts\activate

3. Install Dependencies

pip install gradio requests

4. Set Your Groq API Key

You need a Groq API key to access the model. Set it as an environment variable:

Linux/Mac:

export GROQ_API_KEY="your_api_key_here"

Windows (PowerShell):

setx GROQ_API_KEY "your_api_key_here"

▢️ Run the App

python app.py

Once it starts, Gradio will give you a local and shareable link:

Running on local URL:  http://127.0.0.1:7860/

Open it in your browser to start chatting with the AI Vulnerability Scanner Bot πŸ§‘β€πŸ’»

πŸ’¬ Example Prompts

Try asking:

β€œHow can I secure my login form?”

β€œWhat is SQL injection and how do I prevent it?”

β€œHow do I fix an XSS vulnerability?”

β€œCan you scan my website for vulnerabilities?”

β€œWhat are the most common web application vulnerabilities?”

🧠 How It Works

The chatbot sends user queries and chat history to the Groq API.

The AI model processes the input and returns detailed, actionable security advice.

The conversation context is maintained across messages for a smooth, intelligent dialogue.

The Gradio UI handles all user interactions.

🧾 License

This project is licensed under the MIT License – see the LICENSE file for details.


πŸ‘¨β€πŸ’» Author

Hridik Dev – Cybersecurity Enthusiast & Developer
πŸ’Ό GitHub: @HridikDev
πŸ”— LinkedIn: Hridik Dev

About

A chatbot-based vulnerability scanner that helps users identify and resolve common web application security issues such as SQL Injection, Cross-Site Scripting (XSS), open ports, and more. It provides actionable advice on patching vulnerabilities and improving security, powered by Groq's AI model and an intuitive Gradio interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages