Contextual Chart Generation for Cyber Deception

David D. Nguyen, David Liebowitz, Surya Nepal, Salil S. Kanhere, Sharif AbuadbbaarXiv 2024 · DOI

Abstract

In cyber deception, "honeyfiles" serve as decoy documents designed to detect unauthorized network intruders. For these decoys to be effective, they must maintain high semantic consistency across both text and visual elements. This paper introduces HoneyPlotNet, a generative framework that synthesizes realistic, contextually relevant charts. By employing a multimodal multitask Transformer and a multi-head VQVAE, HoneyPlotNet ensures that chart captions, labels, and data trends align logically with the surrounding document text, significantly outperforming general-purpose generative models.

Introduction: The Challenge of Visual Deception

Cybersecurity professionals use honeyfiles to trap hackers by planting realistic-looking fake documents. While Large Language Models (LLMs) can generate convincing text, the visual components—specifically charts and plots—often betray the deception. General-purpose image generators frequently produce "gibberish" text and nonsensical data structures that fail under close scrutiny.

Existing image generators like Stable Diffusion and DALLE2 often produce illegible text and nonsensical data in charts, undermining the realism of decoy documents.

The core challenge is contextual chart generation: creating visual data representations where every element—from axis labels to the numerical trend—is derived from and consistent with the long-form technical context of the document.

Methodology: The HoneyPlotNet Architecture

HoneyPlotNet addresses this by decoupling the generation of text, data shapes, and data scales. The architecture consists of four primary components:

  1. Multimodal Multitask Transformer: Utilizing a T5-based architecture, the model processes document text to simultaneously generate captions, categorical values, series names, and axis titles.
  2. Multi-head VQVAE (Plot Data Model): Instead of direct image synthesis, a Vector Quantized Variational Autoencoder translates "data tokens" from the Transformer into structured numerical values.
  3. Decoupled Scaling: The model learns to predict the "shape" of a trend separately from its "scale" (e.g., distinguishing between percentages and millions). This allows for better generalization across diverse datasets.
  4. Deterministic Rendering: Final charts are rendered using standard libraries like Matplotlib. This eliminates AI-generated visual artifacts, ensuring the output is indistinguishable from human-created scientific plots.

Dataset and Evaluation

The researchers curated the Document-Chart Dataset, comprising 5,418 document-chart pairs harvested from PubMedCentral. This dataset spans five common chart types: line, scatter, vertical bar, horizontal bar, and box plots. To evaluate semantic relevance, the authors introduced Keyword Semantic Matching (KSM), which uses embeddings to verify if chart labels align with the document's conceptual core.

Results and Performance

HoneyPlotNet demonstrates a significant leap in both semantic accuracy and visual realism compared to state-of-the-art LLMs like GPT-4.

A comparative analysis shows that while Stable Diffusion and DALLE2 fail at text legibility, and ChatGPT produces simplified trends, HoneyPlotNet (ours) generates professional, contextually accurate charts.

Key performance metrics include:

  • Semantic Accuracy: HoneyPlotNet achieved a ROUGE score of 0.232, more than doubling GPT-4’s score of 0.116.
  • Data Realism: The VQGAN component reached a Fréchet Inception Distance (FID) of 11.58, indicating high-fidelity data reconstruction.
  • Contextual Consistency: KSM scores confirmed that HoneyPlotNet’s charts are more relevant to the specific "local context" of the document than those from general models.

Conclusion and Future Directions

HoneyPlotNet provides a robust solution for generating high-fidelity decoy documents. By focusing on semantic consistency rather than just visual "preview realism," the framework creates charts that can withstand the scrutiny of an intruder. Future work will focus on reducing label repetition and implementing "style transfer" to match the specific visual branding of various organizations.

Summary updated

BibTeX
@misc{nguyen2024contextual,
  author = {David D. Nguyen and David Liebowitz and Surya Nepal and Salil S. Kanhere and Sharif Abuadbba},
  title = {{Contextual Chart Generation for Cyber Deception}},
  year = {2024},
  eprint = {2404.04854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.04854},
}
Figure