Syntax-feedback loop LLM Agents for Firewall Configuration: A Proof-of-Concept Evaluation on Fortinet FortiOS
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.
Authors
- Aryan Saiya (ORCID: https://orcid.org/0009-0001-6597-6974)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24643422
- Primary Topic
- Network Security and Intrusion Detection
- Type
- preprint