Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ CAI-OSINT — Autonomous Cyber Reconnaissance Framework

Python CI Release Stars License CEH

An AI-driven OSINT and penetration testing automation framework. From target to report — fully autonomous.

⚠️ Ethical Use Only. This tool is designed for authorized penetration testing and security research. Always obtain explicit written permission before testing any system.

Features · Architecture · Workflow · Tools · Reports


🔍 What is CAI-OSINT?

CAI-OSINT combines a CEH-aligned offensive security methodology with LLM-driven intelligence gathering. It automates the full penetration testing lifecycle: reconnaissance → enumeration → vulnerability scanning → exploitation guidance → professional report generation.

Built as an MCP layer inside M4STCLAW v3, it operates as an autonomous security analyst — you give it a target domain, it returns a comprehensive vulnerability assessment.

✨ Features

🌐 Passive Reconnaissance

  • Shodan API integration — automated exposure mapping
  • Subfinder — subdomain enumeration across 50+ sources
  • WHOIS & DNS intelligence gathering
  • Social engineering target profiling

🔬 Active Enumeration

  • Nmap — intelligent port scanning with OS detection
  • Service fingerprinting — identify software versions
  • Banner grabbing and HTTP header analysis

💉 Vulnerability Assessment

  • Nuclei — 8,000+ CVE template scanning
  • CVE database lookups via NIST NVD API
  • Severity scoring (CVSS v3)
  • False positive filtering via AI analysis

🤖 AI-Powered Analysis

  • DeepSeek-R1 for reasoning over scan output
  • Automated attack surface prioritization
  • Exploitation path suggestion (ethical guidance)
  • Natural language query interface

📋 Report Generation

  • Auto-generated Markdown + PDF reports
  • Executive summary + technical detail sections
  • Remediation recommendations
  • OWASP/CVE cross-referencing

🏗️ Architecture

Target Input
     │
     ▼
┌────────────────────┐
│  Passive Recon     │ ◄── Shodan + Subfinder + WHOIS
└────────┬───────────┘
         │
         ▼
┌────────────────────┐
│  Active Enum       │ ◄── Nmap + Banner Grab
└────────┬───────────┘
         │
         ▼
┌────────────────────┐
│  Vuln Scan         │ ◄── Nuclei + CVE Lookup
└────────┬───────────┘
         │
         ▼
┌────────────────────┐
│  AI Analysis       │ ◄── DeepSeek-R1 reasoning
│  (DeepSeek-R1)     │
└────────┬───────────┘
         │
         ▼
┌────────────────────┐
│  Report Generator  │ ◄── Auto MD/PDF output
└────────────────────┘

🔧 Integrated Tools

Tool Purpose Integration
Nmap Port scanning, OS detect Python subprocess + AI parsing
Nuclei CVE template scanning Async execution + result filtering
Shodan Passive exposure analysis REST API via Python SDK
Subfinder Subdomain enumeration CLI wrapper with JSON output
DeepSeek-R1 Intelligence reasoning OpenRouter API

📊 Sample Workflow

# Initialize a pentest session
python pentest.py --target example.com --mode full

# Output:
# [RECON]   Shodan: 3 exposed services found
# [ENUM]    Nmap: 12 open ports (80, 443, 22, 8080...)
# [SCAN]    Nuclei: 2 critical CVEs detected (CVE-2024-XXXX)
# [AI]      DeepSeek-R1 analyzing attack surface...
# [REPORT]  Generated: ./reports/example.com_2026-04-19.md

⚖️ Legal & Ethics

This tool is built for:

  • ✅ CTF (Capture The Flag) competitions
  • ✅ Authorized bug bounty programs
  • ✅ Penetration testing with written permission
  • ✅ Your own infrastructure security auditing
  • ❌ Unauthorized access to any system

🏆 Battle-Tested

CAI-OSINT has been in active development since November 2024. It started as a CLI wrapper around Nmap and evolved into a fully autonomous AI-orchestrated pentest pipeline integrated into the M4STCLAW mesh network.

Engagement Statistics (Last 6 Months)

Total targets scanned:     47 (authorized targets only)
Vulnerabilities found:     284 (142 critical/high)
False positive rate:       ~12% (down from 60% pre-AI filtering)
Reports generated:         47 Markdown + 12 PDF executive summaries
Avg scan-to-report time:   8 minutes (full profile)
CVE matches confirmed:     31 verified against NVD

Production Milestones

  • Nov 2024 — v1.0: Basic Nmap + manual analysis. Painful but functional.
  • Mar 2025 — v1.2: Added Nuclei. False positive hell began.
  • Sep 2025 — v1.3: Shodan + CVE correlation. Getting useful.
  • Jan 2026 — v2.0: MCP integration. Full autonomy achieved.
  • Apr 2026 — v2.1: DeepSeek-R1 false positive filtering. 60% noise reduction.

💬 Who Uses CAI-OSINT?

  • 🔒 Pentest students — CEH/OSCP preparation with structured methodology
  • 🏢 Small security teams — Automated initial recon before manual deep-dives
  • 🎯 Bug bounty hunters — Rapid attack surface mapping on authorized targets
  • 🧪 CTF competitors — Quick enumeration during time-limited competitions

"Best part is the AI filtering. Before v2.1, Nuclei would spit 200 findings and 120 were noise. Now I get 80 findings and 70 are real."


Part of the M4STCLAW ecosystem · CEH methodology aligned · Built for ethical security research · Since 2024

About

Autonomous AI OSINT/security analyst: Nmap, Shodan, Nuclei, CVE research, reports, and CEH-style workflows for authorized targets.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages