mlsanityData to 7 Oct 2026

Assessing Spear-Phishing Website Generation in Large Language Model Coding Agents

arXiv 2602.13363 ↗First posted 13 Feb 2026cs.CR cs.AIcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Large Language Models are expanding beyond being a tool humans use and into independent agents that can observe an environment, reason about solutions to problems, make changes that impact those environments, and understand how their actions impacted their environment. One of the most common applications of these LLM Agents is in computer programming, where agents can successfully work alongside humans to generate code while controlling programming environments or networking systems. However, with the increasing ability and complexity of these agents comes dangers about the potential for their misuse. A concerning application of LLM agents is in the domain cybersecurity, where they have the potential to greatly expand the threat imposed by attacks such as social engineering. This is due to the fact that LLM Agents can work autonomously and perform many tasks that would normally require time and effort from skilled human programmers. While this threat is concerning, little attention has been given to assessments of the capabilities of LLM coding agents in generating code for social engineering attacks. In this work we compare different LLMs in their ability and willingness to produce potentially dangerous code bases that could be misused by cyberattackers. The result is a dataset of 200 website code bases and logs from 40 different LLM coding agents. Analysis of models shows which metrics of LLMs are more and less correlated with performance in generating spear-phishing sites. Our analysis and the dataset we present will be of interest to researchers and practitioners concerned in defending against the potential misuse of LLMs in spear-phishing.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 17 of its 30 references that are in the map. First posted on arXiv 13 Feb 2026.

Builds on

17 of 30 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025Personalized Attacks of Social Engineering in Multi-turn Conversations: LLM Agents for Simulation and Detection18 Mar
  2. 2024LLM Agents can Autonomously Hack Websites6 Feb

Other references · 15

  1. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  2. 2023Using an LLM to Help With Code Understandingcited by 222
  3. 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 99
  4. 2023Spear Phishing With Large Language Modelscited by 49
  5. 2025AutoAgent: A Fully-Automated and Zero-Code Framework for LLM Agentscited by 49
  6. 2025Large Language Models Pass the Turing Testcited by 48
  7. 2024CodeAgent: Autonomous Communicative Agents for Code Reviewcited by 33
  8. 2024LLMs in Web Development: Evaluating LLM-Generated PHP Code Unveiling Vulnerabilities and Limitationscited by 21
  9. 2024Next-Generation Phishing: How LLM Agents Empower Cyber Attackerscited by 14
  10. 2023Copilot for Xcode: Exploring AI-Assisted Programming by Prompting Cloud-based Large Language Modelscited by 11
  11. 2016Breaching the Human Firewall: Social engineering in Phishing and Spear-Phishing Emailscited by 7
  12. 2024Prompted Contextual Vectors for Spear-Phishing Detectioncited by 5
3 more
  1. 2025The Impact of Emerging Phishing Threats: Assessing Quishing and LLM-generated Phishing Emails against Organizationscited by 4
  2. 2025Training Users Against Human and GPT-4 Generated Social Engineering Attackscited by 2
  3. 2025PiMRef: Deducing Ever-evolving Spear-phishing Emails with Knowledge Base Invariantscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024When LLMs Go Online: The Emerging Threat of Web-Enabled LLMs
  2. 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?
  3. 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation
  4. 2026LLM agents security duality: a comprehensive survey of self-security and empowered cybersecurity
  5. 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild
  6. 2025Shadows in the Code: Exploring the Risks and Defenses of LLM-based Multi-Agent Software Development Systems
  7. 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies
  8. 2025Commercial LLM Agents Are Already Vulnerable to Simple Yet Dangerous Attacks