Agent-declared attack-path edges, server-side qualification, and what they can and cannot show.
Version 1.0.0 · 2026-11-20 · English · AGPL-3.0 · Cite this work
Explore the architecture · Read the research · View the benchmarks · Understand the evidence model · Try DarkMoon Community · Explore the live demo · Read the related articles
DarkMoon is an autonomous AI penetration-testing system: an orchestrator and specialist LLM agents run tools against an authorised target and publish findings. This repository documents how DarkMoon links those findings into attack paths, how that design evolved between October 2025 and November 2026, and what the experiments actually measured.
It is a research record, not a product brochure. It keeps the negative results, labels every statement by its evidence (VERIFIED, OBSERVED, SIMULATED, HYPOTHESIS, SUPERSEDED, UNKNOWN), and states plainly what has not been demonstrated. The code of the open-source edition is in ASCIT31/Dark-Moon; DarkMoon Pro is proprietary and is cited as "DarkMoon Pro, internal" with a short commit hash.
When LLM agents state that one finding enabled another, how can a system decide, without trusting the agent and without extra model calls, which of those statements are supported by what the system itself recorded, and how often are they right?
This is distinct from attack-graph generation (deriving potential paths from a network model), from provenance-based intrusion reconstruction (OS audit logs), and from measuring exploitation success (flags, root). It sits between them: qualifying links between findings produced by an agent. See scientific positioning.
- Declare. On each finding it pushes, an agent may list the earlier findings it used in one optional field,
enabled_by. Cost: about +0.5 % of a campaign's tokens for the whole mechanism (SIMULATED). - Show at once, as a hypothesis. The server stores each valid declaration as
declared_by_agentand displays it immediately as part of a Possible Attack Path. - Qualify, or abstain. The server promotes a link only by exact value attribution on its own execution records: a value produced by one recorded execution and consumed by a later successful one, uniquely and in order (
observed_flow); plus a recorded refused attempt without the value forcausal_necessity_demonstrated. Otherwise it abstains with one of 14 closed reasons. - Label by the weakest link. A path is an Evidence-Backed Attack Path only if every step is supported by a server rule or qualification; everything else is a Possible Attack Path and is never ranked.
In DarkMoon Community there is no execution ledger and agent-written evidence text is withheld from the engine, so proven_paths = 0 by construction. Details: architecture · provenance · agent-native graphs · decisions.
flowchart LR
subgraph AG["LLM agents"]
O["Orchestrator"]
SP["Specialist sub-agents"]
end
subgraph MCP["MCP server"]
EX["execute_command"]
PU["dashboard_push_finding<br/>(enabled_by)"]
LED["Run ledger: HMAC fingerprints<br/>(Pro only)"]
end
subgraph EN["Attack-path engine (no model call)"]
DL["declared_links<br/>resolve + validate"]
Q["edge_verifier.qualify_edge<br/>exact value attribution or abstain"]
R13["Server rules R1 / R3"]
INF["Inferred layer<br/>(hypotheses)"]
LVL["Path level = weakest link"]
end
subgraph OUT["Outputs"]
EB["Evidence-Backed Attack Path"]
PO["Possible Attack Path"]
end
O --> EX
SP --> EX
EX -.-> LED
O --> PU
SP --> PU
PU --> DL --> Q
LED -.-> Q
PU --> R13
PU --> INF
Q --> LVL
R13 --> LVL
INF --> LVL
LVL --> EB
LVL --> PO
More diagrams, checked against Dark-Moon 10eaab0: diagrams/.
61 experiments are published in experiments/, with a per-target synthesis in experiments/RESULTS.md. The main ones for attack paths:
| Experiment | Hypothesis | Result | Status | Source |
|---|---|---|---|---|
| EXP-010 | Why does the product almost never show proven paths? (18 real campaigns, 340 findings) | 0/340 findings with causal fields; 5 proven paths, all R3; ranking allowed 0/18 | VERIFIED |
internal R&D report D27/02 |
| EXP-015 | Flag-gated fixes yield correct causal paths (dmlab, 14 truth links) | causal-edge recall 0/14 on every run; 9/11 agent-declared links correct but not server-corroborated | VERIFIED |
internal R&D report D27/07 |
| EXP-019 | Counterfactual active replay verifies causal links | 9/11 correct, 2 false proven links; wire flows 20/20 but recall 4/29 | SIMULATED |
internal R&D report D27/07 |
| EXP-031 | Active replay yields multi-finding (N4) chains on crAPI | 2 direct exploitations, 0 N4 | SIMULATED |
internal R&D report D27 (E4) |
| EXP-038 | "Own command" attribution proves chains | 5 families, then 7 new false proven links | SUPERSEDED |
internal report R/14 |
| EXP-039 | A MulVAL-like capability graph links findings | 10/78 edges correct (12.8 %) | SUPERSEDED |
internal report R/30 |
| EXP-042 (c5) | Prompt lever raises enabled_by fill |
15/39 findings declared; strict precision 0.6 (5 decidable), recall 2/6 | VERIFIED |
internal report R/50 |
| EXP-043 (c6) | Agents declare correct links on a multi-protocol chain | strict precision 0.556 [0.27–0.81], recall 5/6 | VERIFIED |
internal report R/50, R/54 |
| EXP-047 | Architecture D never promotes falsely | harness: 0 false promotions, recall 0.829; real replay 0/25 qualified | SIMULATED |
internal report R/51 |
| EXP-050 (c7) | Architecture D on a real multi-protocol campaign | strict precision 0.316 [0.15–0.54]; server-qualified 0/19; 12/13 false links "same root cause" | VERIFIED |
internal report R/54 |
| EXP-053 | Rewording enabled_by cuts same-cause errors |
variance ±20 pt > variant differences; keep current text | SIMULATED |
internal report R/57 |
| EXP-056 | Final real validation on the lab | 29 findings, 19 declared links, 0 promoted; ≈ 37 % precision (approximate) | VERIFIED |
internal report R/60 |
| EXP-060 | Port to Community | 68 findings, 16 declared links, 17 paths, 0 proven by construction | VERIFIED |
Dark-Moon PR #59 |
Stated honestly, with the caveat that almost every real-run figure is n = 1 on one target with one model (claude-opus-4-6):
- 0 server-qualified links on real data. No declared link has ever reached
observed_flowon a real campaign (c5/c6 replay 0/25, c7 0/19, final lab run 0/19, DVGA Community 0/16 by construction). Agents mask credentials and the Privacy Gateway tokenises them, so the values needed for exact attribution are absent. - Declared-link strict precision 0.6 / 0.556 / 0.316, single runs (c5 with only 5 decidable links; c6 [0.27–0.81]; c7 [0.15–0.54]). Intervals overlap; no configuration is shown better than another.
- No proven multi-step chain. No multi-finding (N4) chain was proven on real data under the strict definition. An earlier "2 proven cross-host chains" claim (2026-11-11) is
SUPERSEDED: the chains were agent-declared. - Non-promotion holds on synthetic scenarios: 0 false promotions on 100 scenarios / 117 edges, mutation score 95.2 % with 0 permissive survivors (
SIMULATED). - Agents contribute coverage, not proof: links on protocols the server cannot observe (Redis → PostgreSQL → SSH key), multi-step spines, cross-agent links; dominant error = linking two facets of one root cause.
- DarkMoon does not have a universally reliable causal model; a graph plus an LLM does not demonstrate validated causal intelligence.
- Server pattern rules R1/R3 read agent-written evidence text, not an independent capture; two product strings overstate this and are flagged for correction.
- Stronger model-side privacy and stronger server-side attribution compete for the same evidence; no design resolves this yet.
- Oracles and harnesses were built by the same team; some replays used a proxy model; targets are self-built labs or well-known vulnerable apps; no public benchmark run.
- Several source inconsistencies are recorded, not silently resolved.
Full list: docs/limitations/.
Articles published on the DarkMoon blog (English, 2026-11-20). Series A is built on this repository; the other articles cite it. The sister repository darkmoon-visualization-research lists the visualization and terminal articles. Benchmark runs: Darkmoon-Benchmarks.
Related earlier work: ASCIT31/darkmoon-attack-surface-research, research notes on spatial, WebXR-capable attack-surface visualisation.
- DarkMoon Community (open source, AGPL-3.0): github.com/ASCIT31/Dark-Moon
- Attack-path engine at the documented commit:
mcp/api/(attack_paths.py,attack_paths_observed.py,declared_links.py,edge_verifier.py,attack_paths_local.py) - Terminal Explorer:
conf/plugins/darkmoon-explorer/
Live demo: https://demo.dark-moon.org
Product documentation: https://docs.dark-moon.org
ASCIT31/darkmoon-visualization-research — research on how attack paths and evidence are visualised.
| Path | Content |
|---|---|
| docs/ | architecture, causal model, expert systems, provenance, agent-native graphs, security, limitations |
| research/ | literature review, scientific positioning, comparisons |
| experiments/ | 61 experiment pages: successful, failed, inconclusive, adversarial |
| benchmarks/ | links to the public benchmark repositories |
| decisions/ | ADR-style decision records |
| diagrams/ | Mermaid diagrams matching the code |
| screenshots/ | Terminal Explorer captures on synthetic demo data |
| references/ | BibTeX bibliography |