Repository avatar
AI Tools
v0.1.1
active

hackforge

io.github.Linutesto/hackforge

Local-model H4CK1NG suite: scan, discover, sandbox-reproduce attacks, report. 7 forge_* MCP tools.

Documentation

⚒ hackforge — H4CK1NG suite on local models

mcp-name: io.github.Linutesto/hackforge

Autonomous web scanner that scans → discovers → reproduces attacks in a sandbox → reports with fixes. The brain is Qwen4 (35B-A3B) on the local llama.cpp unit (:8093); deterministic probes do the heavy lifting so the LLM only spends tokens on hypotheses and verdicts. Built for claude/codex/local agents to drive via CLI (all JSON out).

forge.py            CLI entry (also: forge tool <name> for agents)
forge/llm.py        Qwen4 client (:8093, OpenAI-compatible, think off)
forge/recon.py      fetch + fingerprint + well-known surface (llms.txt, agent.json, .env, .git…)
forge/probes.py     12 deterministic probe families → findings w/ severity+fix
forge/attack.py     LLM attack planner → hypotheses as python snippets
forge/sandbox.py    isolated subprocess execution, EV: evidence lines
forge/report.py     markdown reports + findings.jsonl + LATEST.md aggregate
forge/runner.py     scan_target / patrol (seed list + link discovery)
forge/server.py     dashboard + JSON API on :8900
forge/mcp_server.py stdio MCP server (7 tools for Claude Code + any MCP client)
targets/seed.txt    seed list (edit me)
reports/            generated reports, findings.jsonl, last-patrol.json
research/           WEB_MAP.md from the web scourage

Usage

python3 ~/hackforge/forge.py scan https://yandesbiens.com     # one target
python3 ~/hackforge/forge.py patrol --limit 8                  # autonomous wave
python3 ~/hackforge/forge.py serve --port 8900                 # dashboard+API
python3 ~/hackforge/forge.py tool list                         # agent tools
python3 ~/hackforge/forge.py tool scan --json '{"url":"https://x.tld","no_attack":true}'

Env: FORGE_LLM (default http://127.0.0.1:8093/v1/chat/completions), FORGE_MODEL (default qwen4).

Score

100 − (high×15 + medium×7 + low×3 + info×1), floored at 0. Findings carry severity / evidence / fix; attacks carry REPRODUCED / NOT_REPRODUCED / INCONCLUSIVE verdicts judged by the local model from sandbox evidence.

MCP server

forge/mcp_server.py speaks MCP over stdio (hand-rolled JSON-RPC 2.0 — no mcp package needed, stdlib + httpx only) so Claude Code and any MCP client can drive the suite natively. Same 7 tools as forge tool, dispatched in-process:

MCP toolforge toolnotes
forge_reconreconfetch + fingerprint
forge_probesprobesscore + findings
forge_attacksattacksLLM plan + sandbox, ~2-5 min
forge_scanscanfull run + report file, ~5 min
forge_patrolpatrolwave over targets/seed.txt
forge_findingsfindingsrecent findings.jsonl rows
forge_targetstargetsseed list

Tools are forge_-prefixed so multiple MCP servers can coexist in one client without name collisions (bare names also accepted).

python3 ~/hackforge/forge/mcp_server.py   # stdio; logs go to stderr

Add to Claude Code — project-local .mcp.json (recommended, commit it):

{
  "mcpServers": {
    "hackforge": {
      "type": "stdio",
      "command": "python3",
      "args": ["/home/yan/hackforge/forge/mcp_server.py"]
    }
  }
}

or globally: claude mcp add hackforge -- python3 /home/yan/hackforge/forge/mcp_server.py. Then /mcp in Claude Code shows the 7 forge_* tools.

forge_attacks / forge_scan / forge_patrol are synchronous and can take 1-10 minutes — use a generous client timeout. Env: FORGE_LLM, FORGE_MODEL (same as the rest of the suite; Qwen4 at :8093 is shared, so the LLM phase stays gentle).

Registry: listed on the official MCP registry (registry.modelcontextprotocol.io) as io.github.Linutesto/hackforge — repo https://github.com/Linutesto/hackforge.

PYPI
hackforge
Install Command
pip install hackforge