# SpecGuard: Detecting Multi-Turn LLM Jailbreaks via Specification-Based Runtime Monitoring

DevFeed: [SpecGuard: Detecting Multi-Turn LLM Jailbreaks via Specification-Based Runtime Monitoring](<https://devfeed.tech/articles/specguard-detecting-multi-turn-llm-jailbreaks-via-specification-based-runtime-monitoring-103346.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.36258>)

Author: Junle Li, Siqi Chen, Jiakai Li, Bingzhuo Zhong

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [LLM observability](<https://devfeed.tech/topics/llm-observability.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [auditing](<https://devfeed.tech/tags/auditing.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [false-positive](<https://devfeed.tech/tags/false-positive.md>), [framework](<https://devfeed.tech/tags/framework.md>), [interaction](<https://devfeed.tech/tags/interaction.md>), [jailbreaks](<https://devfeed.tech/tags/jailbreaks.md>), [language](<https://devfeed.tech/tags/language.md>), [linear](<https://devfeed.tech/tags/linear.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-safety](<https://devfeed.tech/tags/llm-safety.md>), [logic](<https://devfeed.tech/tags/logic.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [runtime-monitoring](<https://devfeed.tech/tags/runtime-monitoring.md>), [specification](<https://devfeed.tech/tags/specification.md>)

## AI overview

SpecGuard monitors multi-turn jailbreaks as dialogue traces, where unsafe behavior may only become clear across several turns. It maps observations to causally scoped, evidence-backed facts using a fixed atomic-proposition contract, then checks Linear Temporal Logic rules with symbolic finite automata as each turn arrives. The framework supports buffered runtime checks and retrospective audits; its replayable witnesses identify the triggered rule, supporting facts, and relevant turns. The abstract reports that, on multi-turn safety benchmarks, SpecGuard outperformed representative open-source guard models while maintaining controlled false-positive rates. It is training-free and does not require access to the protected model.

## Source excerpt

arXiv:2610.36258v1 Announce Type: new Abstract: Multi-turn jailbreaks turn dialogue safety into a trace property: a violation may become identifiable only when user intent and assistant behavior are considered across multiple turns. Existing guard models largely classify individual messages or exchanges and return risk scores or labels, without executable safety semantics or a formally checkable decision trail. We present SpecGuard, a training-free, specification-driven framework for monitoring multi-turn LLM interactions. SpecGuard uses a fixed atomic-proposition contract to map natural-language observations into causally scoped, evidence-backed facts, and expresses forbidden interaction patterns as Linear Temporal Logic specifications. Each specification is compiled into a symbolic finite automaton that incrementally consumes the resulting dialogue trace. The same monitoring mechanism supports buffered runtime checking and retrospective auditing, while accepting runs produce replayable witnesses that identify the triggered specification, supporting facts, and relevant dialogue turns. Experiments on multi-turn safety benchmarks show that SpecGuard consistently outperforms representative open-source guard models while maintaining controlled false-positive rates. These results demonstrate a practical path from heuristic risk classification toward formally specified, verifiable, and auditable LLM safety monitoring, without learned detector parameters or access to the protected model.