Skip to main content

⚒ 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 tool forge tool notes
forge_recon recon fetch + fingerprint
forge_probes probes score + findings
forge_attacks attacks LLM plan + sandbox, ~2-5 min
forge_scan scan full run + report file, ~5 min
forge_patrol patrol wave over targets/seed.txt
forge_findings findings recent findings.jsonl rows
forge_targets targets seed 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.

Metadata

Release files for hackforge 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hackforge 0.1.0
File Size Uploaded Provenance Actions
hackforge-0.1.0.tar.gz 187.3 kB Without provenance Details for hackforge-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hackforge 0.1.0
File Interpreter ABI Platform Actions
hackforge-0.1.0-py3-none-any.whl Python 3 none any Details for hackforge-0.1.0-py3-none-any.whl

Total release size: 223.3 kB

Release files / hackforge-0.1.0.tar.gz

Download URL hackforge-0.1.0.tar.gz
Size 187.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fff1df5756c5328fffbe68e678472b02652789d3c334bcf7e7c7beb697b96b8d
BLAKE2b-256 checksum
How to use checksums
3b161587d3d5979714e287fee6cae918bfd5dbb521f3bd4c12c641ff111dc189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / hackforge-0.1.0-py3-none-any.whl

Download URL hackforge-0.1.0-py3-none-any.whl
Size 36.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
214786891952590263d49e513c27cfbead2f06c4304c9370669ef515ec990f75
BLAKE2b-256 checksum
How to use checksums
472c471b21279ea9c641e8e72d083cfae4c9228140f12ce395578c40eb2398ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for hackforge 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page