An open API service indexing awesome lists of open source software.

https://github.com/HackerBlazeX/Offensive-AI-Attack-Path-Visualizer

πŸ›‘οΈ AI-powered offensive security framework that visualizes attack paths using multi-tool recon, risk scoring & OWASP mapping. Built for legal security testing & learning.
https://github.com/HackerBlazeX/Offensive-AI-Attack-Path-Visualizer

ai-security ai-security-tool bug-bounty-hunting cybersecurity llama-cpp-python owasp-top-10 penetration-testing-framework red-teaming streamlit-webapp

Last synced: about 1 month ago
JSON representation

πŸ›‘οΈ AI-powered offensive security framework that visualizes attack paths using multi-tool recon, risk scoring & OWASP mapping. Built for legal security testing & learning.

Awesome Lists containing this project

README

          


Offensive AI Banner


Offensive AI Logo

πŸ›‘οΈ Offensive AI – Attack Path Visualizer



πŸ’» Developed by Dip Kar (HackerBlazeX) πŸš€



β˜• Just give a domain β€” relax & sip your coffee.

πŸ€– Offensive AI handles yours 80% of the web penetration testing task

πŸ“„ and delivers a ready-to-use report with AI-driven insights.


AI-powered offensive security framework that transforms raw recon data into realistic, prioritised attack paths using local AI reasoning.


⚠️ For legal & authorised security testing and educational purposes only.

---

## πŸš€ What is Offensive AI?

**Offensive AI – Attack Path Visualizer** is a Windows-first offensive security framework designed to help security professionals **think like a real attacker**, not just collect tool outputs.

Instead of showing scattered scan results, this framework:
- Correlates recon & scan signals
- Applies AI-driven reasoning using a **local LLM (llama.cpp)**
- Generates **realistic attack paths**
- Presents everything in a clean, analyst-friendly dashboard

Built for **pentesters, red teamers, bug bounty hunters, and cybersecurity learners**.

---

## 🧠 The Problem It Solves

Traditional penetration testing often suffers from:
- Too many tools, too much noise
- Disconnected findings
- Manual decision-making fatigue
- Difficulty deciding *what to exploit next*

**Offensive AI** bridges this gap by converting **raw technical data into structured offensive intelligence**.

---

## 🧠 How the Framework Works

The framework begins by collecting **raw signals** from multiple reconnaissance and scanning tools, such as:

- DNS resolution & reachability (nslookup, ping)
- Open ports & exposed services (Nmap)
- Subdomains (Subfinder)
- Live HTTP services, status codes & technologies (httpx)
- Known misconfigurations & CVE templates (Nuclei)
- Parameterised URLs (ParamSpider)
- Directory & file discovery (FFUF / Dirsearch)
- Web server misconfigurations (Nikto)
- Input-based testing signals (SQLMap, XSStrike)

All outputs are captured **as raw text**, without modifying or exploiting the target.

βœ” No blind exploitation
βœ” Detection-focused
βœ” Scope-friendly

---
### 2️⃣ Normalisation & Noise Reduction

Instead of showing messy tool output, the framework:
- Normalises data (domains, URLs, parameters)
- De-duplicates repeated findings
- Filters non-actionable noise

This ensures the tester focuses on **signal, not spam**.

Example:
Multiple URLs β†’ unique parameterised endpoints
Multiple ports β†’ parsed open services
Multiple subdomains β†’ consolidated attack surface

---

### 3️⃣ Correlation Engine (Human-like Logic)

This is the **core brain before AI**.

The framework correlates findings across tools to build **context**, such as:

- Open web ports + subdomains + login hints
- Parameterised URLs + SQLMap/XSS signals
- Nikto misconfigs + Nuclei template hits
- Many subdomains β†’ higher chance of forgotten assets

Isolated issues are converted into **meaningful attack hypotheses**.

> Example logic:
Parameterised URL

SQLMap heuristic signal

XSStrike reflection
= High-value input validation hotspot

---

### 4️⃣ AI Reasoning Layer (Local LLM – Optional)

The AI layer uses **llama.cpp with GGUF models**, running **fully locally**.

The AI:
- Reads the correlated attack surface summary
- Mimics attacker-style reasoning
- Suggests **high-level attack paths**
- Explains **why certain areas matter more**

βœ” Fully offline
βœ” No cloud API
βœ” Privacy-first
βœ” Exploit-less (planning only)

AI is used for **decision support**, not automated hacking.

---

### 5️⃣ Attack Path Generation

Based on correlation + AI reasoning, the framework generates:

