← Lab /AI/ML

LLMs approximate optimal security controls but are fragile to graph complexity and prompt framing

LLMs can generate defense strategies close to a game-theoretic optimum when given explicit attack-graph structure, yet their performance degrades with larger graphs and small prompt changes

AI/ML arXiv 21 Aug 2026 Measurement Simulation evidence

Published as “Structured but Fragile: On the Limits of LLMs in Cybersecurity Decision-Making”

Why it matters

LLMs should be used as assistive decision-support tools within structured pipelines, with results cross-checked against formal optimisation methods.

Summary

LLMs can approximate structured cybersecurity reasoning when the attack-graph structure is explicitly provided, often producing strategies close to a game-theoretic optimum, but this capability is fragile and degrades with graph complexity, framing changes, and loss of topology. They achieve optimal risk on many instances yet suffer timeouts on larger graphs and can be misled by simple relabeling of poor strategies as "optimal". The evidence is mixed: alignment with the baseline is observed on small, well-specified problems, but significant sensitivity and scalability limits undermine reliability.

What they found 3

  1. When explicit attack-graph structure is provided, LLMs often produce coherent strategies close to the optimisation baseline.

    “When explicit attack-graph structure is provided, they often produce coherent strategies close to the optimization baseline.”

  2. LLM behaviour becomes increasingly fragile with graph complexity and is highly sensitive to framing.

    “LLM behaviour becomes increasingly fragile with graph complexity and is highly sensitive to framing.”

  3. All LLM-generated solvers attain optimal risk when they finish, but some models time-out on larger graphs.

    “All LLMs defences provide optimal risk, however ChatGPT times-out on Graph 24 (70 nodes) and Gemini times out on 7 graphs.”

Caveats 6

  • Performance collapses when attack-graph topology is removed, with simple greedy heuristics becoming strongest ("When topology is removed, performance collapses toward simple effectiveness-based heuristics, with Greedy appearing strongest").
  • A poor strategy labelled "optimal" can be ranked higher than genuinely strong strategies ("a poor strategy labeled “optimal” may be ranked by LLMs above genuinely strong strategies").
  • Scalability is limited: LLM solvers run 8-100× slower than the purpose-built optimizer and time-out on several large graphs.
  • The optimisation baseline is not intended to represent absolute real-world truth.
  • Scope of this study: ... alignment with the optimisation baseline decreases as graph complexity increases.
  • Scalability is a major limitation: execution times are one to two orders of magnitude higher than the baseline, and some models fail to return solutions on larger graphs due to timeouts.

What’s new here 4

  • A controlled evaluation framework that compares LLM-generated defence portfolios against a formal game-theoretic optimisation baseline over realistic attack-graph scenarios.
  • Systematic analysis of framing, naming, and topology ablations to reveal how superficial cues affect LLM decision quality.
  • Assessment of LLM-generated code solvers for the optimisation problem, measuring both correctness and scalability.
  • Empirical quantification of non-monotonic ranking behaviour where near-optimal strategies are not ranked highest by LLM evaluators.