SeriCrypt: An LLM-Driven Context-Aware Serialization Framework for Cryptographic Protocols
Maosong Chen, Xi Chen, Mengcheng Ju, Dongliang Zhao, Chunxiang Gu
Key points
From the paper's conclusion- We present SeriCrypt, an LLM-driven, context-aware serialization framework for cryptographic protocols.
Abstract
Constructing syntactically correct and cryptographically valid message sequences is essential for protocol state machine learning, conformance testing, and fuzzing. Unlike plaintext protocols, cryptographic protocols involve complex cross-message state dependencies and cryptographic computation constraints. Existing automated approaches predominantly target text-based or plaintext protocols, leaving cryptographic message construction largely manual. We present SeriCrypt, an LLM-driven, context-aware serialization framework for cryptographic protocols. It employs a large language model to extract field constraints, state dependencies, and cryptographic computation rules from unstructured protocol specifications into a unified structured intermediate representation, formally characterized by a domain-specific language for cryptographic protocols (CDSL). A protocol-agnostic execution engine parses CDSL declarations, automating field value resolution, cryptographic primitive invocation, and byte-stream serialization. As case studies in protocol security testing, we use the framework to construct violation messages targeting specification-defined security constraints and to support protocol fuzzing, evaluating it on mainstream implementations of TLS 1.2/1.3, IKEv1/v2, SSH, and TLCP. SeriCrypt generated message sequences accepted by all evaluated implementations and completed handshakes in every scenario. Security constraint testing revealed five specification violations, and fuzzing reached deeper protocol states with higher code coverage than mainstream fuzzers under the same time budget, demonstrating the framework's practical value for cryptographic protocol security testing.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Verification of Security Properties of Cryptographic ProtocolsarXiv · 2026
- FCP: Formal Context Protocol for Verifying LLM-Generated ArtifactsarXiv · 2026
- Enhancing the Security of Cryptographic ImplementationsPurdue · 2026
- CONTINUITY: Security-Context Contracts for Composable LLM Agent ControlsarXiv · 2026
- A Reproducibility Protocol for Cross-Implementation Evaluation of Post-Quantum ACVP Test VectorsarXiv · 2026
- Do Alice and Bob Dream of the Oracle? Wishful CryptanalysisarXiv · 2026