ExaAiAgent
Advanced AI-Powered Cybersecurity Agent for Comprehensive Penetration Testing
What's New in v3.0.1
- Target scope enforced before tool execution when
EXAAI_TARGETSis set. - Agents have token, tool-call, and spawn budgets to prevent unbounded consumption.
- CVE intelligence joins EPSS, CISA KEV, and OSV with provenance; findings require independent verification.
- Unified reports and the deterministic benchmark harness are included.
- New prompt modules: OWASP LLM Top 10 2025, supply-chain/SBOM triage, exceptional-conditions fail-open, grounded CVE verification.
- Node pinned to 22 LTS, CI lint/test/type-check/smoke all green.
Previous versions (brief history)
| Version | Summary |
|---|---|
| v3.0.0 | Anti-hallucination grounding (evidence_id + EvidenceStore), pinned CVE KB, sandbox hardening (127.0.0.1, no ~/.kube mount, no-new-privileges), attack graph planning, conf-v1 validation, reporting v3 (SARIF/CSV/HTML), single-sourced version. |
| v2.3.2 | K8s scanner tool registration fix, run persistence (exaai_runs/<run>/), code-quality/lint pass, SKILL.md expansion. |
| v2.2.5 | CI on PRs, import-safe tool server, multi-tool LLM responses, prompt-module merging, TUI target queue, smarter prompt resolution. |
| v2.2.2 - v2.0 | Recon modules (subdomain/port/fingerprint), K8s/Azure/GCP prompt injection, React2Shell CVE detection, auto-discovery, install.sh. |
Details: see CHANGELOG.md, MIGRATION-v3.md, docs/.
ExaAiAgent Overview
ExaAiAgent is an elite AI-powered cybersecurity agent that acts like a real penetration tester - running your code dynamically, finding vulnerabilities, and validating them through actual proof-of-concepts. Built for developers and security teams who need fast, accurate security testing.
Key Capabilities:
- Full hacker toolkit out of the box
- Teams of agents that collaborate and scale
- Real validation with PoCs, not false positives
- Developer‑first CLI with actionable reports
- Auto‑fix & reporting to accelerate remediation
- Multi-LLM Support - OpenAI, Anthropic, Gemini, local models
- Cloud & Container Security testing capabilities
- Smart Module Loading - Auto-detects and loads relevant modules
Use Cases
- Application Security Testing - Detect and validate critical vulnerabilities
- Rapid Penetration Testing - Get pentests done in hours, not weeks
- Bug Bounty Automation - Automate research and generate PoCs
- CI/CD Integration - Block vulnerabilities before production
- API Security Testing - REST, GraphQL, gRPC security analysis
- Cloud Security - AWS, Azure, GCP configuration review
Quick Start
Prerequisites:
- Docker (running)
- Python 3.12+
- An LLM provider (OpenAI, Anthropic, OpenRouter, Ollama, or any compatible provider)
Installation & First Scan
# Install ExaAiAgent
# Method 1: Automated Script (Recommended)
pip install exaai-agent
# Method 2: pipx
pipx install exaai-agent
# Configure your AI provider (choose one)
# Option 1: OpenAI
export EXAAI_LLM="openai/gpt-5"
export LLM_API_KEY="your-openai-key"
# Option 2: Anthropic
export EXAAI_LLM="anthropic/claude-sonnet-4-5"
export LLM_API_KEY="your-anthropic-key"
# Option 3: OpenRouter (access multiple models)
export EXAAI_LLM="openrouter/openai/gpt-5"
export LLM_API_KEY="your-openrouter-key"
export LLM_API_BASE="https://openrouter.ai/api/v1"
# Option 4: Ollama (local models)
export EXAAI_LLM="ollama/llama3"
export LLM_API_BASE="http://localhost:11434"
# Run your first security assessment (auto-detects modules!)
exaai --target https://your-app.com
Features
Agentic Security Tools
ExaAiAgent agents come equipped with a comprehensive security testing toolkit:
- Full HTTP Proxy - Request/response manipulation and analysis; captured traffic exports to HAR (
exaaiagnt/tools/har_io.py:import_har/export_har) and records evidence for the grounding gate - Proxy linkage - Tools declare
proxy_required/allowed_prompt_modules/blockedin the registry manifest; the executor enforces scope, blocklist, and proxy requirements before execution (exaaiagnt/tools/registry.py,exaaiagnt/tools/proxy_env.py,exaaiagnt/tools/executor.py) - Blocklist enforcement - Blocked paths, modules, and URL segments are denied with
ScopeDecisionevidence from the executor, command guard, and proxy manager (exaaiagnt/safety/blocklist.py) - Tool manifest -
get_tool_manifest/tools_for_prompt_moduleexpose per-tool manifest fields for prompt scoping and auditing - Browser Automation - Multi-tab browser for XSS, CSRF, auth flows
- Browser JS analysis - Offline DOM XSS, postMessage origin, Service Worker, and JS bundle endpoint/secret extraction (
exaaiagnt/tools/browser_js_analysis.py:analyze_browser_js,analyze_js_bundle) - Terminal Environments - Interactive shells for command execution
- Python Runtime - Custom exploit development and validation
- Reconnaissance - Automated OSINT and attack surface mapping
- Code Analysis - Static and dynamic analysis capabilities
- API Fuzzing - Advanced REST/GraphQL API testing
- Coordination - Persistent
RunStatesave/load/resume, task queue with bounded depth, token/cost budgets, and heartbeat-vs-activity stuck detection, exposed ascoordination_*tools (exaaiagnt/coordination/state.py,exaaiagnt/tools/coordination/) - LLM/MCP/RAG tests - Offline OWASP LLM Top 10 (2025) checkers: prompt-injection detection, system-prompt/secret leak detection, MCP server manifest audit, RAG provenance and cross-tenant checks, exposed as
audit_mcp_manifest_tool,detect_prompt_injection_tool,evaluate_rag_corpus_tool,harden_finding_text_tool(exaaiagnt/llm_tests/mcp_rag.py,exaaiagnt/tools/llm_tests/)
Comprehensive Vulnerability Detection
ExaAiAgent identifies and validates a wide range of security vulnerabilities:
| Category | Vulnerabilities |
|---|---|
| Access Control | IDOR, privilege escalation, auth bypass |
| Injection | SQL, NoSQL, Command, GraphQL injection |
| Server-Side | SSRF, XXE, deserialization flaws |
| Client-Side | XSS, prototype pollution, DOM vulnerabilities |
| Business Logic | Race conditions, workflow manipulation |
| Authentication | JWT vulnerabilities, OAuth/OIDC flaws, session management |
| WebSocket | CSWSH, message injection, DoS |
| Infrastructure | Subdomain takeover, misconfigurations |
| WAF Bypass | Encoding, smuggling, header manipulation |
Graph of Agents
Advanced multi-agent orchestration for comprehensive security testing:
- Distributed Workflows - Specialized agents for different attacks
- Scalable Testing - Parallel execution for fast coverage
- Dynamic Coordination - Agents collaborate and share discoveries
- Persistent coordination state -
RunStatesave/load/resume, bounded task queue, budget guard, and stuck detection viacoordination_*tools (exaaiagnt/coordination/state.py) - Verification hardening -
verify_findingdowngrades a would-beconfirmedfinding tosuspectedon high-severity injection, secret leak, or cross-tenant RAG evidence; reports carry additivehardeningmetadata - MCP manifest audit -
audit_mcp_manifest_toolaudits an MCP server manifest for broad permissions, dangerous tools, injection, and missing auth/timeout
Usage Examples
Basic Usage
# Scan a local codebase
exaai --target ./app-directory
# Security review of a GitHub repository
exaai --target https://github.com/org/repo
# Black-box web application assessment
exaai --target https://your-app.com
Smart Auto-Loading (New in v2.0!)
# GraphQL endpoint - auto-loads graphql_security
exaai --target https://api.example.com/graphql
# WebSocket - auto-loads websocket_security
exaai --target wss://chat.example.com/socket
# OAuth endpoint - auto-loads oauth_oidc
exaai --target https://auth.example.com/oauth/authorize
# Subdomain recon - auto-loads subdomain_takeover
exaai --target example.com --instruction "enumerate subdomains"
Advanced Testing Scenarios
# Grey-box authenticated testing
exaai --target https://your-app.com --instruction "Perform authenticated testing using credentials: user:pass"
# Multi-target testing (source code + deployed app)
exaai -t https://github.com/org/app -t https://your-app.com
# With specific modules (overrides auto-detection)
exaai --target https://api.example.com --prompt-modules graphql_security,waf_bypass
# Lightweight mode (reduced token consumption)
export EXAAI_LIGHTWEIGHT_MODE=true
exaai --target https://example.com --instruction "quick security scan"
Headless Mode
Run ExaAiAgent programmatically without interactive UI:
exaai -n --target https://your-app.com
CI/CD (GitHub Actions)
name: exaai-security-test
on:
pull_request:
jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ExaAiAgent
run: curl -sSL https://raw.githubusercontent.com/hleliofficiel/ExaAiAgent/main/install.sh | bash
- name: Run ExaAiAgent
env:
EXAAI_LLM: ${{ secrets.EXAAI_LLM }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
run: exaai -n -t ./
Configuration
# Required
export EXAAI_LLM="openai/gpt-5"
export LLM_API_KEY="your-api-key"
# Optional - Performance tuning
export EXAAI_LIGHTWEIGHT_MODE=true # Reduced token consumption
export EXAAI_MAX_TOKENS=2048 # Max output tokens
export LLM_API_BASE="your-api-base" # For local models
export PERPLEXITY_API_KEY="key" # For search capabilities
Recommended Models:
- OpenAI GPT-5 (
openai/gpt-5) - Anthropic Claude Sonnet 4.5 (
anthropic/claude-sonnet-4-5) - Google Gemini 3.0 (
gemini/gemini-2.0-flash)
Available Security Modules
Vulnerability Modules
| Module | Description |
|---|---|
sql_injection |
SQL/NoSQL injection testing |
xss |
Cross-site scripting attacks |
ssrf |
Server-side request forgery |
xxe |
XML external entity attacks |
rce |
Remote code execution |
idor |
Insecure direct object reference |
authentication_jwt |
Auth & JWT vulnerabilities |
business_logic |
Business logic flaws |
csrf |
Cross-site request forgery |
race_condition |
Race condition exploits |
graphql_security |
GraphQL-specific attacks |
websocket_security |
WebSocket vulnerabilities |
oauth_oidc |
OAuth2/OIDC flaws |
waf_bypass |
WAF bypass techniques |
subdomain_takeover |
Subdomain takeover |
prompt_injection |
AI/LLM prompt injection attacks |
kubernetes_security |
NEW! K8s RBAC & Pod Security auditing |
subdomain_enumeration |
NEW! OSINT-based subdomain discovery |
port_scanning |
NEW! Service discovery & port auditing |
technology_fingerprinting |
NEW! Web tech stack identification |
Changelog
Full history is in CHANGELOG.md. Latest release: v3.0.1 (see "What's New in v3.0.1" above).
Troubleshooting
Troubleshooting
Problem: "LLM Connection Failed" or Model Not Found
Modern models (like gemini-3-pro-preview) require the latest version of litellm to be recognized correctly.
Solution: Update LiteLLM
pip install -U litellm
Linux/Debian Users (Externally Managed Environment):
If you encounter permission errors or "externally-managed-environment", you may need to use a virtual environment (venv) or force a user install:
# Option 1: Virtual Environment (Recommended for Servers)
python3 -m venv venv
source venv/bin/activate
pip install exaai-agent
# Option 2: Force User Install
pip install -U litellm --user --break-system-packages
Contributing
We welcome contributions! Check out our Contributing Guide.
Support the Project
Love ExaAiAgent? Give us a on GitHub!
Acknowledgements
ExaAiAgent builds on incredible open-source projects like LiteLLM, Caido, ProjectDiscovery, Playwright, and Textual.
Metadata
Release files for exaai-agent 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exaai_agent-3.0.1.tar.gz | 405.4 kB | With provenance | Details for exaai_agent-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exaai_agent-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for exaai_agent-3.0.1-py3-none-any.whl |
Total release size: 912.2 kB
Release files / exaai_agent-3.0.1.tar.gz
| Download URL | exaai_agent-3.0.1.tar.gz |
|---|---|
| Size | 405.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82f99487263f78e07ec9720735d20254d01163fdeb5bcdf1ac709a3a4739b7b6
|
|
BLAKE2b-256 checksum How to use checksums |
985c57feccc16850e098ea6e3704346d5f51a317afe3a3eb50ba49f8b2a47834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / exaai_agent-3.0.1-py3-none-any.whl
| Download URL | exaai_agent-3.0.1-py3-none-any.whl |
|---|---|
| Size | 506.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f291652fd444138923b9871395075808590de70014fb104a49f83e8832c284ee
|
|
BLAKE2b-256 checksum How to use checksums |
80a83a3e8ba00e5003c687e35e6d00458446fefd4c2cab145e5eab7941ad288b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for exaai-agent 3.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for exaai_agent-3.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.