Syntax-feedback loop LLM Agents for Firewall Configuration: A Proof-of-Concept Evaluation on Fortinet FortiOS
Year: 2026
Type: preprint
Abstract: Firewall misconfiguration remains a major source of security exposure, and LLMs are increasingly used to translate administrator intent into vendor-specific CLI syntax. Chat-based LLMs operate in an open loop, resulting in an inability to inspect the device, track the device’s state, and see rejected commands, so humans must transcribe and verify their output. We test whether a closed-loop agent mitigates these limits on Fortinet FortiOS 7.4. The proof-of-concept agent combines retrieval over documentation, a persistent state file, a syntax validator, and an SSH execution loop for autonomous execution. Running on Gemini Flash Lite, the proof-of-concept was compared to Gemini 3.1 Pro and ChatGPT-6 on 18 tasks of increasing complexity and variance in a virtualized hypervisor. The agent was able to achieve higher configuration accuracy (0.92 vs 0.75 and 0.81) in a single-run pilot test, and was consistent with the feasibility of such an approach as a proof-of-concept agentic firewall configuration machine.
Author: Saiya, Aryan
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7240925852
