Metraipolis › archive › dc_235b6e82422e
PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs — arXiv:2609.18120
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.18120
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T14:31:35.610Z
- SHA-256 of the archived text
21d2f41872678c87dd5454f88feae112ad032021c75b34acda80782a566cef50- Stable URL of this page
https://metraipolis.com/documento/dc_235b6e82422e
How to cite
PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs — arXiv:2609.18120 — arXiv (en), https://arxiv.org/abs/2609.18120 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_235b6e82422e (Metraipolis archive dc_235b6e82422e, sha256 21d2f41872678c87dd5454f88feae112ad032021c75b34acda80782a566cef50)
BibTeX
@misc{dc235b6e82422e,
title = {PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs — arXiv:2609.18120},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.18120},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_235b6e82422e; sha256 21d2f41872678c87dd5454f88feae112ad032021c75b34acda80782a566cef50},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.18120. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
AI-driven penetration testing has been demonstrated with premium frontier models such as GPT-4, but the per-engagement token cost makes continuous, automated testing unaffordable for the smaller organisations that need it most. This paper presents PentestChain, a ten-phase automated penetration testing framework that couples a curated, deterministic exploit map with a cost-aware AI cascade-a local Ollama model (qwen2.5-7b) first, then free-tier OpenRouter and Cerebras, with a rule-based fallback that always produces output-and exposes the full pipeline through a Model Context Protocol (MCP) server with eleven tools. We make three contributions. First, we treat US-dollar cost per engagement as a measured, first-class evaluation metric and show that a 7B-parameter local model, kept off the critical path by a deterministic backbone, sustains end-to-end operation at zero measured paid-API cost. Second, we analyse the attack surface that an MCP-exposed offensive engine introduces, grounding a four-position threat model in the 2025 MCP incident record (the CVE-2025-6514 remote-code-execution flaw in mcp-remote, the postmark-mcp supply-chain backdoor, and the tool-poisoning-rug-pull-line-jumping class), and contribute four mitigations. Third, we specify a reproducible, containerised evalua-tion protocol aligned with the standardised testbeds now expected at top-tier venues-AutoPenBench, a Cybench subset, and the PentestGPT 182-sub-task benchmark-with multi-trial statistics (more than 10 trials per configuration, pass-at-k, non-parametric significance tests and effect sizes) and direct, same testbed reproduction of the PentestGPT and PentestAgent baselines rather than citation of their published numbers. On the legacy targets measured to date, the framework detected 26 services, enriched 34 CVEs, produced Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-17 in cs.CR). Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI); Networking and Internet Architecture (cs.NI). Pagina del lavoro: https://arxiv.org/abs/2609.18120 — 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-15T13:56:52.838Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-17?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).