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

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.1
File Size Uploaded Provenance Actions
hackforge-0.1.1.tar.gz 190.0 kB Without provenance Details for hackforge-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 226.0 kB

Release files / hackforge-0.1.1.tar.gz

Download URL hackforge-0.1.1.tar.gz
Size 190.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2b474496a1da9bb5f0a5426f22d9b04c1f0514e5cf45a362775a4fad28c65ea1
BLAKE2b-256 checksum
How to use checksums
85a9e9ada47b90612b21df0dbe32f3eb692231211466a22d59672ee366e4a1dc
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.1-py3-none-any.whl

Download URL hackforge-0.1.1-py3-none-any.whl
Size 36.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18207abdecc8f80343a8f6630276a7d9b448af1f71e3c050b9c6181664e2ca01
BLAKE2b-256 checksum
How to use checksums
6ebc0dc5cc36e933fb217dd582b2a49b74c6e55be5953ff5415d60266dae4c19
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.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.

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