๐ฆ EVIL-OLLAMA
Next-Gen Exposed Ollama Instance Finder, Vulnerability Scanner & Proxy Tool
Find publicly exposed Ollama LLM instances across the internet, scan for vulnerabilities, proxy through them, and more.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ [+] TARGET: Any exposed Ollama instance โ
โ [+] METHOD: Async TCP ยท DNS ยท CT Logs ยท Shodan ยท Censys ยท FOFA โ
โ [+] VULN SCAN: Auth ยท CVE-2024-37032 ยท SSRF ยท CORS ยท Metrics โ
โ [+] PROXY: OpenAI-compatible ยท Chat ยท Generate โ
โ [+] STATUS: ACTIVE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฅ FEATURES
| Category | Features |
|---|---|
| ๐ SCANNING | Random IP (weighted) ยท CIDR ยท IP List ยท DNS Discovery ยท CT Logs ยท Shodan ยท Censys ยท FOFA ยท 9 methods total |
| ๐ VULNERABILITY | Auth check ยท CVE-2024-37032 (RCE) ยท Model Create/Delete ยท CORS ยท SSRF ยท Metrics ยท Info Disclosure ยท Timing ยท 10 checks |
| ๐ PROXY | OpenAI SDK compatible ยท Streaming ยท Full API forward ยท All HTTP methods |
| ๐ฌ CHAT | Interactive ยท Batch mode ยท System prompts ยท Temperature ยท Raw API |
| ๐ FINGERPRINT | 18 endpoints ยท GPU detection ยท Model analysis ยท Size calc ยท Running models |
| ๐ฆ MODELS | List ยท Pull info ยท Deep analyze ยท Size breakdown |
| ๐ EXPORT | HTML (beautiful) ยท CSV ยท JSON ยท Vuln stats ยท Geo distribution |
| ๐ค AUTO-PWN | Scan โ Vuln Scan โ Geolocate โ Proxy โ Report โ one command |
| ๐ก MONITOR | CLI-only daemon ยท Telegram alerts ยท Auto-export |
โก QUICK START
๐ Installation
git clone https://github.com/evogix/Evil-Ollama
cd Evil-Ollama
pip install aiohttp flask requests
chmod +x launcher.sh
๐ฏ Basic Scan
# Scan 10,000 random IPs for Ollama instances
./launcher.sh scan --random 10000
# Scan with geolocation + export
./launcher.sh scan --random 10000 --geo --export html --notify
๐ COMMANDS
๐ SCANNING
# Random IP scan (weighted for real-world density)
./launcher.sh scan --random 10000
# CIDR range scan
./launcher.sh scan --cidr 0.0.0.0/8
# DNS discovery โ find ollama.example.com, ai.example.com, etc.
./launcher.sh scan --dns example.com
# Certificate Transparency log discovery
./launcher.sh scan --ct example.com
# Internet DB search
./launcher.sh scan --shodan API_KEY
./launcher.sh scan --censys ID:SECRET
./launcher.sh scan --fofa EMAIL:KEY
# Scan with extras
./launcher.sh scan --random 5000 --geo --export html --notify
๐ VULNERABILITY SCANNING
# Scan a specific instance
./launcher.sh vuln --target 1.2.3.4:11434
# Scan ALL found instances
./launcher.sh vuln --all
# Exploit a specific CVE
./launcher.sh exploit --cve CVE-2024-37032 --target 1.2.3.4:11434
Vulnerability checks:
๐ [CRITICAL] CVE-2024-37032 โ RCE via Crafted Model Import
๐ [HIGH ] No Authentication โ Open API access
๐ [HIGH ] Unauthenticated Model Creation
๐ [HIGH ] Unauthenticated Model Deletion
๐ [HIGH ] CVE-2024-39721 โ SSRF in Model Pulling
๐ [MEDIUM ] CORS Misconfiguration
๐ [MEDIUM ] Prometheus Metrics Exposed
๐ [LOW ] Server Information Disclosure
๐ [LOW ] No CSRF Protection
๐ [LOW ] Response Timing Leak
๐ PROXY (OpenAI Compatible)
# Start proxy to remote Ollama
./launcher.sh proxy --target 1.2.3.4:11434 --port 8080
# Use with OpenAI SDK:
# from openai import OpenAI
# client = OpenAI(base_url="http://127.0.0.1:8080/v1/", api_key="ollama")
๐ฌ INTERACTIVE CHAT
# Chat with a remote model
./launcher.sh chat --target 1.2.3.4:11434
# Batch execute prompts from file
./launcher.sh chat --batch prompts.txt --target 1.2.3.4:11434
# Chat commands: /help, /models, /clear, /model N, /system, /temp, /raw, /info, /export
๐ DEEP FINGERPRINT
# Fingerprint a single instance
./launcher.sh fingerprint --target 1.2.3.4:11434
# Fingerprint ALL found instances
./launcher.sh fingerprint --all
Checks 18 endpoints including: /api/tags, /api/version, /api/ps, /api/show, /api/blobs, /api/pull, /api/push, /api/create, /api/delete, /api/copy, /api/embed, /v1/models, /docs, /metrics, /debug, /health, /status
๐ฆ MODEL OPERATIONS
# List models with details
./launcher.sh models --target 1.2.3.4:11434
# Pull model info/config
./launcher.sh models --pull 1.2.3.4:11434 llama3.2
# Deep analyze a model
./launcher.sh models --analyze 1.2.3.4:11434 llama3.2
๐ EXPORT
./launcher.sh export --format html # Beautiful HTML report with geo & vuln stats
./launcher.sh export --format csv # CSV for analysis
./launcher.sh export --format json # Raw JSON
./launcher.sh export --format all # All formats
๐ค AUTO-PWN (One Command)
# Scan โ Vuln Scan โ Geolocate โ Proxy โ Report
./launcher.sh autopwn --random 5000
๐ก MONITOR DAEMON
# Continuous scanning (CLI only, no web)
./launcher.sh monitor --interval 3600 --random 5000 --notify --export html
โ๏ธ CONFIGURATION
evilollama config --show # Show config
evilollama config --telegram-token "BOT_TOKEN" # Telegram alerts
evilollama config --telegram-chat "CHAT_ID"
evilollama config --find-chat-id # Auto-detect chat ID
evilollama config --shodan-key "API_KEY"
evilollama config --set scan_timeout 3 # Custom setting
๐ SAMPLE OUTPUT
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฆ EVIL-OLLAMA v3.0 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[12:30:01] [โถ STEP ] Step 1/4: Scanning 5000 random IPs...
[12:30:01] [๐ฏ INFO] Scanning 5000 hosts on port 11434 (concurrency: 1000)
[โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ] 45% | 2250/5000 | 850/s | Found: 12 | ETA: 3.2s
[12:30:07] [๐ฆ FOUND] 203.0.113.42:11434 | v0.1.32 | llama3.2, mistral, codellama
[12:30:07] [๐ฆ FOUND] 198.51.100.73:11434 | v0.3.0 | llama3.1, nomic-embed-text
[...]
[12:30:10] [โถ STEP ] Step 2/4: Geolocating...
[12:30:10] [๐ GEO ] 203.0.113.42 โ San Francisco, US | DigitalOcean
[12:30:11] [๐ GEO ] 198.51.100.73 โ London, UK | Hetzner
[12:30:11] [โถ STEP ] Step 3/4: Vulnerability scanning...
[12:30:11] [๐ด VULN] 203.0.113.42:11434
๐ [HIGH ] No Authentication Required
๐ [CRITICAL] Potential RCE via Crafted Model Import (CVE-2024-37032)
๐ [HIGH ] Unauthenticated Model Creation
[12:30:14] [โถ STEP ] Step 4/4: Generating report...
[12:30:14] [๐ OK ] HTML report saved: evilollama_report.html (45.2 KB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ AUTO-PWN COMPLETE โ
โ Instances found: 7 โ
โ Total models: 23 โ
โ Vulnerabilities: 12 โ
โ CVEs detected: 5 โ
โ Report: evilollama_report.html โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[12:30:15] [๐ PROXY] Proxy โ 127.0.0.1:9090 โ 203.0.113.42:11434
๐ก๏ธ CVE DATABASE
| CVE ID | Severity | CVSS | Description | Affected Versions |
|---|---|---|---|---|
| CVE-2024-37032 | CRITICAL | 9.1 | RCE via crafted model file (path traversal) | < 0.1.47 |
| CVE-2024-39720 | HIGH | 7.5 | Prompt injection via crafted system prompt | < 0.1.34 |
| CVE-2024-39721 | HIGH | 7.5 | SSRF in model pulling mechanism | < 0.1.34 |
| CVE-2024-39722 | HIGH | 7.3 | Path traversal in API endpoints | < 0.1.34 |
| CVE-2025-23104 | HIGH | 8.2 | API authentication bypass in /api/pull | < 0.3.0 |
๐ REQUIREMENTS
pip install aiohttp flask requests
โ ๏ธ LEGAL DISCLAIMER
For authorized security testing only. Use only on systems you own or have explicit written permission to test. Unauthorized scanning or exploitation is ILLEGAL.
Author: @faizalx1337 ยท No liability for misuse.
EVIL-OLLAMA v3.0 โ github.com/evogix/Evil-Ollama ยท For authorized security research & bug bounty purposes only
Metadata
Release files for evil-ollama 3.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| evil_ollama-3.3.0.tar.gz | 47.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| evil_ollama-3.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.9 kB
Release files / evil_ollama-3.3.0.tar.gz
| Download URL | evil_ollama-3.3.0.tar.gz |
|---|---|
| Size | 47.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de67d64684cb5093f206a7bad0d1479f1b7a0dacccdb1776ff539950a7436d52
|
|
BLAKE2b-256 checksum How to use checksums |
cb8b6ad2d2195e1e0060e77e5bb4e9a8d92bafa3ad6abfb9dc674b3f9cba67cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.14.6
|
Release files / evil_ollama-3.3.0-py3-none-any.whl
| Download URL | evil_ollama-3.3.0-py3-none-any.whl |
|---|---|
| Size | 47.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39cda420ca307bf6fc8876cafa93a282a17cade394e1a7e3b4853002894546c3
|
|
BLAKE2b-256 checksum How to use checksums |
fd9cb4b5f53e73a3fa85a98355677d9906a195a2c91b06362607e17603c2b0b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.14.6
|