Metraipolis › archive › dc_14c12d6ce1b9
Thinking in Graphs: Neo4j-Backed Exploit-Chain Reasoning for LLM Penetration-Testing Agents — arXiv:2610.20902
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.20902
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T10:19:14.142Z
- SHA-256 of the archived text
041d4fb5d0df9b4064545fd5162c6b9bf365cae9111ca9c0333d9d316d9acee5- Stable URL of this page
https://metraipolis.com/documento/dc_14c12d6ce1b9
How to cite
Thinking in Graphs: Neo4j-Backed Exploit-Chain Reasoning for LLM Penetration-Testing Agents — arXiv:2610.20902 — arXiv (en), https://arxiv.org/abs/2610.20902 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_14c12d6ce1b9 (Metraipolis archive dc_14c12d6ce1b9, sha256 041d4fb5d0df9b4064545fd5162c6b9bf365cae9111ca9c0333d9d316d9acee5)
BibTeX
@misc{dc14c12d6ce1b9,
title = {Thinking in Graphs: Neo4j-Backed Exploit-Chain Reasoning for LLM Penetration-Testing Agents — arXiv:2610.20902},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.20902},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_14c12d6ce1b9; sha256 041d4fb5d0df9b4064545fd5162c6b9bf365cae9111ca9c0333d9d316d9acee5},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.20902. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
LLM coding agents such as Claude Code and OpenAI Codex can drive penetration-testing tools, but they reason about an engagement as a flat list of findings in a context window. Attackers think in graphs: isolated low-severity exposures turn catastrophic once chained through credential capture, privilege escalation, and lateral movement. This gap feeds a common belief that AI agents cannot truly chain exploitation; we argue this describes the flat context window, not the model. We present ChainGraph, a pattern that externalizes exploit-chain reasoning into a Neo4j property graph wired to an off-the-shelf agent via the Model Context Protocol, no bespoke harness. Findings, attack steps, credentials, assets, and tamper-evident evidence receipts are typed nodes with pre/post-condition edges; JSON/Markdown holds documentary memory while Neo4j holds reasoning memory. We formalize five operator questions (next-step inference, entry-to-crown-jewel pathing, combined-severity promotion, evidence provenance, and chokepoint identification) as reusable Cypher and Graph Data Science queries, plus a chain-severity score distinct from per-finding local severity. On a synthetic multi-forest Active Directory engagement modeled on GOAD, in live Neo4j with GDS, three findings rated Medium in isolation become Critical once their path to the forest root is materialized, and betweenness centrality names the best chain break-points. Scoping each decision to a graph result rather than re-reading the engagement cut the reasoning payload by about 98% on a token proxy. We give a reproducible setup for Claude Code and Codex. Results are illustrative single-run measurements, not a benchmark. Tema degli esploratori: fiducia digitale e crittografia (elenco arXiv cs.CR, nuovi lavori del giorno). Categorie arXiv: Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2610.20902 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T08:47:32.582Z dalla pagina https://arxiv.org/list/cs.CR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).