Skip to content

HSMLog: Small Language Model-Assisted Hardware Security Module Log Anomaly Detection with Behavioral Analysis

Aug 2026 · 0 citations · 16 references
Computer Science

TL;DR

HSMLog, a two-stage framework for HSM log anomaly detection with retrieval-grounded behavioral analysis, is presented, demonstrating effective anomaly alerting and incident triage in the studied setting.

Abstract

Hardware Security Module (HSM) logs capture security-critical behavior, but anomalies emerge from relationships across event sequences, keys, object states, sessions, and temporal patterns rather than isolated events. Existing methods separate detection from HSM-specific evidence validation and reporting. In this paper, we present HSMLog, a two-stage framework for HSM log anomaly detection with retrieval-grounded behavioral analysis. In Stage 1, a small language model (SLM) identifies candidate alerts from sliding windows of structured HSM events and performs policy-guided assessment using HSM-specific operational rules. In Stage 2, retrieved policies and historical suspicious-key records strictly predating the alert window, together with candidate-related log context, support conservative candidate review and incident analysis. Evaluated on real industrial HSM background logs augmented with anomaly scenarios co-defined with industrial partners, HSMLog achieves 98.97% precision, 96.00% recall, 98.66% anomalous-event coverage, and a 97.46% F1 score, demonstrating effective anomaly alerting and incident triage in the studied setting.

View source

Similar papers

Sep 2026

Rare-Event Memory Updating for Low-Frequency Threat Discovery in Streaming Security Logs

Security operation centers receive continuous log streams from firewalls, endpoint agents, authentication systems, cloud services, and intrusion prevention systems. Low-frequency anomalies are difficult to detect because they may appear as weak signals hidden among repeated benign events and gradually changing operatio...

Ka-Wai Chan, Mei-Ling Ho, Jonathan Tsz Kit Leung · 0 citations
#artificial intelligence Preprint Oct 2026

Beyond Predefined Sinks: Security-Aware Dependency Analysis for LLM Agents

Large language model (LLM)-based agents increasingly connect model-generated decisions to security-sensitive software capabilities such as command execution, filesystem access, network communication, browser control, and external tools. Existing analyses often use predefined sensitive operations as anchors, but operati...

Hang Cui · 0 citations
Preprint Aug 2026

From Noise to Signal: Improving Security Log Anomaly Detection Using LLMs with Endpoint-Specific Logs

Existing approaches to anomalous behaviour log detection, such as Wazuh rely primarily on predefined detection rules, while statistical anomaly detection approaches such as OpenSearch identify deviations from previously observed behavioural patterns. Recent research has investigated LLMs for log anomaly detection becau...

Christopher Henshaw, Gour C. Karmakar · 0 citations
Conference Aug 2026

CTGuard: A Calibrated Cross-System Log Anomaly Detection System for Resilient Cloud and HPC Operations

While system logs can be used to alert cloud and high-performance computing operators to incidents, real-world log anomaly detectors are often unreliable when log streams vary across platforms, when anomalies are highly imbalanced, or when alert thresholds are chosen without proper operational risk control. In this wor...

M. M. N. Weerabangsa · 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
Conference Aug 2026

Optimizing Threat Detection in a Wazuh SIEM Environment through Custom Rule Development and Tuning

Security Information and Event Management (SIEM) platforms are central to modern Security Operations Centers, yet default rule sets often fail to capture the low-level behaviors of emerging Common Vulnerabilities and Exposures (CVEs). This paper presents WAGARD (Wazuh Generative AI Rule Detection), a framework that int...

Kasidat Boonchu, Parkait Kaitticharoon, Napat Cholkuljana et al. · 0 citations

Related blog posts

MIT News · Artificial Intelligence Oct 15, 2026

AI model decodes the language cells use to communicate

A new computational approach reveals how cells communicate to assemble into tissues. This could accelerate stem cell engineering, improve disease models, and inform therapies.

Microsoft Research Blog Oct 15, 2026

Proof-based general-purpose computing with Magnetar

Zero-knowledge proofs can verify computing results without rerunning workloads or exposing sensitive data. Magnetar helps bring them into the mainstream with support for standard programming languages, major speed gains, and quantum-resistant security. The post Proof-based general-purpose computing with Magnetar appeared first on Microsoft Research.

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