Skip to content

Latest commit

Β 

History

82 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Recon AI πŸ”

Network security that actually makes sense β€” for everyone, not just the people who already know what a CVE is.

Recon AI scans your network, finds vulnerabilities, reads your system logs, and explains what it found in plain English. No jargon. No degree required. No API key required.


Why I Built This

Most security tools assume you already know what you're doing. They're powerful β€” and completely useless if you don't already speak the language.

Meanwhile, the people who actually need security help the most β€” small businesses, schools, clinics, solo IT admins β€” have nothing built for them.

Recon AI is my attempt to fix that. Scan your network, get a score, understand what's wrong, know exactly what to do about it.


One Thing Worth Knowing Before Anything Else

You don't need an API key to use Recon AI.

There's a built-in knowledge base that explains every finding it surfaces β€” what the open port is, why it matters, who could exploit it, and exactly how to fix it. Step by step. No data sent anywhere. No account needed. Nothing.

The AI analysis (powered by Claude) is there when you want a deeper, more personalized breakdown. But the assistant that walks you through your results? That's built in and it's free.


How It Works

Open Recon AI in your browser
         ↓
Pick your tools β€” port scanner, network mapper, log analyzer, vuln reporter
         ↓
Enter your IP and run the scan
         ↓
Get a health score from 0–100
         ↓
Every finding explained in plain English with step-by-step fix instructions
         ↓
Optional: send findings to Claude AI for a deeper breakdown
         ↓
Download the full report as a .txt file
         ↓
Explore Network Intelligence β€” understand your interfaces, ARP table, active connections, and routes in plain English

What Makes This Different

You could paste a security report into ChatGPT or Claude and ask it to explain things. That works. But they can't ping your subnet. They can't open a socket and check what's actually running on your router right now. They can't read your local system logs. They can't tell you if someone installed an AI tool on a device you didn't authorize.

Recon AI runs locally on your machine β€” which means it has access to things no external tool ever could. The AI analysis is just the explanation layer on top of real local data that only you can collect.


The Tools

Tool What It Does Status
Port Scanner Scans ports 1–1024 (simple) or all 65,535 (deep). Finds every open door and identifies what's running behind it. βœ… Complete
Network Mapper Discovers every live device on your subnet. MAC vendor lookup via IEEE OUI database. Unknown device alerts. βœ… Complete
Log Analyzer Reads system logs and flags 30+ threat patterns β€” brute force, ransomware indicators, privilege escalation, crypto mining. βœ… Complete
Vulnerability Reporter Maps open ports to known vulnerabilities with severity ratings and plain English fix instructions. βœ… Complete
AI Security Assistant Three modes β€” Standard (Claude API), Private (local Ollama, zero data leaves), Offline (built-in, always free). EXPLAINβ†’RISKβ†’FIXβ†’VERIFY for every finding. βœ… Complete
Network Intelligence Interfaces, ARP table, active connections, and traceroute β€” all explained in plain English. Always free, never gated. βœ… Complete
System Inspector Scans running processes and startup items. Exact binary name matching β€” no false positives. Cross-platform. βœ… Complete
Credential Risk Assessment Checks every discovered device for weak auth, default credentials, and missing MFA. βœ… Complete
Shadow AI Discovery Detects unauthorized AI tools running across your local network β€” by port, banner signature, and API fingerprint. SSL cert checking on HTTPS services. βœ… Complete
NIST & OWASP Mapping Every finding automatically mapped to the NIST Cybersecurity Framework and OWASP Top 10. Plain English compliance summary. βœ… Complete
Zero Trust Verification Detects implicit device trust, new devices by MAC address, and guest devices with internal access. βœ… Complete
Prompt Injection Hardening Four-layer sanitizer protects Recon AI's own AI layer from adversarial inputs embedded in scan results. βœ… Complete
Multi-Agent AI Adversary Agent challenges every finding before you see it. Risk Prioritizer identifies your single most important action. Standard and Private modes only. βœ… Complete

