arXiv:2610.41072cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41072

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

Anes Abdennebi, Nadjia Kara, Laaziz Lahlou, Hakima Ould-Slimane

Anes Abdennebi, Nadjia Kara, Laaziz Lahlou, and Hakima Ould-Slimane

Abstract—Security operations centers (SOCs) need to turn terabytes of alerts, logs and flows into trusted, affordable decisions to unveil hidden threats. We present LanG 2.0, an agentic system that detects threats, correlates evidence and writes rules, investigating whether small local models can replace frontier models affordably and safely when structural safeguards, not model accuracy, provide the guarantees. It incorporates entity-anchored correlation, human approval of rule changes and a tamper-evident ledger. Tests span eight flow datasets from five networks, real XDR alerts and multistage campaigns. Against its predecessor, campaign correlation precision rises from 18.75% to 51.81%, and rule acceptance from at most 60.00% to 98.33%. Against Claude Opus 5.5, scoring flows against each network's normal traffic detects attacks on unseen networks at 73.42% F1 without false positives, versus 58.10% with 49.00% false positives, for at least 650 times less energy. Finetuned models statistically match it on alert classification and rule writing for 5.6 to 59 times less energy. The work demonstrates LanG's practical scalability, processing 3.33 million records in 6.4 minutes, over 30 million hourly, and its safeguards resisted prompt injection, label poisoning and ledger tampering, so small local models can carry most SOC detection affordably and safely.

Index Terms—Agentic AI, security operations, network intrusion detection, generalization across networks, threat classification, detection rule generation, alert correlation, green AI.

1 INTRODUCTION

A modern security operations center (SOC) sits at the end of many pipelines. A security information and event management (SIEM) system aggregates firewall, proxy and authentication logs. An extended detection and response (XDR) platform, such as Microsoft Defender XDR, or an endpoint detection and response (EDR) agent streams process, file and registry telemetry. Network sensors export flows and packet captures. Each product raises its own alerts with its own severity scale, its own timestamps and its own notion of an entity. The analyst who receives these alerts has to decide which of them describe the same intrusion, in what order the adversary acted, and which hosts, accounts and files were touched. This work is still largely manual. The 2024 IBM and Ponemon study reports a mean of 194 days to identify a breach and 64 more days to contain it [1]. In one SOC, only 0.01% of 14.4 million network alerts were associated with true attacks [2].

Research on this problem follows two main lines. Alert correlation systems link alerts from several products through shared entities, alert graphs or attack stages [3], [4], [5]. Provenance systems build causal graphs from kernel audit records and trace an attack through process, file and socket dependencies [6], [7], [8], but they need whole-system auditing on every host, which few enterprises deploy. Correlators mostly stop at grouping, and only a few recent systems explain their output in plain language [8]. None of them turns the grouped evidence into reviewed detection rules, and none reports what its own computation costs in energy.

Language models are entering SOC tooling for triage, enrichment and report writing [9], [10]. A model call is cheap for one

alert and expensive for a million. For a widely used generative model, a year of inference emits far more than its training [11], and generative inference costs orders of magnitude more energy than models built for one task [12]. A SOC running language models unmetered on every event cannot justify that cost.

Our work presents LanG 2.0 and should be distinguished from our previous work [13], which presents the platform's governance model, agent orchestration, operational controls and unified SOC workbench, mechanisms we do not claim as new here. We evaluate how the platform's cooperating agents turn heterogeneous security data into reviewed classifications, log analysis and candidate detection rules grounded in auditable evidence, at what scale and at what energy cost, and we replace the detection and rule generation models of [13]. Those detectors were trained and tested within single datasets, whereas we train and test on eight flow datasets from five networks and three exporters, real Microsoft Defender XDR alerts and multistage attack campaigns, and show that supervised flow models do not carry over to unseen networks. Those rule generators reached 90.83% and 95.50% acceptance under the validator of that work, but their rules load in the exact engine version requested for only 57.50% to 60.00% of our benchmark incidents, against 98.33% for LanG 2.0.

Our thesis is that a SOC can hand most of the detection phase to small models it trains and runs locally, provided that structural safeguards, rather than model accuracy, carry the guarantees. By structural safeguards we mean four mechanisms that hold whatever a model outputs: every correlation link must share an entity, analysts approve every change to the SOC, only one agent may deploy rules, and a tamper-evident ledger, anchored outside its database, records every action. We test it with three questions. Where do small local agents match a frontier model, and where must a frontier model, a classical model or an analyst take over (Sections 5.4 to 5.7)? Do these safeguards hold when telemetry, labels or the ledger are attacked (Section 5.8)? What does each step cost in energy (Section 5.9)?

  • A. Abdennebi, N. Kara and L. Lahlou are with the Department of Software Engineering and IT, Ecole de technologie supérieure (ETS), Montreal, QC, Canada. E-mail: anes.abdennebi.1@ens.etsmtl.ca, {nadjia.kara, laaziz.lahlou}@etsmtl.ca
  • H. Ould-Slimane is with the Department of Mathematics and Computer Science, Université du Québec à Trois-Rivières (UQTR), Trois-Rivières, QC, Canada. E-mail: hakima.ould-slimane@uqtr.ca
  1. An auditable agentic workflow. An execution graph coordinates detection, classification, log analysis, correlation and rule generation under analyst checkpoints, with an action ledger, guardrails and energy metering for every model call. Autonomous subsystems run the same agents over millions of records without checkpoints and keep every rule in a bucket until an analyst approves it, and two of them analyzed 3.33 million records in 6.4 minutes on one workstation, over 30 million records an hour (Section 5.3).

  2. Anchored correlation. The UICR and the eight hooks come from [13]. We identify phase collapse, the failure mode of that hook graph, and show that entity anchoring fixes it, raising precision on multistage campaigns from 18.75% to 51.81%, that grouping by address remains stronger on real XDR alerts, and that hub pruning keeps anchoring accurate behind a shared egress address (Section 5.2).

  3. Detection across networks and rules validated by engines. Supervised flow classifiers do not transfer between networks, whereas a baseline of a network's normal traffic does, so LanG scores flows against a baseline kept for each tenant. Its rule generator writes rules in the native syntax of six engine versions that load and replay them, not significantly different from Claude Opus 5.5 (Sections 5.4 to 5.6).

  4. Where small local models suffice. Under a preregistered protocol, finetuned agents of 1.7B to 8B parameters match Claude Opus 5.5 on the attack step of real IDS alerts, classical models match them on two of three tasks, and the frontier model remains necessary to name attack families on a new network until about 50 analyst labels exist (Section 5.7).

  5. Safeguards under attack. Injections from published corpora placed in telemetry, poisoned analyst labels and tampering with the ledger are measured against the pipeline, with what each defense stops and misses (Section 5.8).

  6. Measured cost. Energy is measured for every agent operation and for training, and compared with published frontier estimates (Section 5.9). Comparisons report confidence intervals and paired tests, and the benchmarks evaluate methods, not production deployment.