FINDING · DETECTION
Shadowsocks transmits a fixed-size AEAD-encrypted length field followed by the AEAD-encrypted payload with no support for reducing ciphertext size via fragmentation, while Obfs4 permits input-side padding but not output fragmentation. These designs impose distinct minimum output message lengths, allowing a passive adversary to distinguish between them — and identify short-message sessions — based solely on the minimum observed message length.
From 2023-fenske-security — Security Notions for Fully Encrypted Protocols · §2.4 · 2023 · Free and Open Communications on the Internet
Implications
- Implement output-side length shaping (not just input-side padding): the protocol must be able to emit an arbitrary byte count p on demand, including splitting a single ciphertext record across multiple network messages.
- Ensure no minimum message length exists that is distinct from other FEPs; a distinctive floor value is a passive fingerprint even without payload content analysis.
Tags
Extracted by claude-sonnet-4-6 — review before relying.