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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Syntax-feedback loop LLM Agents for Firewall Configuration: A Proof-of-Concept Evaluation on Fortinet FortiOS

Aryan Saiya
Zenodo (CERN European Organization for Nuclear Research)
Network Security and Intrusion Detection
preprint

Syntax-feedback loop LLM Agents for Firewall Configuration: A Proof-of-Concept Evaluation on Fortinet FortiOS

Aryan Saiya
preprint en

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.

Zenodo (CERN European Organization for Nuclear Research)
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon