cs.CRAug 21, 2026

Structured but Fragile: On the Limits of LLMs in Cybersecurity Decision-Making

Authors: Pasquale Malacaria, Yunxiao Zhang

Organizations: School of Electronic Engineering and Computer Science, Queen Mary University of London, London, UK. · Department of Computer Science, University of Exeter, Exeter, UK.

Abstract

Large language models (LLMs) are increasingly used in cybersecurity workflows, yet it remains unclear whether they can perform structured security reasoning or merely rely on superficial cues and prior knowledge. We study this question in the context of defence selection over attack graphs derived from real-world threat scenarios, including ransomware, supply-chain compromise, cloud abuse, Kubernetes attacks, POS malware, and ICS/OT intrusion. Given a budget constraint, LLMs must select security controls to minimise attacker success. We compare their strategies against each other and against a game-theoretic optimization baseline used as a normative reference for structured reasoning. Our results show that LLMs exhibit conditional competence. When explicit attack-graph structure is provided, they often produce coherent strategies close to the optimization baseline. However, their capabilities are fragile. LLM behaviour becomes increasingly fragile with graph complexity and is highly sensitive to framing. Small prompt changes can substantially alter rankings, and merely relabeling a poor strategy as ``optimal'' dramatically improves its evaluation. We further observe a non-monotonic relationship between formal risk and LLM judgement: strategies closest to the optimum are not necessarily ranked highest by LLM evaluators. To further probe reasoning ability, we ask LLMs to generate solvers for the same optimization problem. While the generated implementations recover the correct high-level formulation, they scale poorly compared to a purpose-built solver. Overall, our findings show that LLMs can approximate structured cybersecurity reasoning under controlled representations, but do not apply it robustly. This has important implications for the design and evaluation of AI-assisted security decision-support systems.

Figures & tables

Explore similar work

CardsList
  1. Reasoning Topology Matters: A Controlled Study of LLM-Based Cybersecurity Analysis

    Sep 21, 2026Jiling Zhou, Aisvarya Adeseye, Antti Hakkala +2LLMs for CybersecurityLLM Reasoning with Graphs

  2. Strengthening Human-Centric Chain-of-Thought Reasoning Integrity in LLMs via a Structured Prompt Framework

    Apr 6, 2026Jiling Zhou, Aisvarya Adeseye, Seppo Virtanen +2Structured PromptingCoT Reasoning

  3. Where Do LLM-based Systems Break? A System-Level Security Framework for Risk Assessment and Treatment

    Mar 8, 2026Neha Nagaraja, Hayretdin BahsiLLM SecurityCybersecurity