Choosing What to Test: Reasoning about Redundancy and Attack Chains in Neurosymbolic Penetration Testing
Paper: CC BY 4.0. Code: MIT. © 2026 Self Hack Oy. Language-model agents for penetration testing propose attack hypotheses far faster than they can verify them, so an autonomous tester must choose which candidate tests to run within a budget. Tests interact: several may probe the same weakness, and some pay off only together, as an attack chain. We study this choice as the symbolic step of a neurosymbolic loop, modelled as noisy-OR coverage of threats plus pairwise chain value under a budget; how the parameters are estimated is not studied. Rules that rank tests by their own value can lose almost all attainable value, and with chains no polynomial-time method has a constant-factor guarantee under the exponential time hypothesis. On 64 synthetic instances with 100 to 10 000 candidates, ranking lost 22–38% of the attainable value in the default regime, and on small pools still 8.5–17% when 90% of the cost could be spent, whereas a pair-aware greedy averaged 0.53%. Outer approximation over a mixed-integer program proved every optimum of the main benchmark within 98 s, but not on very dense chain graphs; the bound of its first solve certifies any selection against the model without knowing the optimum. With noisy estimates, exact optimisation did worse than the pair-aware greedy (from σ = 0.5 at n = 1000; on small pools only at σ = 1 with 50 candidates); structural errors and planted decoys raised the gaps of all interaction-aware methods to about 3–24% on average, alike across methods, although ranking never caught up. Quantum-inspired simulated bifurcation on a QUBO surrogate matched simulated annealing without a consistent advantage. None of the 41 LLM-based systems we could assess (of 49 screened) is described as optimising this choice over redundancy and chains. Code and instances with proven optima are released.
Authors
- Alperen Ugurlu
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24660315
- Primary Topic
- Information and Cyber Security
- Type
- preprint