What's Actually In Here

  • 🌐 Runs in your browser β€” Flask web interface, no command line needed after setup
  • πŸ“– Built-in assistant, no API key needed β€” explains every finding offline, zero data sent anywhere
  • 🧠 Optional AI analysis β€” Claude gives a deeper, more personalized breakdown when you want it
  • πŸ”’ Three AI modes β€” Standard (Claude API), Private (local Ollama, zero data leaves your machine), Offline (built-in knowledge base, always free)
  • πŸ€– Multi-agent adversarial review β€” findings are challenged by an Adversary Agent before you see them. A Risk Prioritizer tells you the one most important action to take.
  • πŸ“Š Network Health Score β€” 0–100 score so you know at a glance how your network looks
  • πŸ›‘οΈ Prompt injection protection β€” four-layer sanitizer prevents adversarial inputs in device names or log files from manipulating the AI
  • πŸ›οΈ NIST & OWASP compliance mapping β€” every finding mapped automatically, explained in plain English
  • πŸ” Zero Trust verification β€” detects implicit device trust and unknown devices by MAC address
  • 🚨 Port change alerting β€” alerts when a known device opens a new port since your last scan
  • πŸ”₯ Firewall status check β€” tells you if your local firewall is on or off in plain English
  • πŸ” ARP poisoning detection β€” flags when a device's MAC address changes between scans
  • πŸ“œ SSL certificate checker β€” checks HTTPS services for expired or expiring certificates
  • πŸ“„ Downloadable reports β€” every scan saved as a .txt file
  • πŸ›‘οΈ Security hardened β€” SSRF protection, rate limiting, HTTP security headers, SQLite WAL mode
  • πŸ–₯️ macOS, Windows, Linux β€” cross-platform

Stack

Python 3 All scanning tools
Flask Web interface
Flask-Talisman HTTP security headers
Flask-Limiter Rate limiting
Claude API AI analysis (optional)
Ollama Local AI inference for Private Mode
SQLite Scan history and device tracking
python-dotenv API key management
Standard library socket, subprocess, re, ipaddress, ssl, platform, pathlib

Getting Started

Option 1 β€” Download (Recommended)

No Python, no setup, no terminal. Just download and double-click.

Platform Download
Windows ReconAI-Windows.exe
macOS ReconAI-macOS.app.zip β€” unzip and double-click ReconAI

Windows: Windows Defender may show a "Windows protected your PC" warning. Click "More info" β†’ "Run anyway." This is expected for unsigned applications.

macOS: If macOS blocks the app, go to System Settings β†’ Privacy & Security β†’ click "Open Anyway."

Option 2 β€” Run from Source (Developers)

You need Python 3.11+. An Anthropic API key is optional β€” only needed for AI analysis.

# Clone
git clone https://github.com/PRXSM/recon-ai.git
cd recon-ai

# Virtual environment
python3 -m venv venv
source venv/bin/activate        # macOS/Linux
venv\Scripts\activate           # Windows

# Dependencies
pip install -r requirements.txt

# API key β€” only needed for AI analysis
cp .env.example .env
# Open .env and add your Anthropic API key

# Run
python3 app.py
# β†’ http://localhost:5000

Project Structure

recon-ai/
β”œβ”€β”€ app.py                     # Flask routes, validation, security hardening
β”œβ”€β”€ engine.py                  # Risk scoring, scan summary, report builder
β”œβ”€β”€ port_scanner.py            # TCP port scanner (simple 1–1024, deep 65,535)
β”œβ”€β”€ network_mapper.py          # Ping-based host discovery, MAC vendor lookup
β”œβ”€β”€ log_analyzer.py            # 30+ threat pattern detection
β”œβ”€β”€ vulnerability_reporter.py  # Port β†’ vulnerability database
β”œβ”€β”€ ai_assistant.py            # Claude API integration, three AI modes
β”œβ”€β”€ ai_agents.py               # Adversary Agent + Risk Prioritizer
β”œβ”€β”€ plain_english.py           # Offline knowledge base
β”œβ”€β”€ network_intel.py           # Network Intelligence engine
β”œβ”€β”€ system_inspector.py        # Suspicious process and startup item scanner
β”œβ”€β”€ credential_scanner.py      # Credential risk assessment
β”œβ”€β”€ shadow_ai.py               # Shadow AI discovery + SSL cert checker
β”œβ”€β”€ nist_owasp.py              # NIST & OWASP compliance mapping
β”œβ”€β”€ zero_trust.py              # Zero Trust verification
β”œβ”€β”€ prompt_injection.py        # Four-layer prompt injection sanitizer
β”œβ”€β”€ firewall_check.py          # Local firewall status check
β”œβ”€β”€ scan_memory.py             # Scan history, port change alerting, ARP poisoning detection
β”œβ”€β”€ device_fingerprint.py      # MAC vendor lookup via IEEE OUI database
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ index.html             # Scan form
β”‚   β”œβ”€β”€ results.html           # Results display
β”‚   β”œβ”€β”€ shadow_ai.html         # Shadow AI findings display
β”‚   β”œβ”€β”€ network_intel.html     # Network Intelligence dashboard
β”‚   β”œβ”€β”€ arp_table.html         # ARP table explained
β”‚   β”œβ”€β”€ netstat.html           # Active connections explained
β”‚   └── traceroute.html        # Route tracing explained
β”œβ”€β”€ oui.csv                    # IEEE OUI database for MAC vendor lookup
β”œβ”€β”€ .env.example               # API key template
β”œβ”€β”€ requirements.txt
└── README.md

