mlsanityData to 7 Oct 2026

PenHeal: A Two-Stage LLM Framework for Automated Pentesting and Optimal Remediation

arXiv 2407.17788 ↗First posted 25 Jul 2024cs.CRcited by 30

Not on the map. Why?

Abstract (arXiv)

Recent advances in Large Language Models (LLMs) have shown significant potential in enhancing cybersecurity defenses against sophisticated threats. LLM-based penetration testing is an essential step in automating system security evaluations by identifying vulnerabilities. Remediation, the subsequent crucial step, addresses these discovered vulnerabilities. Since details about vulnerabilities, exploitation methods, and software versions offer crucial insights into system weaknesses, integrating penetration testing with vulnerability remediation into a cohesive system has become both intuitive and necessary. This paper introduces PenHeal, a two-stage LLM-based framework designed to autonomously identify and mitigate security vulnerabilities. The framework integrates two LLM-enabled components: the Pentest Module, which detects multiple vulnerabilities within a system, and the Remediation Module, which recommends optimal remediation strategies. The integration is facilitated through Counterfactual Prompting and an Instructor module that guides the LLMs using external knowledge to explore multiple potential attack paths effectively. Our experimental results demonstrate that PenHeal not only automates the identification and remediation of vulnerabilities but also significantly improves vulnerability coverage by 31%, increases the effectiveness of remediation strategies by 32%, and reduces the associated costs by 46% compared to baseline models. These outcomes highlight the transformative potential of LLMs in reshaping cybersecurity practices, offering an innovative solution to defend against cyber threats.

Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). First posted on arXiv 25 Jul 2024.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 23; 2026: 5.

30 papers.

Sort:

By area:

  1. 2025VulnBot: Autonomous Penetration Testing for A Multi-Agent Collaborative Frameworkcited by 30
  2. 2025Multi-Agent Penetration Testing AI for the Webcited by 19
  3. 2025Incalmo: An Autonomous LLM-assisted System for Red Teaming Multi-Host Networkscited by 17
  4. 2025A Framework for Evaluating Emerging Cyberattack Capabilities of AIcited by 15
  5. 2025Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challengescited by 14
  6. 2025Benchmarking Practices in LLM-driven Offensive Security: Testbeds, Metrics, and Experiment Designcited by 13
  7. 2025OCCULT: Evaluating Large Language Models for Offensive Cyber Operation Capabilitiescited by 12
  8. 2025RapidPen: Fully Automated IP-to-Shell Penetration Testing with LLM-based Agentscited by 10
  9. 2025A Contemporary Survey of Large Language Model Assisted Program Analysiscited by 10
  10. 2025Dynamic Risk Assessments for Offensive Cybersecurity Agentscited by 7
  11. 2025PoCo: Agentic Proof-of-Concept Exploit Generation for Smart Contractscited by 7
  12. 2025AutoPentester: An LLM Agent-based Framework for Automated Pentestingcited by 6
18 more
  1. 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Designcited by 6
  2. 2025ARACNE: An LLM-Based Autonomous Shell Pentesting Agentcited by 4
  3. 2025Automated Penetration Testing with LLM Agents and Classical Planningcited by 4
  4. 2025Agentic AI for Cyber Resilience: A New Security Paradigm and Its System-Theoretic Foundationscited by 4
  5. 2025Detecting Malicious Source Code in PyPI Packages with LLMs: Does RAG Come in Handy?cited by 3
  6. 2024The Best Defense is a Good Offense: Countering LLM-Powered Cyberattackscited by 2
  7. 2025Neuro-Symbolic AI for Cybersecurity: State of the Art, Challenges, and Opportunitiescited by 2
  8. 2025HackWorld: Evaluating Computer-Use Agents on Exploiting Web Application Vulnerabilitiescited by 2
  9. 2026APT-Agent: Automated Penetration Testing using Large Language Modelscited by 2
  10. 2025Construction and Evaluation of LLM-based agents for Semi-Autonomous penetration testingcited by 1
  11. 2025ACSE-Eval: Can LLMs threat model real-world cloud infrastructure?cited by 1
  12. 2025Cybersecurity AI: Evaluating Agentic Cybersecurity in Attack/Defense CTFscited by 1
  13. 2026Enhancing Linux Privilege Escalation Attack Capabilities of Local LLM Agentscited by 1
  14. 2024The Game-Theoretic Symbiosis of Trust and AI in Networked Systemscited by 0
  15. 2025From Capabilities to Performance: Evaluating Key Functional Properties of LLM Architectures in Penetration Testingcited by 0
  16. 2026AutoEG: Exploiting Known Third-Party Vulnerabilities in Black-Box Web Applicationscited by 0
  17. 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectivescited by 0
  18. 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMscited by 0