← Lab /Security & privacy

LLM-driven SSH simulator reaches 90% command accuracy and high realism

ShellGames provides near-realistic interactive SSH deception with >90% command correctness and state tracking

Security & privacy arXiv 16 Jun 2026 Method Prototype evidence Threat model

Published as “ShellGames: Speculative LLM-Driven SSH Deception”

Why it matters

ShellGames can serve as a more realistic, low-latency honeypot that delays attackers and gathers richer interaction data without exposing real infrastructure.

Summary

ShellGames achieves the highest overall command-level accuracy of 0.898, outperforming GPT-5.4-mini (0.822), ShelLM (0.848) and E-ShelLM (0.843) across a benchmark of 197 single-turn commands and additional multi-turn consistency, filesystem tracking, and robustness tests. The paper reports gains in all task categories (e.g., Math 0.814 vs 0.700 for the baseline) and validates realism with a small user study, though detailed robustness numbers are not provided.

What they found 2

  1. ShellGames attains the highest total command-level accuracy of 0.898, surpassing all baselines.

    “Total Accuracy 0.822 0.848 0.843 0.898”

  2. In the Math category ShellGames reaches 0.814 accuracy, beating GPT-5.4-mini (0.700) and ShelLM (0.786).

    “Math 0.700 0.786 0.771 0.814”

Caveats 4

  • Discrepancies frequently arise in tasks involving hashing: the model produces syntactically valid outputs that do not match the true hash of the input.
  • LLMs lack a grounded, persistent system state beyond their finite context window and system prompts, leading to temporal inconsistencies
  • Their probabilistic nature may lead to semantically incorrect or hallucinated outputs
  • We do not address intrusion prevention or authentication mechanisms, but rather the behavior of ShellGames after adversarial access has been established.

What’s new here 4

  • Speculative command execution that precomputes likely responses to reduce latency
  • Smart routing that offloads interactive commands to a sandboxed backend
  • Subversion detection classifier for prompt-injection and jailbreak protection
  • Ad-hoc memory management with explicit filesystem and command-history state

Threat model stated by the source

AdversaryAn attacker who has obtained a remote interactive shell (e.g., via SSH) and can issue arbitrary commands over long-lasting sessions.
CapabilityIssue arbitrary shell commands, craft prompt-injection or jailbreak inputs, adapt strategy based on observed responses.
AssumesThe attacker is unaware of the presence of ShellGames.; Interaction is limited to the exposed shell interface; no out-of-band visibility into the underlying system.