Skip to content
Preprint

Verification-Guided Specification Synthesis with Large Language Models for Intrusion Detection Rules

Aug 2026 · 0 citations · 19 references
Computer Science

TL;DR

This study presents a verification-guided specification synthesis framework for generating Suricata rules directly from HTTP request traces, which achieves a detection rate of 81.5% while maintaining a false positive rate of 0.0%.

Abstract

Attacks against Internet-connected IoT devices continue to increase; however, transforming observed attack traffic into deployable intrusion detection system (IDS) rules remains largely a manual process. Recent studies have explored using large language models (LLMs) to generate IDS rules; nonetheless, existing approaches often require auxiliary information beyond observed traffic or generate rules without validating their detection logic against benign traffic. This study presents a verification-guided specification synthesis framework for generating Suricata rules directly from HTTP request traces. Instead of having an LLM generate IDS rules in a single step, an LLM first identifies a vulnerable parameter and synthesizes a semantic detection specification. These specifications are iteratively refined through counterexample-guided inductive synthesis (CEGIS), in which benign traffic samples serve as counterexamples during synthesis and verification. Verified specifications are then deterministically compiled into Suricata rules. Experiments on 281 real-world CVEs and benign traffic collected from real IoT devices show that the proposed method achieves a detection rate of 81.5% while maintaining a false positive rate of 0.0%. An ablation study also demonstrates that CEGIS-based verification improves detection performance while maintaining a low false positive rate.

View source

Similar papers

Review Sep 2026

From Source Code to Network Profile: Automated and Traceable MUD Profile Generation for IoT Devices

The Manufacturer Usage Description (MUD) standard allows IoT manufacturers to define expected network behaviors in a MUD file. This file can be translated into enforceable access-control policies, restricting compromised devices to operate solely through manufacturer-defined communication patterns. However, practical a...

Alessandro Lotto, Abdulla R. A. Almenhali, Savio Sciancalepore et al. · 0 citations
#software testing Preprint Sep 2026

LLMSec-AV: A Vulnerability Taxonomy and LLM-Driven Software Weakness Discovery Framework for Autonomous Vehicles

LLMSec-AV introduces an AV-specific, machine-readable vulnerability taxonomy for weakness discovery and shows that LLMs can complement conventional analyzers by identifying and organizing safety-relevant findings in real AV software.

Md. Wasiul Haque, Sagar Dasgupta, Mizanur Rahman · 0 citations
Open access Oct 2026

Uniting Bounded Verification and Transformer-Based Learning for Proactive IoT Security

The proliferation of Internet-of-Things (IoT) ecosystems has introduced sophisticated interaction threats that emerge from unintended coordination between multiple applications, evading traditional single-app analysis. While formal verification provides soundness guarantees for interaction threats detection, it suffers...

Md Rashedul Hasan, Hamid Bagheri · 0 citations
#artificial intelligence Preprint Aug 2026

CAITLYN: Can LLM Agents Autonomously Synthesize Defenses against Emerging Injection Attacks?

This work proposes Continuous Agents for Injection Threats via Lifelong Yielding Nexus (CAITLYN), an agent-agnostic defense middleware that matches the detection performance of state-of-the-art defenses at lower token overhead than LLM-as-a-judge baselines.

Zi Liang, XiaoYu Xu, Yanyun Wang et al. · 1 citation
Preprint Sep 2026

RuleAutoPilot: Synthesizing Deployable Suricata Rules from Network Traffic

Rule-based Intrusion Detection Systems (IDS) such as Suricata are central to network security, yet crafting effective detection rules demands deep expert knowledge and cannot keep pace with emerging threats. Existing LLM-based approaches can reduce analyst effort, but they either rely on curated threat intelligence tha...

Mughees Ur Rehman, Aritran Piplai, Murat Kantarcioglu · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.