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

📅 2026-08-30
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
HSMLog利用小语言模型和行为分析两阶段方法,从HSM日志中检测异常,实现了高精度和召回率。
📝 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.
Problem

Research questions and friction points this paper is trying to address.

Hardware Security Module
Log Anomaly Detection
Behavioral Analysis
Event Sequences
Temporal Patterns
Innovation

Methods, ideas, or system contributions that make the work stand out.

small language model
behavioral analysis
two-stage framework
HSM log anomaly detection
C
Chia-Hsuan Wu
National Taiwan University, Taipei, Taiwan
D
Dar-Hsin Dustin Wu
National Taiwan University, Taipei, Taiwan
R
Rui Fang
National Taiwan University, Taipei, Taiwan
Y
Yi-Ting Lee
National Taiwan University, Taipei, Taiwan
C
Chia-Chih Lin
National Taiwan University of Science and Technology, Taipei, Taiwan
Ming-Syan Chen
Ming-Syan Chen
National Taiwan University, Taiwan
data miningdatabasemultimedia