← Lab

LLM framework automatically creates valid cryptographic messages and uncovers five spec violations

SeriCrypt can generate syntactically correct, cryptographically valid message sequences that are accepted by implementations and reveal specification violations

arXiv 25 Aug 2026 Method Prototype evidence

Published as “SeriCrypt: An LLM-Driven Context-Aware Serialization Framework for Cryptographic Protocols”

Why it matters

The framework can automate the creation of cryptographically correct test inputs, reducing manual effort in protocol security testing and enabling more effective fuzzing and conformance checking.

Summary

SeriCrypt can automatically construct cryptographically valid message sequences that complete full handshakes for TLS 1.2/1.3, IKEv1/v2, SSH, and TLCP across six mainstream implementations, and its security-constraint testing uncovered five specification violations. The evidence comes from end-to-end experiments showing successful handshakes, five violations, and higher fuzzing code coverage than AFLnet and ChatAFL, but the paper does not report any failures of the framework itself.

What they found 2

  1. SeriCrypt can generate valid message sequences accepted by real implementations and complete handshakes for all evaluated protocols.

    “Results show SeriCrypt can generate valid message sequences accepted by real implementations and successfully complete handshakes across all evaluated scenarios.”

  2. In fuzzing experiments SeriCrypt achieved the highest code coverage on all six protocols within the same time budget.

    “SeriCrypt achieves the highest code coverage on all six protocols (Table VII).”

Caveats 2

  • SeriCrypt currently focuses on the serialization of client messages. Automatically generating response parsers based on the CDSL framework is the next focus of work.
  • manual verification and correcting the LLM-generated PAST.

What’s new here 4

  • Introduces a domain-specific language (CDSL) that captures cross-message state references and cryptographic computation rules.
  • Uses an LLM to extract a structured Protocol Abstract Syntax Tree (PAST) from unstructured specifications, separating knowledge extraction from execution.
  • Provides a protocol-agnostic execution engine that evaluates attribute rules and performs cryptographic operations to serialize messages.
  • Demonstrates that PAST-based structured mutations enable deeper state coverage in fuzzing compared to blind byte-level fuzzers.