NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Differential Privacy and Natural Language Processing to Generate Contextually Similar Decoy Messages in Honey Encryption Scheme

Kunjal PanchalarXiv 2020

Published in 2020 by Kunjal Panchal, this research explores a sophisticated intersection of cryptography and modern artificial intelligence to enhance secure communication. The study addresses a critical vulnerability in decoy-based security: making "fake" messages indistinguishable from "real" ones to a sophisticated attacker.

The Context Gap in Honey Encryption

Traditional encryption typically returns an error or gibberish when an incorrect password is entered. Honey Encryption (HE) improves upon this by returning a plausible-looking "decoy" message for every incorrect guess. This forces an attacker to manually verify every result, effectively neutralizing brute-force attacks.

However, existing HE schemes suffer from a "context gap." If an attacker knows the general topic of a conversation (e.g., "military strategy") but the HE system generates a decoy about an unrelated topic (e.g., "gardening"), the attacker can immediately discard that password guess. To be truly effective, decoys must be both grammatically correct and contextually relevant to the expected conversation without leaking the actual secrets of the original message.

Proposed Methodology

The paper proposes a multi-stage pipeline designed to generate "smart" decoys that maintain semantic consistency:

  1. Text Classification: Using the Brown Corpus and a Naive Bayes classifier, the system identifies the category of the original message (e.g., Politics, Sports, Financial).
  2. Keyword Extraction: TF-IDF (Term Frequency-Inverse Document Frequency) is employed to identify the most significant words defining the message's context.
  3. Semantic Expansion: To find similar but distinct words, the system utilizes WordNet. It navigates the lexical hierarchy to find a general category (hypernym) and then selects a random "sibling" (hyponym). For example, the keyword "dog" might be abstracted to "canine" and then replaced with "wolf."
  4. Word Embeddings: Word2vec ensures that new keywords maintain semantic similarity within a high-dimensional vector space.
  5. Neural Generation: A transformer model, such as GPT-2 or Grover, takes these modified keywords and synthesizes a full, grammatically correct message.
Architecture of the transformer-based generation module for predicting the next word in a sequence.

Mathematical Privacy Guarantees

A core contribution of the paper is the application of $ε$-differential privacy. Specifically, the author uses a metric-based version called Earth Mover’s Privacy. By using Earth Mover’s Distance—a measure of the "work" required to transform one probability distribution into another—the author provides a formal security proof for natural language generation, which is traditionally difficult to quantify mathematically.

Key Results and Evaluation

The system was evaluated by measuring how effectively an automated discriminator (the adversary) could distinguish the original message from decoys at various privacy levels ($ε$):

  • High Privacy Performance: At $ε = 10$, the adversary’s success rate in identifying the original message based on author style was remarkably low, ranging from 2% to 4% when 500 decoys were present.
  • Contextual Consistency: When the adversary attempted to distinguish messages based on context (topic) rather than style, the success rate remained low (approximately 16-33% for high-privacy settings), indicating that the decoys effectively "blend in" with the expected topic.
  • Privacy Trade-offs: The results demonstrate a clear trade-off: as the privacy budget ($ε$) increases, the decoys become more varied, but the adversary finds it marginally easier to isolate the original message.
Adversary success rate (%) based on author style for varying privacy budgets (ε) and decoy message counts.

Limitations and Future Directions

While the framework significantly advances decoy generation, some limitations remain. The system currently relies on the Brown Corpus; if a message falls outside its 46 categories, classification may fail. Additionally, while context is preserved, "stylometry" (an individual's unique writing style) might still serve as a fingerprint. Future work may involve "style transfer" to make decoys mimic the original sender's specific writing habits and moving toward unsupervised context extraction to handle niche topics more flexibly.

Summary updated

Abstract

Honey Encryption is an approach to encrypt the messages using low min-entropy keys, such as weak passwords, OTPs, PINs, credit card numbers. The ciphertext is produces, when decrypted with any number of incorrect keys, produces plausible-looking but bogus plaintext called "honey messages". But the current techniques used in producing the decoy plaintexts do not model human language entirely. A gibberish, random assortment of words is not enough to fool an attacker; that will not be acceptable and convincing, whether or not the attacker knows some information of the genuine source. In this paper, I focus on the plaintexts which are some non-numeric informative messages. In order to fool the attacker into believing that the decoy message can actually be from a certain source, we need to capture the empirical and contextual properties of the language. That is, there should be no linguistic difference between real and fake message, without revealing the structure of the real message. I employ natural language processing and generalized differential privacy to solve this problem. Mainly I focus on machine learning methods like keyword extraction, context classification, bags-of-words, word embeddings, transformers for text processing to model privacy for text documents. Then I prove the security of this approach with e-differential privacy.
BibTeX
@misc{panchal2020differential,
  author = {Kunjal Panchal},
  title = {{Differential Privacy and Natural Language Processing to Generate Contextually Similar Decoy Messages in Honey Encryption Scheme}},
  year = {2020},
  eprint = {2010.15985},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.15985},
}
Figure