AutoSec-RAN: Specification-Grounded LLM Fine-Tuning for Automated Security Analysis of O-RAN
Organizations: Dept. of Electrical and Computer Engineering, Mississippi State University, USA
Abstract
This paper presents AutoSec-RAN, a specification-grounded large language model (LLM) framework for automated security triage of Open Radio Access Network (O-RAN) testing. Unlike approaches relying on static rule sets or privileged access to raw packet captures, AutoSec-RAN fine-tunes Mistral-7B-Instruct through two Low-Rank Adaptation (LoRA) stages over a curated corpus of 69 O-RAN, 3GPP, and adjacent standards documents, then selectively augments inference with retrieval-augmented generation (RAG) over the same specification index. At inference, the model receives only an investigator-style question and a scenario metadata block, simulating an automated analyst operating without raw packet evidence. AutoSec-RAN is validated on a purpose-built 5G/O-RAN testbed across labeled fronthaul distributed denial of service replay scenarios. A Gemma-4-31B judge LLM scores each candidate's answer on faithfulness, correctness, and actionability relative to a reference authored from full packet capture and log evidence. AutoSec-RAN achieves a mean judge overall score of 0.713 across all 313 evaluation items (0.755 restricted to the five supervised taxonomy classes), clearing the 0.70 reporting threshold, and a blended score of 0.778 (0.808 supervised-only) when cosine similarity over Beijing Academy of Artificial Intelligence (BAAI) General Embedding (BGE) is incorporated as a secondary semantic signal. The framework performs strongest on mitigation and threat-model reasoning (with a mean overall of 0.849 and 0.848, respectively) and identifies a measurable gap on the held-out attack-direction class (0.515), a controlled result that exposes a specific training data requirement. These results establish specification-grounded LoRA fine-tuning combined with RAG retrieval as a viable foundation for automated security validation of AI-native O-RAN.
Figures & tables
| Taxonomy Class | Gemma-4-31B | Qwen2.5-32B | Qwen2.5-72B | ||||
|---|---|---|---|---|---|---|---|
| Mean | Pass @ 0.70 | Mean | Pass @ 0.70 | Mean | Pass @ 0.70 | ||
| Mitigation | 56 | 0.849 | 0.875 | 0.844 | 1.000 | 0.868 | 0.982 |
| Threat Model | 41 | 0.848 | 0.756 | 0.812 | 0.854 | 0.819 | 0.854 |
| Spec Grounding | 59 | 0.758 | 0.525 | 0.782 | 0.881 | 0.804 | 0.847 |
| Detection Signals | 58 | 0.712 | 0.534 | 0.754 | 0.759 | 0.791 | 0.862 |
| Scenario Severity Expectation | 44 | 0.604 | 0.341 | 0.712 | 0.659 | 0.712 | 0.500 |
Cybersecurity
Cybersecurity develops methods to protect digital and cyber-physical systems from attacks, vulnerabilities, data loss, and misuse.
See all 355 papers