LMSM cuts HarmBench attack success to 3.3% with minor throughput loss
The LMSM framework reduces malicious prompt success from 39.2% to 3.32% while retaining 98.14% of baseline throughput
Security & privacy arXiv 26 Aug 2026 Defense Prototype evidence
Published as “LMSM: LLM Security Framework Inspired by Linux Security Modules”
Why it matters
LMSM gives operators a low-overhead, modular way to turn interpretability signals into enforceable safety rules without redeploying the entire serving stack.
Summary
LMSM-Checkpoint cuts HarmBench attack success from 39.20% to 3.32% while false refusals rise from 2.40% to 4.40% and throughput stays at 98.14% of an unmonitored baseline. The framework separates model-internal evidence, policy evaluation, and enforcement into a shared runtime substrate, letting operators add or replace interpretability backends without rebuilding the serving stack. Experiments on Qwen3-4B show request-level decisions remain stable under scheduler churn and backend swaps. Evidence is drawn from public benchmark prompts, and the reported gains are measured against a matched serving path with monitoring disabled.
What they found 2
- LMSM-Checkpoint reduces HarmBench attack success rate to 3.32% while keeping throughput at 98.14% of a baseline without monitoring.
“LMSM-Checkpoint reduces HarmBench attack success rate from 39.20% to 3.32%, with XSTest false refusals rising from 2.40% to 4.40%, while retaining 98.14% of the throughput of a matched serving path that performs no monitoring work at 32 active sequences.”
- Request-specific decisions are preserved despite scheduler churn and slot reuse.
“All 32 duplicate pairs preserve action, category, and intervention step.”
Caveats 6
- False-refusal rate increases from 2.40% to 4.40% when the LMSM-Checkpoint policy is enabled.
- Throughput is reduced to 98.14% of the unmonitored path, indicating a modest overhead.
- Availability attacks and ordinary resource exhaustion are outside our primary objective.
- We do not authenticate request identifiers or resolve collisions between them.
- Compromise of the serving process or its installed model, backend, policy, or enforcement configuration is outside the threat model.
- The architecture does not inherit kernel isolation or tamper resistance.
What’s new here 4
- Introduces a Linux-Security-Modules-inspired separation of backend, policy, and enforcement for LLM serving.
- Provides a versioned rule library and per-request policy state keyed by stable identifiers, preserving isolation under continuous batching.
- Allows artifact-backed (SAE, transcoder) and task-fitted (dense probe) backends to be swapped without changing request handling code.
- Implements a shared enforcement gate that authorizes buffered output release, enabling multiple active rules and temporal schedules.