arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20902cs.CR
收藏

图思考:用于LLM渗透测试智能体的Neo4j支持的漏洞链推理

Thinking in Graphs: Neo4j-Backed Exploit-Chain Reasoning for LLM Penetration-Testing Agents

Independent Researcher --- AI

Joas Antonio dos Santos Barbosa

AI总结:

该研究提出ChainGraph模式,通过Neo4j属性图结合LLM智能体,解决LLM渗透测试智能体无法有效串联漏洞链的问题,使推理负载降低约98%。

摘要:

Claude Code和OpenAI Codex等LLM编码智能体可驱动渗透测试工具,但它们将渗透测试任务推理为上下文窗口中的扁平发现列表。攻击者以图的方式思考:孤立的低严重程度漏洞在通过凭证获取、权限提升和横向移动串联后会变得灾难性。这种差距导致了一种普遍观点,即AI智能体无法真正串联漏洞利用;我们认为这描述的是扁平上下文窗口,而非模型本身。我们提出ChainGraph,一种将漏洞链推理外部化为Neo4j属性图的模式,该图通过模型上下文协议连接到现成智能体,无需定制工具。发现、攻击步骤、凭证、资产和防篡改证据收据是带有前后条件边的类型化节点;JSON/Markdown存储文档记忆,而Neo4j存储推理记忆。我们将五个操作问题(下一步推理、从入口到核心资产的路径规划、组合严重程度提升、证据来源和瓶颈识别)形式化为可重用的Cypher和图数据科学(GDS)查询,以及与单个发现局部严重程度不同的链严重程度分数。在基于GOAD建模的合成多林Active Directory渗透测试中,使用带GDS的实时Neo4j,三个孤立评为中等的发现在其到林根的路径被具体化后变为严重,且介数中心性确定了最佳链断点。将每个决策的范围限定为图结果而非重新读取渗透测试任务,在令牌代理上将推理负载减少了约98%。我们为Claude Code和Codex提供了可复现的设置。结果是说明性的单次运行测量,而非基准测试。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