- Step-by-step **attack paths**
- Logical phases:
Recon β†’ Entry Point β†’ Expansion β†’ Impact
- Priority scoring (Critical / High / Medium / Low)
- Risk context for each hotspot

This helps answer the real question:
> *β€œIf I were attacking this legally, where would I start?”*

---

### 6️⃣ OWASP Top 10 Mapping (Signal-Based)

Each finding is approximately mapped to **OWASP Top 10 categories**, such as:

- A01 – Broken Access Control
- A03 – Injection (SQLi / XSS / Input issues)
- A05 – Security Misconfiguration
- A07 – Identification & Authentication Failures

⚠️ This is **signal-based mapping**, not a final verdict.
It is meant to make results:
- Report-ready
- Management-friendly
- Easier to explain to non-technical stakeholders

---

### 7️⃣ Risk Scoring & Prioritisation

The framework calculates a **rough risk score (0–100)** based on:
- Number of open ports
- Severity of Nuclei findings
- Correlated vulnerability signals
- Breadth of attack surface

This score is:
- Visual
- Educational
- Trendable (per session)

It is **not a CVSS replacement**, but a prioritisation aid.

---

### 8️⃣ Visualisation Layer (Streamlit UI)

All insights are presented through a clean Streamlit dashboard:

- Attack surface overview
- Risk metrics & trends
- Open port & subdomain graphs
- OWASP Top 10 tables
- Timeline view (Recon β†’ Attack planning)
- Graphviz attack surface map
- High-level attack tree visualisation

No messy terminal output.
Only **clear offensive insight**.

---

### 9️⃣ Learning Mode & Explainability

Every major tool output can be:
- Explained in **beginner-friendly Hinglish**
- Interpreted using local AI (optional)
- Used as a learning reference

This makes the framework ideal for:
- Students
- Junior pentesters
- Interview preparation
- Red team mindset training

---

## ✨ Key Features (Expanded)

- πŸ” Multi-tool recon aggregation
- 🧠 Human-like vulnerability correlation
- πŸ€– Local AI reasoning (llama.cpp, GGUF)
- πŸ“Š Risk-based prioritisation & scoring
- 🧩 OWASP Top 10 signal mapping
- 🌐 Visual attack surface & attack tree
- πŸ§ͺ ParamSpider β†’ SQLMap β†’ XSStrike smart pipeline
- πŸ“ˆ Risk trend tracking (session-based)
- 🧠 Explainable outputs (learning-first)
- ⚑ Fast Streamlit UI
- πŸ–₯️ Offline / local-first architecture
- πŸ“„ One-click professional reporting & export
- 🧾 Auto-generated attack surface & AI analysis report (Markdown)
- 🧠 Complete machine-readable scan bundle (JSON)
- ⏱️ Timestamped, domain-based filenames
- ⬇️ Instant download from the dashboard
- πŸ›‘οΈ Legal, authorised & exploit-less by design
- 🎯 **Multiple Scan Modes**
- βš™οΈ **Normal Mode** – Balanced recon & analysis for general security testing
- πŸ† **Bug Bounty Mode** – Low-noise, safe, scope-friendly scanning ideal for bounty programs
- πŸŽ“ **Learning Mode** – Beginner-friendly explanations with AI-assisted reasoning (Hinglish support)
Each mode intelligently adjusts:
- 🧰 Tool execution behaviour
- πŸ”Š Noise vs signal balance
- 🧠 Explanation depth
This makes the framework usable for **both professionals and learners** πŸš€
- πŸ“¦ **Smart Dependency Checker & Auto Installer**
- Automatically checks required & optional tools on startup
- Detects missing tools in the user’s system
- Prompts the user before installing anything
- Installs missing tools automatically (Windows – Chocolatey based)
- Skips tools that are already installed
- Ensures a smooth, beginner-friendly first-time setup
- No manual dependency hunting or broken PATH issues

---

## πŸŽ₯ Framework Demo Video

▢️ **Click below to watch the full demo**
(Shows real-time scanning, AI-assisted attack planning, visual graphs, and reporting flow)