The Score

Every scan produces a health score from 0–100. It's not perfect β€” no single number ever is β€” but it gives you a starting point.

Score Label What it means
80–100 🟒 GOOD Looking solid. Stay on top of updates.
60–79 🟑 MODERATE Some things worth looking at. Not urgent, but don't ignore it.
40–59 🟠 AT RISK Real issues here. Worth addressing soon.
0–39 πŸ”΄ CRITICAL Something needs attention now.

Deductions: -2 per open port, up to -20 per critical vulnerability, up to -10 per log finding.


Where Things Stand

βœ… Phase 1 β€” 5 core scanning tools Complete
βœ… Phase 2 β€” Unified engine, risk scoring, OS detection, IP redaction Complete
βœ… Phase 3 β€” Flask web interface, browser UI, AI opt-in, offline mode Complete
βœ… Phase 4 β€” 30+ threat patterns, cross-tool correlation, downloadable reports Complete
βœ… Phase 5 β€” Network Intelligence, interfaces, ARP, netstat, traceroute Complete
βœ… Phase 6 β€” Guardian Update, scan memory, unknown device alerts, three AI modes Complete
βœ… Phase 7 β€” Deep Scan Mode, full 65,535 port scanning, device fingerprinting Complete
βœ… Phase 8 β€” System Inspector, process scanner, startup item analyzer Complete
βœ… Phase 9 β€” Credential Risk Assessment, default creds, missing MFA detection Complete
βœ… Phase 10 β€” Shadow AI Discovery, unauthorized AI tool detection by port and banner Complete
βœ… Phase 11 β€” NIST & OWASP Mapping, automatic compliance correlation Complete
βœ… Phase 12 β€” Zero Trust Verification, never trust always verify Complete
βœ… Phase 13 β€” Prompt Injection Hardening, four-layer AI sanitizer Complete
βœ… Phase 13b β€” Multi-Agent AI, Adversary Agent + Risk Prioritizer Complete
βœ… Phase 14 β€” App Complete Milestone, full security audit and hardening Complete
βœ… Phase 14b β€” Post-audit hardening, four targeted security fixes Complete
πŸ“‹ Phase 15 β€” UI Redesign Planned
πŸ“‹ Phase 16 β€” Deploy Online Planned
πŸ“‹ Phase 17 β€” Business Model Planned

Privacy

  • Your IP is never sent anywhere β€” redacted before any AI call is made
  • AI analysis is opt-in β€” there's a checkbox, it's off by default
  • Private Mode sends nothing at all β€” local Ollama inference only
  • Offline Mode requires zero API calls and zero data sharing
  • Everything runs locally β€” no accounts, no server, no data collection
  • Your API key lives in .env and never gets uploaded

Legal

Scan networks you own or have explicit permission to scan. Unauthorized scanning is illegal under the CFAA and equivalent laws worldwide. Recon AI asks for authorization confirmation before every scan. This is a defensive tool β€” built to help you understand your own network.


The Person I'm Building This For

There's a school IT admin somewhere managing 200 devices alone, no security budget, no security training, no time. Every Monday morning they just need to know: is everything okay?

Green, yellow, or red. That's it.

That's who every decision in this project is built around.


Built By

Asama Azim β€” IT & Cybersecurity | CompTIA Network+ Certified | Security+ in progress

GitHub | LinkedIn

About

AI-powered network security platform for technical and non-technical users

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages