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

TSM: Measuring the Enticement of Honeyfiles with Natural Language Processing

Roelien C. Timmer, David Liebowitz, Surya Nepal, Salil S. Kanhere · DOI

Abstract

In cyber deception, honeyfiles serve as digital traps designed to detect unauthorized intruders. The effectiveness of these traps depends on their "enticement"—the degree to which they appear valuable and relevant to an attacker. This paper introduces Topic Semantic Matching (TSM), a novel metric based on Natural Language Processing (NLP) that quantifies honeyfile enticement. By comparing the topical content of honeyfiles to real documents using semantic embeddings and high-threshold similarity matching, TSM provides a sophisticated, automated way to predict how well a fake file blends into a specific repository. Our evaluation shows that TSM outperforms traditional document-level similarity tools and effectively distinguishes high-quality deceptive content from low-value baselines.

Introduction

Honeyfiles, such as fake financial spreadsheets or technical specifications, are critical tools for early breach detection. However, for a honeyfile to be effective, it must be enticing enough for an attacker to open or exfiltrate. Historically, measuring this quality has been subjective or limited to simple keyword matching between the filename and the surrounding directory.

As organizations transition toward large, searchable document repositories, the internal content of a file has become more significant than its location. Modern attackers often use search terms rather than manual folder browsing to find sensitive data. Consequently, a honeyfile's enticement is increasingly defined by how well its text matches the "local context" of the repository. This paper addresses the lack of automated, content-aware metrics by proposing Topic Semantic Matching (TSM).

Methodology

TSM moves beyond exact word matching to evaluate the underlying meaning of a document's content. The framework consists of four primary stages:

  1. Topic Modeling: The system extracts core topics—clusters of related words—from a set of real documents representing the local context. This is achieved using algorithms such as Latent Dirichlet Allocation (LDA) or Stochastic Block Models (SBM).
  2. Semantic Embedding: Words from both the honeyfile and the extracted topics are converted into high-dimensional vectors (embeddings). This allows the system to recognize semantic similarity between different words, such as "automobile" and "vehicle."
  3. Similarity Calculation: The system calculates the cosine similarity between the honeyfile's word embeddings and the topic word embeddings.
  4. Thresholding: Rather than averaging all similarities, TSM employs a high similarity threshold (e.g., 0.9). This approach mimics an attacker’s behavior of searching for specific, highly relevant keywords. Only matches that exceed this threshold contribute to the final enticement score.

The researchers compared TSM against doc2vec, a standard document-level similarity tool. They found that focusing on specific topical "hooks" via TSM was more effective for measuring enticement than analyzing the document as a holistic vector.

Experimental Setup

To evaluate TSM, the authors developed a new corpus consisting of:

  • Local Context (Real Documents): 1,800 web-scraped files across four distinct categories: Australian customs notices, and academic papers on theater, computer architecture, and botany.
  • Generated Honeyfiles: 498 honeyfiles created using four methods: GPT-2 (fine-tuned for realism), Part-of-Speech (POS) tagging templates, Dependency Parsed Tokens (DPT), and Lorem Ipsum (as a weak baseline).

Key Results and Insights

TSM demonstrated high precision in identifying enticing content. Key findings include:

  • Category Alignment: TSM successfully assigned the highest enticement scores to honeyfiles when they were matched with their corresponding topical categories (e.g., a computer architecture honeyfile scored highest when placed among real computer architecture papers).
  • Baseline Discrimination: The metric clearly distinguished between "strong" honeyfiles (GPT-2 generated) and "weak" ones (Lorem Ipsum), with the latter scoring near zero.
  • Robustness to Paraphrasing: Unlike word-count metrics, TSM recognizes enticement even when a honeyfile uses a different vocabulary than the surrounding files, provided the semantic meanings align.
  • Model Agnosticism: The metric remained consistent regardless of whether LDA or SBM was used for topic modeling and proved stable across varying sizes of local contexts (ranging from 5 to 20 files).

Discussion and Limitations

While TSM represents a significant advancement in automated deception metrics, certain challenges remain. The system currently struggles with homonyms (e.g., distinguishing "good" as a commodity in a customs notice versus an adjective). Future iterations may incorporate part-of-speech-aware embeddings to resolve these ambiguities.

Additionally, topic models can become unreliable when the local context is extremely sparse or consists of very short documents. Finally, while the mathematical results are robust, further human-centric trials are necessary to confirm that high TSM scores correlate directly with the likelihood of a human attacker interacting with the file in a real-world scenario.

Conclusion

Topic Semantic Matching (TSM) provides a scalable, automated method for quantifying the enticement of honeyfiles. By focusing on semantic relevance and topical "hooks," TSM allows security teams to ensure their deceptive assets are effectively integrated into their specific document environments, ultimately improving the detection of unauthorized internal activity.

Summary updated

BibTeX
@inproceedings{timmer2022tsm,
  author = {Roelien C. Timmer and David Liebowitz and Surya Nepal and Salil S. Kanhere},
  title = {{TSM: Measuring the Enticement of Honeyfiles with Natural Language Processing}},
  booktitle = {HICSS},
  year = {2022},
}
Figure