[![Watch the demo](assets/screenshots/ss-01-control-panel.png)](https://github.com/HackerBlazeX/Offensive-AI-Attack-Path-Visualizer/releases)

---

## πŸ“Έ Framework Screenshots

### 1️⃣ Offensive Control Panel & AI Engine Selection
![Control Panel](assets/screenshots/ss-01-control-panel.png)
Centralized control panel with local AI engine selection, dependency checks, theme switching, and legal-only usage guardrails.

---

### 2️⃣ Tool Overview & Getting Started
![Home UI](assets/screenshots/ss-02-home-ui.png)
Clean landing interface showing workflow guidance, scan modes, and offensive-security learning focus.

---

### 3️⃣ Scan Summary & Risk Snapshot
![Scan Summary](assets/screenshots/ss-03-scan-summary.png)
Auto-generated scan summary including resolved IP, scan timestamp, and overall risk score.

---

### 4️⃣Owasp Top 10 Coverage
![Owasp Top 10 Coverage](assets/screenshots/ss-04-attack-surface.png)
Signal-based mapping of potential OWASP Top 10 risk categories derived from reconnaissance and scan outputs for prioritised review.
---

### 5️⃣ Timeline View-Recon to Attack Path Planning![Timeline View](assets/screenshots/ss-05-visual-graphs.png)
Step-by-step visual flow from initial reconnaissance to structured attack-path planning for guided security testing.

---

### 6️⃣ Domain, IP, Ports & Subdomain Visual Graph
![Domain, IP, Ports & Subdomain Visual Graph](assets/screenshots/ss-06-risk-trend.png)
Session-level risk trend tracking to observe exposure changes during reconnaissance.

---

### 7️⃣ AI-Generated Attack Path & Ranking
![AI-Generated Attack Path & Ranking](assets/screenshots/ss-07-owasp.png)
High-level, AI-assisted attack path with asset ranking and testing priority to support informed and ethical security assessment planning.

---

### 8️⃣ Attack Tree & A.i Correlated Findings (Visual Graph)
![Attack Tree & Correlated Findings (Visual Graph)](assets/screenshots/ss-08-timeline.png)
Visual attack tree correlating reconnaissance findings, assets, and services to illustrate potential attack paths and relationships.

---

### 9️⃣ AI Risk Ranking
![AI Risk Ranking](assets/screenshots/ss-09-attack-graph.png)
AI-based ranking of assets and findings based on exposure signals and contextual risk indicators.

---

### πŸ”Ÿ Exploit Hint (AI-Assisted)
![Exploit Hint (AI-Assisted)](assets/screenshots/ss-10-ai-attack-path.png)
AI-assisted indicators to guide focused analysis and manual testing.

---

## ⚠️ Important Disclaimer

This framework is designed for:
- Legal & authorised security testing
- Education & learning
- Attack surface analysis
- Decision support

It does **NOT** provide:
- Exploit payloads
- Malware
- Illegal automation

Always follow scope, permissions, and local laws.
ℹ️ The framework never installs tools without explicit user consent.

---

## 🧰 Requirements

- Windows 10 / 11
- Python **3.10+**
- Git
- Streamlit
- llama.cpp (local LLM server)

---

## βš™οΈ Installation (Windows – Easy)

```powershell
# 1️⃣ Clone the repository
git clone https://github.com/HackerBlazeX/Offensive-AI-Attack-Path-Visualizer.git
cd Offensive-AI-Attack-Path-Visualizer

# 2️⃣ Install dependencies
pip install -r requirements.txt

# 3️⃣ Start local LLM server (llama.cpp)
.\llama-server.exe -m path\to\model.gguf -c 4096 -t 6 -ngl 35

# 4️⃣ Run the framework
streamlit run Offensive-AI.py

# 5️⃣ Open in browser
http://localhost:8501

## ⚠️ Important: Hardcoded Paths Notice

Some paths inside the framework (for example **ParamSpider results directory, Nikto path, local tool locations**)
are currently **configured based on the developer’s local Windows environment**.

πŸ”§ **What you need to do:**
- Review variables like:
- `PARAMSPIDER_BASE`
- `PARAMSPIDER_RESULTS_DIR`
- `nikto_path`
- Update them **according to your own system paths** if required.

πŸ’‘ This design choice was made to:
- Keep the framework simple and readable
- Allow beginners to understand how tools interact
- Avoid complex environment abstractions in early versions

Future versions may introduce:
- Auto path detection
- Config file–based path management

βœ”οΈ Once paths are adjusted, the framework works normally.

⚠️ Important Note

This framework is not an auto-exploitation tool.
It is an AI-assisted offensive decision-support system designed to:

Reduce manual analysis time

Improve attack planning

Enhance learning and reporting quality

πŸ” Legal Disclaimer

This project is intended only for authorised security testing, research, and education.
The author is not responsible for misuse or illegal activity.

πŸ“„ License

Licensed under the MIT License.
See the LICENSE file for details.

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

Dip Kar
Cybersecurity | Offensive Security | AI Γ— Security

⭐ Support

If you find this project useful:

⭐ Star the repository

🧠 Share feedback

πŸš€ Contribute ideas or improvements