hackforge 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hackforge-0.1.0/.gitignore +5 -0
- hackforge-0.1.0/FINAL_REPORT.md +154 -0
- hackforge-0.1.0/PKG-INFO +101 -0
- hackforge-0.1.0/README.md +92 -0
- hackforge-0.1.0/band/Containerfile +29 -0
- hackforge-0.1.0/band/FACTORY.md +110 -0
- hackforge-0.1.0/band/README.md +53 -0
- hackforge-0.1.0/band/SUBMISSION.md +87 -0
- hackforge-0.1.0/band/entrypoint.py +135 -0
- hackforge-0.1.0/band/fixture/index.html +13 -0
- hackforge-0.1.0/band/mandates/archivist.md +38 -0
- hackforge-0.1.0/band/mandates/builder.md +40 -0
- hackforge-0.1.0/band/mandates/foreman.md +42 -0
- hackforge-0.1.0/band/mandates/inspector.md +43 -0
- hackforge-0.1.0/forge/__init__.py +6 -0
- hackforge-0.1.0/forge/attack.py +102 -0
- hackforge-0.1.0/forge/bridge.py +281 -0
- hackforge-0.1.0/forge/bridge.service +20 -0
- hackforge-0.1.0/forge/gemini.py +147 -0
- hackforge-0.1.0/forge/llm.py +75 -0
- hackforge-0.1.0/forge/mcp_server.py +210 -0
- hackforge-0.1.0/forge/probes.py +265 -0
- hackforge-0.1.0/forge/recon.py +245 -0
- hackforge-0.1.0/forge/report.py +117 -0
- hackforge-0.1.0/forge/runner.py +103 -0
- hackforge-0.1.0/forge/sandbox.py +41 -0
- hackforge-0.1.0/forge/server.py +157 -0
- hackforge-0.1.0/forge.py +193 -0
- hackforge-0.1.0/hackathon/FACTORY.md +60 -0
- hackforge-0.1.0/hackathon/NOTES.md +28 -0
- hackforge-0.1.0/hackathon/README.md +41 -0
- hackforge-0.1.0/hackathon/mandates/archivist.md +38 -0
- hackforge-0.1.0/hackathon/mandates/builder.md +40 -0
- hackforge-0.1.0/hackathon/mandates/foreman.md +42 -0
- hackforge-0.1.0/hackathon/mandates/inspector.md +43 -0
- hackforge-0.1.0/hackforge.service +19 -0
- hackforge-0.1.0/pyproject.toml +25 -0
- hackforge-0.1.0/reports/20261205-1041-yandesbiens_com.md +38 -0
- hackforge-0.1.0/reports/20261205-1042-yandesbiens_com.md +104 -0
- hackforge-0.1.0/reports/20261205-1103-yandesbiens_com.md +98 -0
- hackforge-0.1.0/reports/20261205-1104-a2a_yandesbiens_com.md +108 -0
- hackforge-0.1.0/reports/20261205-1105-tikaitok_yandesbiens_com.md +122 -0
- hackforge-0.1.0/reports/20261205-1106-httpbin_org.md +120 -0
- hackforge-0.1.0/reports/20261205-1108-quotes_toscrape_com.md +106 -0
- hackforge-0.1.0/reports/20261205-1109-smith_langchain_com.md +101 -0
- hackforge-0.1.0/reports/20261205-1126-yandesbiens_com.md +94 -0
- hackforge-0.1.0/reports/20261205-1128-a2a_yandesbiens_com.md +100 -0
- hackforge-0.1.0/reports/20261205-1129-tikaitok_yandesbiens_com.md +115 -0
- hackforge-0.1.0/reports/20261205-1130-textfiles_com.md +120 -0
- hackforge-0.1.0/reports/20261205-1130-www_wiby_org.md +56 -0
- hackforge-0.1.0/reports/20261205-1130-zoomquilt_org_.md +47 -0
- hackforge-0.1.0/reports/20261205-1131-trypap_com_.md +41 -0
- hackforge-0.1.0/reports/20261205-1135-theuselessweb_com.md +93 -0
- hackforge-0.1.0/reports/20261205-1138-pointerpointer_com.md +113 -0
- hackforge-0.1.0/reports/20261205-1141-httpbin_org.md +117 -0
- hackforge-0.1.0/reports/20261205-1146-quotes_toscrape_com.md +97 -0
- hackforge-0.1.0/reports/20261205-1151-gemini___gemini_circumlunar_space_.md +23 -0
- hackforge-0.1.0/reports/20261205-1152-the-internet_herokuapp_com.md +108 -0
- hackforge-0.1.0/reports/20261205-1158-telehack_com.md +100 -0
- hackforge-0.1.0/reports/20261205-1159-scanme_nmap_org.md +134 -0
- hackforge-0.1.0/reports/20261205-1202-jsonplaceholder_typicode_com.md +109 -0
- hackforge-0.1.0/reports/20261205-1202-www_staggeringbeauty_com_.md +124 -0
- hackforge-0.1.0/reports/20261205-1204-dummyjson_com.md +100 -0
- hackforge-0.1.0/reports/20261205-1204-fourmilab_ch.md +116 -0
- hackforge-0.1.0/reports/20261205-1204-gemini___gemini_circumlunar_space_.md +23 -0
- hackforge-0.1.0/reports/20261205-1206-agents_md.md +106 -0
- hackforge-0.1.0/reports/20261205-1206-www_w3_org_History_19921103-hypertext_hypertext_WWW_TheProje.md +85 -0
- hackforge-0.1.0/reports/20261205-1208-portal_mozz_us_gemini_gemini_circumlunar_space_capcom_.md +97 -0
- hackforge-0.1.0/reports/20261205-1537-gemini___gemini_circumlunar_space_capcom_.md +82 -0
- hackforge-0.1.0/reports/20261205-1547-gemini___gemini_tuxmachines_org_.md +66 -0
- hackforge-0.1.0/reports/20261205-1559-gemini___idiomdrottning_org_.md +73 -0
- hackforge-0.1.0/reports/20261205-1608-gemini___skyjake_fi_gemlog_.md +73 -0
- hackforge-0.1.0/reports/20261205-1614-gemini___gemi_dev_gemlog_.md +76 -0
- hackforge-0.1.0/reports/20261205-1617-gemini___tobykurien_com_.md +84 -0
- hackforge-0.1.0/reports/20261205-1624-gemini___gemini_cyberbot_space_gemlog_.md +72 -0
- hackforge-0.1.0/reports/20261205-1624-gemini___rawtext_club_~deerbard_deerlog_gmi.md +65 -0
- hackforge-0.1.0/reports/20261205-1625-gemini___foo_zone_gemfeed_.md +81 -0
- hackforge-0.1.0/reports/20261205-1625-gemini___zaibatsu_circumlunar_space_~solderpunk_gemlog_.md +86 -0
- hackforge-0.1.0/reports/20261205-1626-eelslap_com.md +90 -0
- hackforge-0.1.0/reports/20261205-1626-motherfuckingwebsite_com.md +106 -0
- hackforge-0.1.0/reports/20261205-1626-thebestmotherfucking_website.md +102 -0
- hackforge-0.1.0/reports/20261205-1627-binarypiano_com.md +104 -0
- hackforge-0.1.0/reports/20261205-1627-lobste_rs.md +107 -0
- hackforge-0.1.0/reports/20261205-1628-indieweb_org_.md +100 -0
- hackforge-0.1.0/reports/20261205-1628-www_moltbook_com_skill_md.md +95 -0
- hackforge-0.1.0/reports/20261205-1629-jart_dev_.md +95 -0
- hackforge-0.1.0/reports/20261205-1629-maddox_xmission_com.md +103 -0
- hackforge-0.1.0/reports/20261205-1630-stallman_org.md +119 -0
- hackforge-0.1.0/reports/LATEST.md +22 -0
- hackforge-0.1.0/reports/findings.jsonl +467 -0
- hackforge-0.1.0/reports/last-patrol.json +1377 -0
- hackforge-0.1.0/reports/patrol-wave1.log +16 -0
- hackforge-0.1.0/reports/patrol-wave2.log +36 -0
- hackforge-0.1.0/reports/patrol-wave3.log +13 -0
- hackforge-0.1.0/reports/patrol-wave4.log +43 -0
- hackforge-0.1.0/research/ACTIONS.md +76 -0
- hackforge-0.1.0/research/AGENTIC_WEB.md +149 -0
- hackforge-0.1.0/research/DARKWEB.md +118 -0
- hackforge-0.1.0/research/GEMINI_TARGETS.md +48 -0
- hackforge-0.1.0/research/HACKATHON.md +186 -0
- hackforge-0.1.0/research/MONEY.md +146 -0
- hackforge-0.1.0/research/NLNET.md +229 -0
- hackforge-0.1.0/research/POSTS.md +258 -0
- hackforge-0.1.0/research/PRIZES.md +199 -0
- hackforge-0.1.0/research/SECRETS.md +133 -0
- hackforge-0.1.0/research/WEB_MAP.md +101 -0
- hackforge-0.1.0/research/secrets.json +506 -0
- hackforge-0.1.0/server.json +35 -0
- hackforge-0.1.0/targets/seed.txt +35 -0
- hackforge-0.1.0/targets/wave3.txt +6 -0
- hackforge-0.1.0/targets/wave4.txt +30 -0
- hackforge-0.1.0/tools/publish.sh +29 -0
- hackforge-0.1.0/tools/smoke.sh +77 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# hackforge — final report
|
|
2
|
+
|
|
3
|
+
**Date:** 2026-12-05 · **Mission:** scourge the web (vulnerable sites, no-auth chats, AI forums),
|
|
4
|
+
make us known, build a full H4CK1NG suite on local models — autonomous scan → discover →
|
|
5
|
+
reproduce attacks in sandbox → report with fixes + new tooling — then hunt AI islands & secrets.
|
|
6
|
+
|
|
7
|
+
**Headline numbers:** 4 patrol waves · 49 scans (42 unique live targets) · **230 findings** ·
|
|
8
|
+
**73 attacks reproduced** · best score **98/100** — gemini://gemini.circumlunar.space plus 9
|
|
9
|
+
more gemini capsules and www.moltbook.com/skill.md · best HTTP site **95/100** (w3.org
|
|
10
|
+
first-website) · suite lives at
|
|
11
|
+
[github.com/Linutesto/hackforge](https://github.com/Linutesto/hackforge) (public) + Moltbook agent
|
|
12
|
+
registered + Telegraph page published + gemini:// protocol support.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 1. The suite — what got built
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
forge.py (CLI)
|
|
20
|
+
scan URL ──────┐
|
|
21
|
+
patrol ├──► recon ──► probes ──► attack planner ──► sandbox ──► verdict ──► report
|
|
22
|
+
serve :8900 │ (http+ (12 families (Qwen4 via (python3 -I (REPRODUCED/ (.md + findings.jsonl
|
|
23
|
+
tool <name> │ gemini) deterministic) :8093/v1, tmpdir; NOT_REPRODUCED/ + LATEST.md)
|
|
24
|
+
│ JSON hypotheses+ EV: evidence) INCONCLUSIVE)
|
|
25
|
+
forge/bridge.py └─ agent bridge :8901 (OpenAPI shim + chat-completions proxy, in-process tools)
|
|
26
|
+
forge/mcp_server.py — stdio MCP server (7 forge_* tools, hand-rolled JSON-RPC 2.0)
|
|
27
|
+
forge/gemini.py — gemini:// protocol client (TLS :1965, stdlib-only, redirects, gemtext links)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- **Brain:** Qwen4 local model (`qwen38` unit :8093 behind kvgate, alias `qwen4`) — zero API cost.
|
|
31
|
+
- **Sandbox:** LLM-written python snippets run as `python3 -I` in a tmpdir with a
|
|
32
|
+
`TARGET`/`FINAL_URL`/`RECON` prelude; every claim must emit `EV:` evidence lines; a second
|
|
33
|
+
LLM call judges REPRODUCED / NOT_REPRODUCED / INCONCLUSIVE from that evidence.
|
|
34
|
+
- **Score:** `100 − (high×15 + medium×7 + low×3 + info×1)`.
|
|
35
|
+
- **Patrol:** scans `targets/seed.txt`, discovers external hosts from links, one tmux wave at a
|
|
36
|
+
time (`--seeds FILE` added in wave 3).
|
|
37
|
+
- **Services:** `hackforge` :8900 (dashboard+API, tailscale serve root `/`), `hackforge-bridge`
|
|
38
|
+
:8901. LLM timeout raised 300s→900s for queued sessions.
|
|
39
|
+
|
|
40
|
+
## 2. Scan results
|
|
41
|
+
|
|
42
|
+
| Wave | Targets | Findings | Reproduced | Avg score | Notes |
|
|
43
|
+
|---|---|---|---|---|---|
|
|
44
|
+
| 1 | 7 | 31 | 11 | 71.9 | old seeds; 1 dead target (security-header-scan.example.com) |
|
|
45
|
+
| 2 | 17 | 91 | 21 | 75.8 | indie/quirky + classics + w3.org archaeology |
|
|
46
|
+
| 3 | 5 | 27 | 12 | 81.8 | secret-hunter gems |
|
|
47
|
+
| 4 | 20 | 81 | 29 | **88.8** | gemini capsules (10×98/100) + weird-web classics; best wave |
|
|
48
|
+
|
|
49
|
+
Per-target highlights (waves 2–4):
|
|
50
|
+
|
|
51
|
+
- **98/100** gemini://gemini.circumlunar.space (gemini scan, self-signed cert noted) — suite best
|
|
52
|
+
- **98/100** wave-4 gemini sweep: tuxmachines, idiomdrottning, skyjake.fi, gemi.dev, tobykurien.com, rawtext.club, cyberbot.space, zaibatsu (solderpunk), foo.zone + www.moltbook.com/skill.md — all 10 capsules scored 98 (gemini probes cluster 90+ by design: fewer penalty surfaces)
|
|
53
|
+
- **89/100** lobste.rs (best wave-4 HTTP site)
|
|
54
|
+
- **95/100** w3.org 1992 first-website (4/5 reproduced) — best HTTP site
|
|
55
|
+
- **92/100** yandesbiens.com · smith.langchain.com
|
|
56
|
+
- **91/100** telehack.com (3/3 attacks reproduced — websocket endpoint found!)
|
|
57
|
+
- **88/100** dummyjson.com (4/5) · **85** quotes.toscrape.com / trypap.com / theuselessweb.com
|
|
58
|
+
- **84/100** agents.md (Next.js build-manifest leak + data-route enumeration reproduced)
|
|
59
|
+
- **82/100** fourmilab.ch · **81** CAPCOM gemini portal (open-proxy form reproduced)
|
|
60
|
+
- **78/100** a2a.yandesbiens.com / tikaitok.yandesbiens.com / httpbin.org / the-internet /
|
|
61
|
+
jsonplaceholder (4/5)
|
|
62
|
+
- **75** wiby.org · **71** staggeringbeauty.com (directory listing open, http-only) · **68**
|
|
63
|
+
textfiles.com / scanme.nmap.org
|
|
64
|
+
- **0** hackertyper.com — confirmed dead (dropped from seeds)
|
|
65
|
+
|
|
66
|
+
**Finding patterns across the tiny web:** missing security headers dominate (HSTS, CSP,
|
|
67
|
+
Referrer-Policy, X-Content-Type-Options), then open directories/proxies, method-surface leaks,
|
|
68
|
+
and framework build-manifest exposures. Reproduced attacks skew to: internal-link enumeration,
|
|
69
|
+
HTTP method probing, open redirects, open proxies, API-surface enumeration.
|
|
70
|
+
|
|
71
|
+
### Fixes for our sites (dogfood results)
|
|
72
|
+
|
|
73
|
+
| Site | Findings | Fix list |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| yandesbiens.com (92) | CORS `*`, POST form w/o visible CSRF, no robots.txt, no sitemap.xml | restrict CORS to known origins; add CSRF token or verify SameSite cookie; add robots.txt → sitemap.xml |
|
|
76
|
+
| a2a.yandesbiens.com (78) | CSP missing, HSTS missing, Referrer-Policy + nosniff missing, no robots/sitemap | 4 header fixes on the CF worker; add robots.txt |
|
|
77
|
+
| tikaitok.yandesbiens.com (78) | same header quartet + no robots/sitemap; reproduced: api-surface enumeration, CF-access bypass, subdomain path sitemap | same header fixes on CF |
|
|
78
|
+
|
|
79
|
+
Note: findings.jsonl is append-only across waves, so repeated scans of the same target
|
|
80
|
+
accumulate (the wave logs + per-target reports are the deduplicated view).
|
|
81
|
+
|
|
82
|
+
## 3. The web map (scout deliverable)
|
|
83
|
+
|
|
84
|
+
`research/WEB_MAP.md` — 15 registries, 10 forums, 10 AI islands, scan-target candidates,
|
|
85
|
+
8 ranked recommended actions. `research/SECRETS.md` + `secrets.json` — **63 verified entries**
|
|
86
|
+
of the secret web, every one curl-checked before seeding.
|
|
87
|
+
|
|
88
|
+
**TOP 10 GEMS:** CAPCOM (gemini://gemini.circumlunar.space/capcom/), Telehack (telnet+BBS+gemini),
|
|
89
|
+
Staggering Beauty (http-only!), Fourmilab, Kennedy+Delorean (gemini://kennedy.gemi.dev),
|
|
90
|
+
Figma MCP endpoint (mcp.figma.com/mcp — 405-on-GET means alive), Retronaut webring, agents.md,
|
|
91
|
+
Framasoft, Yesterweb (apex only).
|
|
92
|
+
|
|
93
|
+
## 4. AI islands & the gemini space
|
|
94
|
+
|
|
95
|
+
- **gemini:// works from this box** — direct TLS on :1965, no gemini binary needed (the one on
|
|
96
|
+
PATH is gemini-cli). Now first-class in the suite: recon routes gemini:// to a gemtext-aware
|
|
97
|
+
path, probes get gemini-specific checks (body hygiene, TLS cert expiry, capsule surface), and
|
|
98
|
+
the attack planner prompts Qwen4 to write socket-based snippets (httpx can't speak gemini).
|
|
99
|
+
- `research/GEMINI_TARGETS.md` — 30 CAPCOM feeds fetched live and ranked by latest entry;
|
|
100
|
+
**top-5 most active:** gemini.tuxmachines.org (2026-12-05), foo.zone/gemfeed,
|
|
101
|
+
idiomdrottning.org, freeshell.de gemlog, Solderpunk's zaibatsu. ~1/3 of feeds.txt is dead —
|
|
102
|
+
re-verify before wave 4. Gemini probe scores cluster 90+ by design (fewer penalty surfaces);
|
|
103
|
+
real signal there is the attack phase + link graph.
|
|
104
|
+
- AI islands (from the map): Moltbook (live, registered), smith.langchain.com (92),
|
|
105
|
+
agents.md (84), Figma's MCP endpoint, the a2a/Commons mesh, Framasoft, Yesterweb.
|
|
106
|
+
|
|
107
|
+
## 5. Make us known — status
|
|
108
|
+
|
|
109
|
+
| Surface | Status |
|
|
110
|
+
|---|---|
|
|
111
|
+
| GitHub repo | ✅ **public** — https://github.com/Linutesto/hackforge (v0.1.0 + MCP + waves) |
|
|
112
|
+
| Moltbook agent | ✅ registered as `hackforge` (id 9dd2fd2a…) · ⏳ claim pending Yan's tweet (`antenna-K9XL`) |
|
|
113
|
+
| Telegraph page | ✅ published + **refreshed with waves 1–3 numbers** (2026-12-05) — https://telegra.ph/hackforge--first-scan-wave-12-05 |
|
|
114
|
+
| MCP registries | 🔶 all Yan-gated (see below): mcp.so + MCP Market need browser sign-in; official MCP Registry staged — `server.json` validated, `mcp-publisher` installed, fresh device-auth needed (earlier code lapsed); package decision needed (PyPI publish vs public remote endpoint) |
|
|
115
|
+
| Show HN / Lobsters / IndieWeb Discourse | 📝 drafts ready in `research/POSTS.md` (a–c) — **Yan posts these** |
|
|
116
|
+
| x402 well-known fix | ✅ **live** — `a2a.yandesbiens.com/.well-known/x402` → 200 with 3 resources (card-audit, fr-qc, space-boost); x402scan now fans out from endpoint discovery |
|
|
117
|
+
|
|
118
|
+
## 6. Tooling for claude / codex / local agents
|
|
119
|
+
|
|
120
|
+
1. **CLI** — `forge scan URL`, `forge patrol [--seeds FILE]`, `forge tool list`, `forge serve`.
|
|
121
|
+
2. **Bridge :8901** (svc `hackforge-bridge`) — OpenAPI shim + `POST /call` for any agent, plus a
|
|
122
|
+
chat-completions proxy that executes tool calls itself (legacy+OpenAI tool shapes, graceful
|
|
123
|
+
degrade when Qwen4 is down). Smoke test: `tools/smoke.sh` — 11/11.
|
|
124
|
+
3. **MCP stdio server** — `forge/mcp_server.py`, 7 `forge_*` tools, hand-rolled JSON-RPC 2.0:
|
|
125
|
+
```bash
|
|
126
|
+
claude mcp add hackforge -- python3 /home/yan/hackforge/forge/mcp_server.py
|
|
127
|
+
```
|
|
128
|
+
4. **Skill** — `~/.claude/skills/hackforge/SKILL.md` (commands, score formula, sandbox notes).
|
|
129
|
+
5. **Gemini client** — `forge/gemini.py` reusable stdlib module for any gemini work.
|
|
130
|
+
|
|
131
|
+
## 7. Next actions
|
|
132
|
+
|
|
133
|
+
**Suite improvements (candidate backlog):**
|
|
134
|
+
- per-wave aggregate filenames (wave 3's `last-patrol.json`/`LATEST.md` overwrote wave 2's —
|
|
135
|
+
per-target reports and wave logs preserved everything)
|
|
136
|
+
- ~~wave 4 = gemini targets~~ DONE 2026-12-05: 20 targets (10 gemini capsules + 10 weird-web),
|
|
137
|
+
81 findings, 29 reproduced, avg 88.8 — see reports/patrol-wave4.log
|
|
138
|
+
- dedupe findings.jsonl or add run-id column
|
|
139
|
+
|
|
140
|
+
**Yan's manual to-do (priority order, from research/ACTIONS.md §6):**
|
|
141
|
+
1. Moltbook claim: https://www.moltbook.com/claim/moltbook_claim_SsEepE36yl6MrF2YaOXFJCel1bIh4irF
|
|
142
|
+
(email verify + tweet `I'm claiming my AI agent "hackforge" on @moltbook 🦞 / Verification: antenna-K9XL`
|
|
143
|
+
from @yandesbiens420) → then first post fires (POSTS.md draft d, 5-min math challenge)
|
|
144
|
+
2. Official MCP Registry GitHub device auth: run `~/.local/bin/mcp-publisher login github`,
|
|
145
|
+
then immediately go to https://github.com/login/device and authorize the code it prints
|
|
146
|
+
(~15-min window; the earlier code 76DB-066D lapsed before it was clicked)
|
|
147
|
+
3. x402scan register form: https://www.x402scan.com/resources/register (submit a2a.yandesbiens.com —
|
|
148
|
+
fan-out doc live, auto-adds all 3 endpoints)
|
|
149
|
+
4. mcp.so + mcpmarket.com submissions (free sign-ins, repo https://github.com/Linutesto/hackforge)
|
|
150
|
+
5. Registry package decision: pyproject.toml + tools/publish.sh exist — just needs a **PyPI token**
|
|
151
|
+
(`PYPI_TOKEN=… ./tools/publish.sh`), then `mcp-publisher publish` is one command
|
|
152
|
+
(`server.json` already validated); alternative = public remote endpoint, no token needed
|
|
153
|
+
6. Post Show HN + Lobsters + IndieWeb Discourse (drafts a–c in POSTS.md — refresh wave numbers first)
|
|
154
|
+
7. Header fixes on a2a/tikaitok CF workers (CSP/HSTS/Referrer-Policy/nosniff) + robots.txt on all three sites
|
hackforge-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: hackforge
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: H4CK1NG suite on local models: scan, discover, sandbox-reproduce attacks, report. CLI + stdio MCP server, 7 forge_* tools.
|
|
5
|
+
Project-URL: Repository, https://github.com/Linutesto/hackforge
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Requires-Dist: httpx
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# ⚒ hackforge — H4CK1NG suite on local models
|
|
11
|
+
|
|
12
|
+
mcp-name: io.github.linutesto/hackforge
|
|
13
|
+
|
|
14
|
+
Autonomous web scanner that **scans → discovers → reproduces attacks in a sandbox →
|
|
15
|
+
reports with fixes**. The brain is Qwen4 (35B-A3B) on the local llama.cpp unit (:8093);
|
|
16
|
+
deterministic probes do the heavy lifting so the LLM only spends tokens on hypotheses
|
|
17
|
+
and verdicts. Built for claude/codex/local agents to drive via CLI (all JSON out).
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
forge.py CLI entry (also: forge tool <name> for agents)
|
|
21
|
+
forge/llm.py Qwen4 client (:8093, OpenAI-compatible, think off)
|
|
22
|
+
forge/recon.py fetch + fingerprint + well-known surface (llms.txt, agent.json, .env, .git…)
|
|
23
|
+
forge/probes.py 12 deterministic probe families → findings w/ severity+fix
|
|
24
|
+
forge/attack.py LLM attack planner → hypotheses as python snippets
|
|
25
|
+
forge/sandbox.py isolated subprocess execution, EV: evidence lines
|
|
26
|
+
forge/report.py markdown reports + findings.jsonl + LATEST.md aggregate
|
|
27
|
+
forge/runner.py scan_target / patrol (seed list + link discovery)
|
|
28
|
+
forge/server.py dashboard + JSON API on :8900
|
|
29
|
+
forge/mcp_server.py stdio MCP server (7 tools for Claude Code + any MCP client)
|
|
30
|
+
targets/seed.txt seed list (edit me)
|
|
31
|
+
reports/ generated reports, findings.jsonl, last-patrol.json
|
|
32
|
+
research/ WEB_MAP.md from the web scourage
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
python3 ~/hackforge/forge.py scan https://yandesbiens.com # one target
|
|
39
|
+
python3 ~/hackforge/forge.py patrol --limit 8 # autonomous wave
|
|
40
|
+
python3 ~/hackforge/forge.py serve --port 8900 # dashboard+API
|
|
41
|
+
python3 ~/hackforge/forge.py tool list # agent tools
|
|
42
|
+
python3 ~/hackforge/forge.py tool scan --json '{"url":"https://x.tld","no_attack":true}'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Env: `FORGE_LLM` (default http://127.0.0.1:8093/v1/chat/completions),
|
|
46
|
+
`FORGE_MODEL` (default qwen4).
|
|
47
|
+
|
|
48
|
+
## Score
|
|
49
|
+
|
|
50
|
+
100 − (high×15 + medium×7 + low×3 + info×1), floored at 0. Findings carry
|
|
51
|
+
`severity / evidence / fix`; attacks carry `REPRODUCED / NOT_REPRODUCED / INCONCLUSIVE`
|
|
52
|
+
verdicts judged by the local model from sandbox evidence.
|
|
53
|
+
|
|
54
|
+
## MCP server
|
|
55
|
+
|
|
56
|
+
`forge/mcp_server.py` speaks MCP over stdio (hand-rolled JSON-RPC 2.0 — no
|
|
57
|
+
`mcp` package needed, stdlib + httpx only) so Claude Code and any MCP client
|
|
58
|
+
can drive the suite natively. Same 7 tools as `forge tool`, dispatched
|
|
59
|
+
in-process:
|
|
60
|
+
|
|
61
|
+
| MCP tool | forge tool | notes |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| `forge_recon` | recon | fetch + fingerprint |
|
|
64
|
+
| `forge_probes` | probes | score + findings |
|
|
65
|
+
| `forge_attacks` | attacks | LLM plan + sandbox, ~2-5 min |
|
|
66
|
+
| `forge_scan` | scan | full run + report file, ~5 min |
|
|
67
|
+
| `forge_patrol` | patrol | wave over targets/seed.txt |
|
|
68
|
+
| `forge_findings` | findings | recent findings.jsonl rows |
|
|
69
|
+
| `forge_targets` | targets | seed list |
|
|
70
|
+
|
|
71
|
+
Tools are `forge_`-prefixed so multiple MCP servers can coexist in one client
|
|
72
|
+
without name collisions (bare names also accepted).
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
python3 ~/hackforge/forge/mcp_server.py # stdio; logs go to stderr
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Add to Claude Code — project-local `.mcp.json` (recommended, commit it):
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"mcpServers": {
|
|
83
|
+
"hackforge": {
|
|
84
|
+
"type": "stdio",
|
|
85
|
+
"command": "python3",
|
|
86
|
+
"args": ["/home/yan/hackforge/forge/mcp_server.py"]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
or globally: `claude mcp add hackforge -- python3 /home/yan/hackforge/forge/mcp_server.py`.
|
|
93
|
+
Then `/mcp` in Claude Code shows the 7 `forge_*` tools.
|
|
94
|
+
|
|
95
|
+
`forge_attacks` / `forge_scan` / `forge_patrol` are synchronous and can take
|
|
96
|
+
1-10 minutes — use a generous client timeout. Env: `FORGE_LLM`, `FORGE_MODEL`
|
|
97
|
+
(same as the rest of the suite; Qwen4 at :8093 is shared, so the LLM phase
|
|
98
|
+
stays gentle).
|
|
99
|
+
|
|
100
|
+
Registry: listed on the official MCP registry (registry.modelcontextprotocol.io)
|
|
101
|
+
as `io.github.Linutesto/hackforge` — repo https://github.com/Linutesto/hackforge.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# ⚒ hackforge — H4CK1NG suite on local models
|
|
2
|
+
|
|
3
|
+
mcp-name: io.github.linutesto/hackforge
|
|
4
|
+
|
|
5
|
+
Autonomous web scanner that **scans → discovers → reproduces attacks in a sandbox →
|
|
6
|
+
reports with fixes**. The brain is Qwen4 (35B-A3B) on the local llama.cpp unit (:8093);
|
|
7
|
+
deterministic probes do the heavy lifting so the LLM only spends tokens on hypotheses
|
|
8
|
+
and verdicts. Built for claude/codex/local agents to drive via CLI (all JSON out).
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
forge.py CLI entry (also: forge tool <name> for agents)
|
|
12
|
+
forge/llm.py Qwen4 client (:8093, OpenAI-compatible, think off)
|
|
13
|
+
forge/recon.py fetch + fingerprint + well-known surface (llms.txt, agent.json, .env, .git…)
|
|
14
|
+
forge/probes.py 12 deterministic probe families → findings w/ severity+fix
|
|
15
|
+
forge/attack.py LLM attack planner → hypotheses as python snippets
|
|
16
|
+
forge/sandbox.py isolated subprocess execution, EV: evidence lines
|
|
17
|
+
forge/report.py markdown reports + findings.jsonl + LATEST.md aggregate
|
|
18
|
+
forge/runner.py scan_target / patrol (seed list + link discovery)
|
|
19
|
+
forge/server.py dashboard + JSON API on :8900
|
|
20
|
+
forge/mcp_server.py stdio MCP server (7 tools for Claude Code + any MCP client)
|
|
21
|
+
targets/seed.txt seed list (edit me)
|
|
22
|
+
reports/ generated reports, findings.jsonl, last-patrol.json
|
|
23
|
+
research/ WEB_MAP.md from the web scourage
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
python3 ~/hackforge/forge.py scan https://yandesbiens.com # one target
|
|
30
|
+
python3 ~/hackforge/forge.py patrol --limit 8 # autonomous wave
|
|
31
|
+
python3 ~/hackforge/forge.py serve --port 8900 # dashboard+API
|
|
32
|
+
python3 ~/hackforge/forge.py tool list # agent tools
|
|
33
|
+
python3 ~/hackforge/forge.py tool scan --json '{"url":"https://x.tld","no_attack":true}'
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Env: `FORGE_LLM` (default http://127.0.0.1:8093/v1/chat/completions),
|
|
37
|
+
`FORGE_MODEL` (default qwen4).
|
|
38
|
+
|
|
39
|
+
## Score
|
|
40
|
+
|
|
41
|
+
100 − (high×15 + medium×7 + low×3 + info×1), floored at 0. Findings carry
|
|
42
|
+
`severity / evidence / fix`; attacks carry `REPRODUCED / NOT_REPRODUCED / INCONCLUSIVE`
|
|
43
|
+
verdicts judged by the local model from sandbox evidence.
|
|
44
|
+
|
|
45
|
+
## MCP server
|
|
46
|
+
|
|
47
|
+
`forge/mcp_server.py` speaks MCP over stdio (hand-rolled JSON-RPC 2.0 — no
|
|
48
|
+
`mcp` package needed, stdlib + httpx only) so Claude Code and any MCP client
|
|
49
|
+
can drive the suite natively. Same 7 tools as `forge tool`, dispatched
|
|
50
|
+
in-process:
|
|
51
|
+
|
|
52
|
+
| MCP tool | forge tool | notes |
|
|
53
|
+
|---|---|---|
|
|
54
|
+
| `forge_recon` | recon | fetch + fingerprint |
|
|
55
|
+
| `forge_probes` | probes | score + findings |
|
|
56
|
+
| `forge_attacks` | attacks | LLM plan + sandbox, ~2-5 min |
|
|
57
|
+
| `forge_scan` | scan | full run + report file, ~5 min |
|
|
58
|
+
| `forge_patrol` | patrol | wave over targets/seed.txt |
|
|
59
|
+
| `forge_findings` | findings | recent findings.jsonl rows |
|
|
60
|
+
| `forge_targets` | targets | seed list |
|
|
61
|
+
|
|
62
|
+
Tools are `forge_`-prefixed so multiple MCP servers can coexist in one client
|
|
63
|
+
without name collisions (bare names also accepted).
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
python3 ~/hackforge/forge/mcp_server.py # stdio; logs go to stderr
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Add to Claude Code — project-local `.mcp.json` (recommended, commit it):
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"mcpServers": {
|
|
74
|
+
"hackforge": {
|
|
75
|
+
"type": "stdio",
|
|
76
|
+
"command": "python3",
|
|
77
|
+
"args": ["/home/yan/hackforge/forge/mcp_server.py"]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
or globally: `claude mcp add hackforge -- python3 /home/yan/hackforge/forge/mcp_server.py`.
|
|
84
|
+
Then `/mcp` in Claude Code shows the 7 `forge_*` tools.
|
|
85
|
+
|
|
86
|
+
`forge_attacks` / `forge_scan` / `forge_patrol` are synchronous and can take
|
|
87
|
+
1-10 minutes — use a generous client timeout. Env: `FORGE_LLM`, `FORGE_MODEL`
|
|
88
|
+
(same as the rest of the suite; Qwen4 at :8093 is shared, so the LLM phase
|
|
89
|
+
stays gentle).
|
|
90
|
+
|
|
91
|
+
Registry: listed on the official MCP registry (registry.modelcontextprotocol.io)
|
|
92
|
+
as `io.github.Linutesto/hackforge` — repo https://github.com/Linutesto/hackforge.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# hackforge forge service — Dark Factory Hackathon clean-container gate:
|
|
2
|
+
# "must build and run from a clean container with NO outbound network".
|
|
3
|
+
#
|
|
4
|
+
# Build from the REPO ROOT (forge/ and bridge.py live above band/):
|
|
5
|
+
# cd ~/hackforge && podman build -t hackforge-forge -f band/Containerfile .
|
|
6
|
+
# Offline start check (must print PASS):
|
|
7
|
+
# podman run --rm --network=none hackforge-forge check
|
|
8
|
+
# As a service (bridge :8901 + bundled fixture site :8080):
|
|
9
|
+
# podman run -d --network=none -p 8901:8901 hackforge-forge
|
|
10
|
+
#
|
|
11
|
+
# Optional: -e FORGE_LLM=http://<qwen4-host>:8093/v1/chat/completions gives the
|
|
12
|
+
# bridge a live Qwen4 (attacks + chat tools). Without it the bridge degrades
|
|
13
|
+
# gracefully — recon/probes/findings need no LLM, so the offline gate passes
|
|
14
|
+
# with the default settings.
|
|
15
|
+
FROM python:3.12-slim
|
|
16
|
+
WORKDIR /app
|
|
17
|
+
COPY forge/ forge/
|
|
18
|
+
COPY forge/bridge.py /app/bridge.py
|
|
19
|
+
COPY band/entrypoint.py /app/entrypoint.py
|
|
20
|
+
COPY targets/ targets/
|
|
21
|
+
COPY band/fixture/ fixture/
|
|
22
|
+
RUN pip install --no-cache-dir httpx
|
|
23
|
+
ENV FORGE_BRIDGE_PORT=8901 \
|
|
24
|
+
FORGE_FIXTURE_PORT=8080 \
|
|
25
|
+
FORGE_LLM=http://127.0.0.1:8093/v1/chat/completions \
|
|
26
|
+
FORGE_MODEL=qwen4
|
|
27
|
+
EXPOSE 8901 8080
|
|
28
|
+
ENTRYPOINT ["python3", "entrypoint.py"]
|
|
29
|
+
CMD ["serve"]
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# FACTORY.md — The Dark Forge
|
|
2
|
+
|
|
3
|
+
> The factory's operating doc. Ships in the public repo (submission
|
|
4
|
+
> requirement #3). Fill the `[Run log]` table during the Dec 12–13 dry runs
|
|
5
|
+
> and the submitted run.
|
|
6
|
+
|
|
7
|
+
## What this factory is
|
|
8
|
+
|
|
9
|
+
A dark factory: four coding-agent seats in one BAND Desktop room that take a
|
|
10
|
+
job, plan it, build it, **prove its own results**, and hand over a finished
|
|
11
|
+
app. Humans do exactly two things — paste the job at kick-off and accept the
|
|
12
|
+
hand-over. Everything between is room @mentions: no orchestration code, no
|
|
13
|
+
steering.
|
|
14
|
+
|
|
15
|
+
The pitch: most bands *build* the app. This one **forges and proves** it —
|
|
16
|
+
every acceptance claim is reproduced by a check agent that runs code before
|
|
17
|
+
anything is accepted.
|
|
18
|
+
|
|
19
|
+
## Seats (4 — exceeds the ≥3 requirement)
|
|
20
|
+
|
|
21
|
+
| Seat | Mandate | Runtime / model | What it does |
|
|
22
|
+
|---|---|---|---|
|
|
23
|
+
| **Foreman** | `mandates/foreman.md` | Claude Code seat *or* BAND SDK agent / Qwen4 local :8093 | Reads the pasted job, decomposes into stages + tasks with acceptance criteria, @mentions Builder task by task, tracks stage state, decides when the factory is done |
|
|
24
|
+
| **Builder** | `mandates/builder.md` | Claude Code / Codex seat (or SDK) / Qwen4 — open-weight preferred | Implements each task in the room workspace, runs the task's tests, posts result **plus evidence** to the room |
|
|
25
|
+
| **Inspector** | `mandates/inspector.md` | Custom BAND SDK seat wrapping `hackforge-bridge` :8901 / Qwen4 via the bridge (in-process tool exec, up to 6 rounds) | The verifier: runs `recon`/`probes`/`attacks` against the running app, checks every Builder claim against findings posted in the room, verdict ACCEPT / **BLOCKED** naming the missing evidence, runs the clean-container no-network gate before hand-off |
|
|
26
|
+
| **Archivist** | `mandates/archivist.md` | SDK seat (lila-core pattern) / Qwen4 | Append-only run memory (tried / passed / broke), hash-stamped artifact receipts, writes FACTORY.md updates + the hand-over report, exports the room |
|
|
27
|
+
|
|
28
|
+
All seats run **open-weight models locally** — Qwen4 OpenUncensored IQ4_XS on
|
|
29
|
+
a single RTX 4090 (llama.cpp `qwen38` unit, OpenAI-compatible :8093 behind
|
|
30
|
+
kvgate, ~216 tok/s, 4 slots). $0 marginal cost per run: the small-model story
|
|
31
|
+
is the stack, not a claim.
|
|
32
|
+
|
|
33
|
+
## The submitted run, start to finish (no human steering)
|
|
34
|
+
|
|
35
|
+
1. **Job in.** At kick-off the task's job text is pasted into the room;
|
|
36
|
+
@Foreman is mentioned. (This is human input #1 — the only one.)
|
|
37
|
+
2. **Plan.** Foreman posts the full decomposition — stages, tasks, acceptance
|
|
38
|
+
criteria, order — then assigns one task at a time by @mention, criteria in
|
|
39
|
+
the room, never privately.
|
|
40
|
+
3. **Build.** @Builder takes the task, implements it in the room workspace,
|
|
41
|
+
runs the stage's tests, posts result **with evidence** (commands + output).
|
|
42
|
+
A claim without posted evidence will be blocked.
|
|
43
|
+
4. **Prove.** @Inspector checks: re-reads the room, collects posted evidence,
|
|
44
|
+
then runs its own tools against the live artifact — hackforge
|
|
45
|
+
`probes`/`scan`, sandboxed `attacks` with REPRODUCED / NOT_REPRODUCED /
|
|
46
|
+
INCONCLUSIVE verdicts. Standing rule: *a claim not supported by a finding
|
|
47
|
+
posted in this room → BLOCKED, naming the missing evidence.*
|
|
48
|
+
5. **Loop.** BLOCKED → task returns to @Builder with the named gap; Builder
|
|
49
|
+
fixes exactly the gap and re-proves. ACCEPT → next task.
|
|
50
|
+
6. **Stage passes** when its tests pass. Foreman broadcasts stage state so
|
|
51
|
+
every seat checks state before acting.
|
|
52
|
+
7. **Gate.** Before hand-over the Inspector runs the final check: the service
|
|
53
|
+
builds and starts from a clean container with **no outbound network**
|
|
54
|
+
(`band/Containerfile` + `entrypoint.py check` is the reference
|
|
55
|
+
implementation of this gate). A service that does not start scores zero —
|
|
56
|
+
the factory checks that itself, first, loudly.
|
|
57
|
+
8. **Hand-over.** Foreman declares done only when every stage passed and the
|
|
58
|
+
gate ran; posts the hand-over summary. @Archivist writes the run report,
|
|
59
|
+
verifies it against the append-only log, and the room is exported.
|
|
60
|
+
9. **Human accepts** (input #2, the single gate) — per the hacker-guide
|
|
61
|
+
pattern; the run itself needed no steering.
|
|
62
|
+
|
|
63
|
+
## Checks — what "done" means (three layers, all pre-built machinery)
|
|
64
|
+
|
|
65
|
+
1. **Task stage tests** — the task's own tests, shared by every team.
|
|
66
|
+
2. **hackforge probes/attacks** — the Inspector reproduces claims in a
|
|
67
|
+
sandbox and posts findings with severity + evidence + fix (the existing
|
|
68
|
+
`forge/bridge.py` TOOL_DEFS surface, live on :8901).
|
|
69
|
+
3. **Container gate** — clean container, no outbound network, service must
|
|
70
|
+
start (the disqualifier check, run by the factory itself before submission).
|
|
71
|
+
|
|
72
|
+
## Trust machinery (ported from lila-a2a)
|
|
73
|
+
|
|
74
|
+
- Artifacts are hash-stamped (`canonical_sha256` receipts); the Inspector
|
|
75
|
+
verifies what it was handed.
|
|
76
|
+
- Anything a seat posts is untrusted input to the next seat
|
|
77
|
+
(`<untrusted_artifact>` quarantine); the Archivist records it as data, not
|
|
78
|
+
instructions.
|
|
79
|
+
- Zero-trust policy gate + append-only audit log: every run appends; the
|
|
80
|
+
Archivist keeps it append-only (correct, never rewrite).
|
|
81
|
+
- Chain shape: acquire → build → verify → report (orchestrator pattern,
|
|
82
|
+
ported — `~/lila-a2a` is not a git repo, so patterns are copied, not
|
|
83
|
+
vendored).
|
|
84
|
+
|
|
85
|
+
## Reused (the rules ask you to say what you reused)
|
|
86
|
+
|
|
87
|
+
- **hackforge** forge_* tools (recon / probes / attacks / scan / patrol /
|
|
88
|
+
findings) → the Inspector seat. github.com/Linutesto/hackforge.
|
|
89
|
+
- **hackforge-bridge** :8901 — OpenAI-compatible proxy to Qwen4 with
|
|
90
|
+
in-process tool execution → the Inspector's brain + hands.
|
|
91
|
+
- **lila-a2a** patterns → ported: hash-checked artifacts, zero-trust policy
|
|
92
|
+
gate, untrusted quarantine, append-only memory (lila-core), orchestrator
|
|
93
|
+
chain shape.
|
|
94
|
+
- **Qwen4 OpenUncensored IQ4_XS** on the 4090 (`qwen38` unit, :8093) →
|
|
95
|
+
every seat's model.
|
|
96
|
+
|
|
97
|
+
## Run log
|
|
98
|
+
|
|
99
|
+
| Run | Date | Stages passed | Notes |
|
|
100
|
+
|---|---|---|---|
|
|
101
|
+
| dry-run 1 | [Dec 12] | [n/m] | [what broke] |
|
|
102
|
+
| dry-run 2 | [Dec 13] | [n/m] | [fixes verified] |
|
|
103
|
+
| submitted | [Dec 14–20] | [n/m] | [final state + room export ref] |
|
|
104
|
+
|
|
105
|
+
## Cost
|
|
106
|
+
|
|
107
|
+
Every seat runs Qwen4 locally on one RTX 4090 (llama.cpp, OpenAI-compatible
|
|
108
|
+
:8093). No API keys, no per-token bill — the whole factory costs ~$0 per run.
|
|
109
|
+
Judge-verifiable number: [fill in — e.g. tokens generated / wall-clock during
|
|
110
|
+
the submitted run, read from the llama-server log].
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# band/ — Dark Factory Hackathon entry skeleton
|
|
2
|
+
|
|
3
|
+
The submission skeleton for the **Dark Factory Hackathon** (Dec 14–21 2026,
|
|
4
|
+
$3,500 pool, $2,000 small-model track). Plan of record:
|
|
5
|
+
`~/hackforge/research/HACKATHON.md`; the earlier text-only starter kit lives in
|
|
6
|
+
`~/hackforge/hackathon/` — this `band/` dir is the deliverable skeleton that
|
|
7
|
+
becomes the public repo `Linutesto/hackforge-factory`.
|
|
8
|
+
|
|
9
|
+
## Layout
|
|
10
|
+
|
|
11
|
+
- `FACTORY.md` — the factory's operating doc (required in the repo)
|
|
12
|
+
- `mandates/{foreman,builder,inspector,archivist}.md` — 4 seat mandates,
|
|
13
|
+
**generic by rule** (mandate test: another team could use them as-is —
|
|
14
|
+
no endpoint paths, no task detail; the task goes in the job text pasted
|
|
15
|
+
into the BAND room)
|
|
16
|
+
- `Containerfile` + `entrypoint.py` + `fixture/` — the clean-container check:
|
|
17
|
+
the forge service that builds and starts with **no outbound network**
|
|
18
|
+
- `SUBMISSION.md` — drafted submission-form fields + Yan to-dos
|
|
19
|
+
|
|
20
|
+
## Container: build & verify
|
|
21
|
+
|
|
22
|
+
The build context is the **repo root** (the Containerfile needs `forge/` and
|
|
23
|
+
`bridge.py` from above `band/`):
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
cd ~/hackforge
|
|
27
|
+
podman build -t hackforge-forge -f band/Containerfile .
|
|
28
|
+
|
|
29
|
+
# the start gate — must print PASS with no network:
|
|
30
|
+
podman run --rm --network=none hackforge-forge check
|
|
31
|
+
|
|
32
|
+
# as a service (bridge :8901 + bundled fixture site :8080):
|
|
33
|
+
podman run -d --name hackforge-forge --network=none -p 8901:8901 hackforge-forge
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
What the check does: starts the forge bridge + a bundled fixture site inside
|
|
37
|
+
the container, verifies `/health`, then runs the deterministic probe suite
|
|
38
|
+
(`POST /call {"name":"probes"}`) against the fixture — end to end, zero
|
|
39
|
+
outbound network, zero LLM. With `-e FORGE_LLM=...` pointed at a live Qwen4
|
|
40
|
+
the `attacks`/chat tools light up too; without it the bridge degrades
|
|
41
|
+
gracefully (probes/recon/findings need no LLM).
|
|
42
|
+
|
|
43
|
+
## Run (once BAND Desktop is wired)
|
|
44
|
+
|
|
45
|
+
1. BAND Desktop installed + free account at app.band.ai (see SUBMISSION.md
|
|
46
|
+
to-dos — not yet installed on this machine as of 2026-12-05).
|
|
47
|
+
2. One room; add 4 seats, each pointing at its mandate file. Seats may share
|
|
48
|
+
the Qwen4 runtime (:8093, OpenAI-compatible) — the small-model story.
|
|
49
|
+
3. Paste the job (from the ~Dec 12 task reveal) to @Foreman. Record the room.
|
|
50
|
+
4. No human steering during the submitted run: Foreman → Builder → Inspector
|
|
51
|
+
→ Archivist, all via room @mentions. See FACTORY.md for the flow.
|
|
52
|
+
5. On hand-over: export the room, commit repo + mandates + FACTORY.md + room
|
|
53
|
+
export, cut the ≤5-min video (room recording mandatory), submit.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# SUBMISSION.md — submission-form draft (fill brackets, paste into the form)
|
|
2
|
+
|
|
3
|
+
Form fields (verified on the event page): team name, project name, project
|
|
4
|
+
description, PDF presentation, demo video (YouTube link or upload), public
|
|
5
|
+
GitHub repo. Submissions editable until **Dec 21 17:00 UTC**.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
**Team name:** `[Dark Forge — or pick]` — Yan Desbiens (solo)
|
|
10
|
+
*(team finder / Discord if a teammate joins; 1–6 allowed)*
|
|
11
|
+
|
|
12
|
+
**Project name:** **The Dark Forge — a self-checking dark factory**
|
|
13
|
+
|
|
14
|
+
**Project description:**
|
|
15
|
+
|
|
16
|
+
> A four-seat agent band that plans, builds, and *proves* an app before
|
|
17
|
+
> handing it over: a Foreman decomposes the job, Builder seats implement it
|
|
18
|
+
> task by task, and an Inspector — wired to the hackforge H4CK1NG suite —
|
|
19
|
+
> reproduces every claim with live probes and sandboxed attacks before
|
|
20
|
+
> anything is accepted; an Archivist keeps append-only run memory and writes
|
|
21
|
+
> the hand-over. Every seat runs an open-weight model (Qwen4, local llama.cpp
|
|
22
|
+
> on a single RTX 4090), so the whole factory costs nothing per run — no API
|
|
23
|
+
> keys, no per-token bill, and the finished service starts from a clean
|
|
24
|
+
> container with no network. Built on BAND Desktop; mandates, FACTORY.md,
|
|
25
|
+
> room export and tools are in the repo. Reused: hackforge (scan/probe/attack
|
|
26
|
+
> tools + Qwen4 tool-exec bridge) and the lila-a2a agent-mesh patterns
|
|
27
|
+
> (hash-checked artifacts, zero-trust gates, append-only memory).
|
|
28
|
+
|
|
29
|
+
**PDF presentation** (outline — build from the run's actual numbers):
|
|
30
|
+
|
|
31
|
+
1. Title: The Dark Forge — a self-checking dark factory (hackathon, Dec 2026)
|
|
32
|
+
2. The problem: agent bands *claim* done; nobody reproduces the claim
|
|
33
|
+
3. Factory diagram: job → Foreman → Builder → Inspector (hackforge
|
|
34
|
+
probes/attacks) → Archivist; BLOCKED loop back to Builder
|
|
35
|
+
4. The three check layers: stage tests / sandbox-reproduced attacks /
|
|
36
|
+
clean-container-no-network gate
|
|
37
|
+
5. Stage results table from the submitted run (fill from FACTORY.md run log)
|
|
38
|
+
6. Cost table: Qwen4 on one RTX 4090 — $0 API, [tok/s + tokens/run measured]
|
|
39
|
+
7. Trust machinery: hash-stamped artifacts, untrusted quarantine, append-only
|
|
40
|
+
log — visible in the room replay
|
|
41
|
+
8. What we reused: hackforge + lila-a2a patterns + BAND SDK
|
|
42
|
+
9. Demo stills + video link
|
|
43
|
+
|
|
44
|
+
**Demo video (≤5 min):** `[YouTube link — record during the run]`
|
|
45
|
+
Mandatory: **recording of the BAND Desktop room** (no room recording =
|
|
46
|
+
disqualification). Free-plan replays last 2 weeks — record Dec 14–20, cut
|
|
47
|
+
Dec 21. Skeleton: 0:00 hook (claim → BLOCKED → re-prove), 0:30 room
|
|
48
|
+
recording of a real task cycle, 2:30 Inspector running probes/attacks live,
|
|
49
|
+
3:30 clean-container gate output, 4:15 cost story + hand-over.
|
|
50
|
+
|
|
51
|
+
**Repo:** `https://github.com/Linutesto/hackforge-factory` `[create + push]`
|
|
52
|
+
— cloneable without a BAND account: mandates + FACTORY.md + room export +
|
|
53
|
+
Containerfile. No committed secrets, env vars only.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Yan to-dos (as of 2026-12-05)
|
|
58
|
+
|
|
59
|
+
- [ ] **Register** on the event page (starfieldlabs.ai, Google/GitHub
|
|
60
|
+
sign-in, ~1 min) — before Dec 14.
|
|
61
|
+
- [ ] **Install BAND Desktop** — *not installed on this machine yet*
|
|
62
|
+
(checked: no flatpak, no .desktop, no /opt/snap/AppImage hit). Get the
|
|
63
|
+
Linux build from app.band.ai / band.ai and run its readiness checks;
|
|
64
|
+
this box must host the actual Dec 14 room (Fedora 43 — R1 spike).
|
|
65
|
+
- [ ] **Free BAND account** at app.band.ai (no card).
|
|
66
|
+
- [ ] **Dec 11 spike — the one real unknown (R2):** wire a seat to Qwen4
|
|
67
|
+
:8093. Path A: OpenCode/ACP seat with a custom OpenAI provider (keeps
|
|
68
|
+
the zero-cost small-model story). Path B: Claude Code/Codex Builder
|
|
69
|
+
seats + SDK seats on Qwen4. Decide and freeze before Dec 12.
|
|
70
|
+
- [ ] **Create the public repo** `Linutesto/hackforge-factory`; copy this
|
|
71
|
+
`band/` dir in (mandates + FACTORY.md + Containerfile), add NOTES.
|
|
72
|
+
- [ ] **Dec 12 (task reveal):** map task stages onto the band; dry-run the
|
|
73
|
+
full chain with room recording ON; re-check mandates stay generic.
|
|
74
|
+
- [ ] **Dec 13:** second dry-run; verify `podman run --rm --network=none
|
|
75
|
+
hackforge-forge check` passes for the *task's* artifact (the gate
|
|
76
|
+
currently proves the pattern on the bundled fixture); record video
|
|
77
|
+
skeleton.
|
|
78
|
+
- [ ] **Dec 14 17:00 UTC:** join stream, paste the job, start the submitted
|
|
79
|
+
run, record the room.
|
|
80
|
+
|
|
81
|
+
## Status of this skeleton
|
|
82
|
+
|
|
83
|
+
- Mandates: written, generic (mandate test passed on cold read 2026-12-05).
|
|
84
|
+
- FACTORY.md: operating doc filled per research/HACKATHON.md §2; run-log
|
|
85
|
+
table + cost number await the dry runs.
|
|
86
|
+
- Container gate: `Containerfile` + `entrypoint.py` — build/run verification
|
|
87
|
+
recorded in the commit message / band/README.md.
|