LanG 2.0: Energy-Efficient Agentic AI for Semi-Automated Security Operations at Scale

Anes Abdennebi, Nadjia Kara, Laaziz Lahlou, Hakima Ould-SlimanearXiv 2026

TL;DR

LanG 2.0 is an agentic AI system for Security Operations Centers (SOCs) that replaces massive, energy-hungry "frontier" models with small, local, fine-tuned models protected by rigorous structural safeguards. It achieves state-of-the-art performance in threat detection and investigation while being up to 650 times more energy-efficient and significantly more resilient to adversarial attacks.

What Problem Does This Paper Address?

Security analysts are drowning in data. Modern SOCs must sift through terabytes of logs and alerts to find hidden intrusions—a process that currently takes an average of 194 days to identify a breach. While Large Language Models (LLMs) offer a potential solution, using top-tier "frontier" models (like GPT-4 or Claude) for every event is prohibitively expensive, environmentally unsustainable, and introduces new security risks like prompt injection. The authors tackle the challenge of creating a system that is not only accurate but also affordable, scalable, and secure by design.

Methods

The core of LanG 2.0 is an agentic execution plane (see Figure 1) that orchestrates specialized AI agents through a multi-stage workflow.

Fig. 1. Agentic execution plane as an execution trace. Columns are agent graph steps, lanes the principal in control. Orange stations call a model, blue ones are deterministic. The analyst reviews the classification and the rules, and decides at the dashed third checkpoint on rules an engine rejects. Only the deployment agent (padlock) writes rules. Model inputs and outputs cross a guardrail (violet), every action is appended to the hash chained ledger, and energy accrues only at model calls.

Key innovations include:

  • Structural Safeguards: Instead of relying solely on model accuracy, LanG 2.0 enforces "guarantees" through its architecture: every correlation must share a common entity (anchored correlation), analysts must approve all SOC changes, and a tamper-evident ledger records every action.
  • Anchored Multihook Correlation: It uses a graph-based approach with eight different "hooks" (e.g., temporal proximity, IP linkage, behavioral similarity) to group related events. Crucially, it requires an "entity witness" (like a shared IP or account) for every link to prevent unrelated attack stages from being incorrectly merged.
  • Site-Specific Baselines: For network detection, the system learns the "normal" traffic patterns of a specific tenant's network. This allows it to identify anomalies more reliably than pre-trained models, which often fail to generalize across different network environments.
  • Fine-tuned Local Agents: The authors replace general-purpose LLMs with small models (1.7B to 8B parameters) fine-tuned for specific tasks like alert classification and writing detection rules (e.g., Snort, YARA).
  • Carbon Plane: A built-in monitoring system tracks the energy consumption and carbon footprint of every AI operation, allowing SOCs to manage their environmental impact.

Datasets

The system was evaluated on a diverse set of data:

  • Network Flows: Eight datasets from five different networks (including UNSW-NB15, ToN-IoT, and BoT-IoT) using three different exporters.
  • Real-world Alerts: 13 million pieces of evidence from Microsoft Defender XDR (the GUIDE dataset) and simulated alerts from the AIT dataset.
  • Custom Benchmarks: The authors introduced Benchmark B, which tests the ability to correlate multi-stage attack campaigns that span multiple log files and share common egress addresses (like those behind NAT).

Key Insights and Ideas

  • Safeguards over Accuracy: In security, structural guarantees are more important than marginal gains in model accuracy. By keeping a human in the loop and enforcing strict architectural rules, small models can be used safely even if they aren't perfect.
  • The Generalization Gap: Supervised models trained on one network's traffic often perform no better than random guessing on another. Learning a local "baseline of normality" is a much more effective strategy for cross-network detection.
  • Small Models Punch Above Their Weight: For specialized tasks like generating Snort rules or grading incidents, a well-tuned 1.7B parameter model can statistically match the performance of a massive frontier model like Claude Opus 5.5.
  • Energy as a First-Class Citizen: By measuring energy per operation, the authors highlight the massive (650x+) efficiency gains possible by moving away from unmetered frontier model calls.

Key Results

  • Improved Correlation: Anchored correlation raised precision on multi-stage campaigns from 18.75% to 51.81% compared to the previous version of the system.
  • Superior Detection: On unseen networks, LanG 2.0 achieved a 73.42% F1 score with zero false positives, significantly outperforming Claude Opus 5.5 (58.10% F1 with 49% false positives).
  • Massive Efficiency: Fine-tuned local models matched frontier models while using 5.6x to 59x less energy. For flow analysis, the system was at least 650 times more energy-efficient.
  • High Scalability: A single workstation processed 3.33 million records in just 6.4 minutes, demonstrating the system's ability to handle over 30 million records per hour.
  • Resilience: The system's structural safeguards successfully blocked prompt injection and label poisoning attacks that bypassed traditional text-based filters.

Limitations and Future Work

The authors acknowledge that while LanG 2.0 performs well in controlled benchmarks, its effectiveness in real-world production environments remains to be proven. Current limitations include the inability to create "missing links" if entity data is incomplete and occasional errors in generating complex detection rules. Future work will focus on improving entity bridging from asset data, developing more adaptive security tests, and conducting field studies with live SOC teams.

Summary updated

BibTeX
@misc{abdennebi2026lang,
  author = {Anes Abdennebi and Nadjia Kara and Laaziz Lahlou and Hakima Ould-Slimane},
  title = {{LanG 2.0: Energy-Efficient Agentic AI for Semi-Automated Security Operations at Scale}},
  year = {2026},
  eprint = {2610.41072},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.41072},
}
Figure