Are you the author? Sign in to claim
A fully local, autonomous AI penetration-testing agent powered by Gemma 4-12B and a Flask MCP tool server. Runs recon, a
A fully local, autonomous AI penetration-testing agent — Gemma 4-12B driving a 29-tool arsenal through recon, attack, and reporting, exposed as a standard Model Context Protocol (MCP) server. No cloud, no API keys.
What It Does · Tools · Architecture · Stack · Quickstart · Contributing
HALO is an autonomous security agent that runs inside a Linux environment driven by a local LLM — Gemma 4-12B (uncensored / abliterated) served through LM Studio. It plans, runs reconnaissance, chains attacks based on what it finds, and writes a professional pentest report on its own. Everything runs locally: no cloud, no API keys, nothing leaves your machine.
One word starts an engagement: engage.
29 tools sit behind the agent's decision loop, all routed through the same
failure-caching layer. They are defined once in the TOOLS schema registry in
halo_tools.py and served over both transports (MCP and HTTP).
Recon & OSINT
| Tool | Purpose |
|---|---|
run_subfinder | Subdomain enumeration |
run_httpx | HTTP probing and fingerprinting |
run_katana | Web crawling |
run_sherlock | Username OSINT across 90+ platforms |
run_shodan | Internet-exposure intelligence lookups |
run_phoneinfoga | Phone-number OSINT |
run_cloudfox | Cloud-infrastructure enumeration |
run_wafw00f | WAF / security-solution fingerprinting |
Scanning
| Tool | Purpose |
|---|---|
run_masscan | Fast port discovery |
run_nmap | Deep service/version scanning |
run_nikto | Web vulnerability scanning |
run_nuclei | Template-based vulnerability scanning |
run_netstat | Network connection analysis |
Web & Fuzzing
| Tool | Purpose |
|---|---|
run_gobuster | Web directory brute forcing |
run_ffuf | Web fuzzing |
run_curl | HTTP request testing |
run_wget | File retrieval |
Exploitation
| Tool | Purpose |
|---|---|
run_sqlmap | SQL injection testing |
run_searchsploit | Exploit lookup |
run_exploit | Sandboxed execution of custom PoC scripts |
run_setoolkit | Social-engineering toolkit |
Credentials
| Tool | Purpose |
|---|---|
run_hydra | Credential brute forcing |
run_ncrack | Network authentication cracking |
run_medusa | Fast parallel brute forcing |
run_john | Hash cracking |
Enumeration & System
| Tool | Purpose |
|---|---|
run_enum4linux | SMB / Samba enumeration |
run_command | Arbitrary command execution |
read_file | Read file contents |
write_file | Write output to files |
A single tool engine (halo_tools.py) owns the arsenal and its schemas; two
thin transports sit on top of it, so the tools are defined exactly once:
agent_loop.py ──HTTP─► tool_server.py ─┐
├─► halo_tools.py ──► security tools
MCP clients ──stdio► mcp_server.py ──┘ (29-tool engine +
schema registry)
│
├─► agent_cache.py (persistent negative-experience cache)
├─► skills.py (adaptive playbook injection)
└─► report_generator.py (auto HTML pentest report on exit)
mcp_server.py — a spec-compliant Model Context Protocol server
(stdio, JSON-RPC 2.0). Point any MCP client (Claude Desktop, IDE agents,
inspectors) or an MCP registry at it to use HALO's arsenal as standard tools.tool_server.py — the local Flask HTTP tool server (port 8000) the
autonomous agent loop drives.// e.g. an MCP client config
{
"mcpServers": {
"halo": { "command": "python3", "args": ["/abs/path/to/mcp_server.py"] }
}
}
A ready-to-submit registry manifest lives in server.json.
Engagements are coordinated by a set of specialist agents that pass a shared
message schema (agent_schema.py):
| Agent | Role |
|---|---|
planner_agent.py | Turns a goal into an ordered plan |
orchestrator_agent.py | Routes tasks to the right specialist |
vuln_discovery_agent.py | Surfaces candidate vulnerabilities |
attacker_agent.py | Branches into vuln-class specialists (SQLi, brute force, IDOR, SSRF, XSS, auth) |
validator_agent.py | Confirms findings against real evidence before they count |
debugger_agent.py | Diagnoses failed tool runs and adjusts |
The negative-experience cache fingerprints every tool call. A call that fails gets one retry; fail twice and it is blacklisted, so the agent moves on to a more practical tool for the job. Over an engagement the agent structures its own trial-and-error learning — building context, avoiding repeated dead ends, and escalating intelligently — rather than re-running what it has already proven doesn't work.
HALO was built solo, from the ground up, in under six months by a self-taught developer and security researcher. The multi-agent core came together one specialist at a time, each verified against a real target before moving on:
agent_schema.py) so the agents can talk to each otherFrom there the arsenal grew to 29 tools, and the negative-experience cache turned trial-and-error into persistent learning across sessions. Active development continues — new capabilities are pushed regularly.
See docs/QUICKSTART.md for full setup. In short:
git clone https://github.com/XenoCoreGiger31/GEMMA-by-GOOGLE.git
cd GEMMA-by-GOOGLE
python3 -m pip install -r requirements.txt
cp engagement.example.yaml engagement.yaml # then fill in authorization + scope_targets
python3 tool_server.py # terminal 1 — HTTP tool server on port 8000
python3 agent_loop.py # terminal 2 — the agent
>>> engage 203.0.113.3 # full autonomous recon + attack
>>> run nmap on 10.0.0.1 # single-goal query
>>> exit # triggers HTML report generation
Note: endpoints and paths default to a standard local setup (LM Studio on
localhost:1234, HTTP tool server onlocalhost:8000). Override any of them with theHALO_*environment variables — see the environment overrides table. A few author-specific log/cache path defaults remain inagent_cache.pyandtool_server.py; the env vars cover those too.
agent_loop.pywill not start withoutengagement.yaml— it's the authorization + scope gate every tool call passes through, not optional config. See step 5 of the Quickstart.
The unit tests use Python's built-in unittest — no extra dependencies:
python3 -m unittest
Contributions from the security, AI, and Python communities are welcome — see CONTRIBUTING.md. Star the repo if it's useful to you, or open a PR and let's build something together.
Actively developed by an independent, self-taught developer and security researcher. New capabilities are pushed regularly.
This is a community project by an independent developer. It is not affiliated with, endorsed by, or sponsored by Google LLC. "Gemma" is a trademark of Google LLC.
⚠️ Content warning: The referenced model is heavily abliterated and will respond to sensitive requests without the usual guardrails. Use responsibly, in appropriate environments only.
🔒 Legal warning: This tool is intended strictly for authorized penetration testing and security research on systems you own or have explicit written permission to test. Unauthorized use is illegal.
Released under the MIT License.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows