Making Attackers Pay More: Stateful Deception as a Cost-Exchange Primitive for Cyber Defense in the AI EraMake the Adversary Spend More: Stateful Deception as a Cost-Exchange Primitive for AI-Era Cyber Defense
The authors propose measuring honeypot cost exchange by attacker-specific state and DER; after optimization, the Cowrie–LLM prototype reduces tokens per session by about 63%.
Defenders face enterprise, mission, OT, transportation, or critical infrastructure networks and can deploy sensors, redirect sessions, create decoys, log interactions, and enforce egress control. Adversaries may be bots, humans, semi-automated processes, or AI-assisted agents that can execute commands, upload tools, check consistency across sessions, and attempt prompt injection; it is not assumed that they can compromise the orchestration layer or escape isolation.
- LLMs lower the cost of scanning and adaptive intrusion, while defensive compute and human attention are limited. The authors argue that honeypots should be assessed not only by realism or detection rate but also by the cost exchange between attacker consumption and defender investment.
- The authors propose DER and attacker-specific persistent isolated state, with the LLM only rendering explicit state. The prototype uses Cowrie to handle deterministic commands, and the local LLM handles only unrecognized and uncached commands, with caching, token budgets, and reasoning-leakage filtering added.
- Five open-weight models were tested on a 44-command benchmark and in production mode. Optimization reduced tokens per session from about 13,134 to 4,855 and model calls from 10 to 4; the authors also report that benchmark quality does not predict production quality and that reasoning models leak chain of thought.
- The authors have not yet measured the DER numerator, end-to-end attacker-specific state, multi-attacker isolation, or resistance to fingerprint probing; the quality labels are automated proxies, and the data come from a single non-concurrent session. Future plans include integrating a continuity controller and conducting a three-way decoy comparison.
- Evaluated models
- Gemma 4 26B-A4BLlama 3.1 8BGemma 2 9B-ITGemma 4 E4BQwen 3.6 35B-A3B
- Benchmarks
- 44-command benchmark suitethirteen-command production suitethirteen-command reconnaissance sequence
- Metrics
- Deception Exchange Rate (DER)GOOD responses (%)Tokens/sessionModel callsMean latencyMean tokens
The paper proposes stateful deception as a cost-exchange primitive for cyber defense in the AI era: maintain persistent state for each identified attacker, with the LLM serving only as a constrained renderer of explicit state rather than as storage. The authors formalize this as the deception exchange rate (DER) and implement it in an SSH honeypot using Cowrie with a local LLM. Across five open-weight models, a deterministic layer and prompt optimization reduced per-session defense cost by about 63% compared with a full LLM decoy; only the defense side has been evaluated so far.
Related events and news
1 events · 0 news mentions
- This event's paper
让攻击者付出更多:有状态欺骗作AI网络防御的成本交换原语
Paper analysis
What problem does this paper attempt to solve?
The authors argue for attacker-specific persistent state and DER to address the cost-exchange and continuity problems of generative honeypots.
The core question is how cyber deception in the AI era can consume adversary resources under an explicit defense budget while maintaining a credible environment that is consistent across sessions and isolated from one another.
- Problem setting: The authors argue that LLMs lower the marginal cost of adversary reasoning, malware creation, and adaptive intrusion, while defenders cannot equate sufficient detection capability with sufficient response capability. The paper uses absorption to mean the controlled conversion of security signals and adversary activity into triage, isolation, deception, remediation, and decisions.
- Existing shortcomings: Stateless decoys present a brand-new system each time and do not track individual attack progress; returners may find that files, backdoors, or configuration changes have disappeared, and shared state mixes the traces of different adversaries. The authors argue that looking only at detection rate, dwell time, or generation fluency cannot answer whether deception produces a favorable resource exchange.
- Core hypothesis: The basic unit of deception should be adversary-specific explicit state, not a honeypot instance or a single generated output. Each identified adversary re-enters an isolated environment consistent with its history, and the LLM is only responsible for rendering state under constraints and cannot serve as state storage.
- Threat model:
- Goal: Defenders reduce mission risk through asymmetric cost and actionable intelligence, rather than prolonging interaction at any cost.
- Adversaries: Concurrent, repeat visitors in the set may include bots, human operators, semi-automated processes, or AI-assisted agents.
- Capabilities: Adversaries can execute commands, upload tools, check file and backdoor persistence, compare outputs across sessions, and attempt prompt injection against the LLM service.
- Boundaries: It is not assumed that adversaries can compromise the orchestration layer or escape isolation; defenders also cannot rely on perfect attribution, continuous cloud connectivity, unlimited compute, or continuous human attention.
- Paper contributions: The authors propose the Deception Exchange Rate (DER), a probabilistic continuity allocation mechanism, and a Cowrie–LLM SSH prototype; the experiments measure only defender-side cost and generation failure modes, and full state control and the DER numerator remain future work.
What related research exists?
Related work falls into three lines: honeypot state, LLM decoys, and cost exchange; this paper connects them using explicit state and a measurable DER.
Honeypots, state continuity, and fingerprint risk
- Nawrocki et al. (2016) and Spitzner (2003): Survey honeypot software and data analysis, and introduce honeynets, respectively; the paper uses them to explain the trade-off between cost and depth of behavior capture for low-, medium-, and high-interaction honeypots.
- Cantelli-Forti and Colajanni (2018): Propose stateful honeypots that preserve file changes, tools, rootkits, and backdoors through lightweight virtualization, snapshots, and transparent redirection. This paper adopts their underlying architecture and reformulates informal returner identification as probabilistic continuity estimation.
- Chaudhry et al. (2026): Survey honeypot fingerprinting, detection, and evasion; the paper uses it to illustrate observable traces such as host key drift and disappearing tools, and emphasizes that fingerprint resistance must be measured.
LLMs and hybrid generative decoys
- shelLM (2024) and VelLMes (2025): The former maintains command-level shell interaction, while the latter extends to SSH, MySQL, POP3, and HTTP and conducts human evaluation. The paper notes that shelLM replays prior sessions through model context and deliberately uses chain-of-thought to improve fidelity; this paper instead suppresses visible reasoning on reasoning models.
- Otal and Canbaz (2024), LLMHoney (2025): The former adapts Llama-3-8B on Cowrie command–response pairs; the latter compares 13 backends on 138 commands and finds that mid-sized models with a dictionary-style virtual file system outperform pure-LLM baselines in latency and consistency. This paper explicitly states that the hybrid pipeline is not its own contribution and that the focus is measurement and state constraints.
- DecoyPot (2025), hybrid ICS work, and HoneyGPT (2024): Study generative web API responses, industrial sensor values combined with historical process context, and the flexibility–depth–deception trilemma, respectively.
Cost imposition and security economics
- ranDecepter (2025) and MITRE Engage (2022): The former has ransomware store fake encryption keys across multiple synthetic victims, while the latter uses deception to waste adversary time and raise the cost of operations.
- Game-theoretic work such as Pawlick et al. (2019): Weighs protected value against deception cost under a budget; the paper argues that these models typically treat cost as an abstract scalar rather than a measured quantity on a running system.
- Mongardini et al. (2026): A meta-review noting the need for metrics of adversary consumption and defender cost-benefit beyond detection rate. The authors state that DER is the first cost-exchange tool they know of for running generative honeypots that concretely decomposes inference, tokens, energy, and human supervision.
Comparison and evaluation targets: The experiments use stock Cowrie as the functional realism comparison, a 44-command benchmark, a 13-command production suite, and a 13-command reconnaissance sequence; the above literature is not used as a unified experimental baseline. The authors position this paper as connecting honeypot research and LLM deception research, testing whether stateful, AI-mediated deception can maintain adversary-specific realism at lower marginal defense cost.
How does the paper address this problem?
The method uses DER for unified cost accounting, selects persistent state via probabilistic continuity, and then renders it in layers using Cowrie and a local LLM.
The overall framework is attacker-specific explicit state + constrained LLM rendering + Deception Exchange Rate (DER). Deterministic components hold authoritative state and control paths, and the generative model handles only the remaining input; the current prototype is not yet connected to full per-opponent state control.
DER and relative asset analysis
- The core definition is DER=(∑ai∈ AwiBi)/(Cshared+∑ai∈ ACstate,i+CAI+Chuman+Crisk), where the numerator is task-weighted opponent consumption and the denominator includes shared infrastructure, per-opponent state, AI inference, human supervision and task risk.
- Opponent consumption proxies consist of dwell time, command volume, repeated visits and complexity of uploaded artifacts, each normalized by the maximum within the experiment and weighted; denominator terms are likewise normalized. The conversion factor is a modeling assumption, and the authors require it to be reported together with DER.
- DER is used to compare candidate architectures under fixed weights and has no absolute threshold. The authors consider the denominator directly recordable and the numerator inferable only from behavioral proxies, so sensitivity analysis is needed and results must not be interpreted as precise absolute opponent expenditure.
- Relative asset analysis uses the opponent's utility of continuing action and defensive investment conditions to distinguish consumption from deterrence: deception can raise the opponent's action cost, lower their perceived probability of reaching the real asset, and lower their judgment of the authenticity and usability of the environment they obtain.
State model and continuity control
- Each opponent's state tuple includes file system, processes and services, network exposure surface, credentials and honeytokens, interaction logs and CTI, as well as model context and semantic commitments. State changes are first written to authoritative storage, and the model then generates consistent output from that storage.
- The continuity score for a new session is Γ(r,Si)=∑k=1Kβkφk(r,Si), summing each weak indicator's consistency multiplied by its reliability weight. Indicators may include network origin, authentication method, client fingerprint, timing and tactical command sequence.
- A session enters the corresponding state only if the highest score reaches the assignment threshold and its difference from the second-highest score reaches the margin threshold; otherwise it enters a limbo overlay that shows only non-conflicting artifacts of candidate states, with scores updated as events arrive. If it still does not converge within a finite number of steps, the leading candidate is selected by the fallback threshold or a new state root is created.
- Underlying virtualization, snapshots, copy-on-write and transparent redirection follow existing work; end-to-end connection of the continuity controller to this prototype is still in progress, and Section 7 measures the renderer.
Cowrie–LLM implementation
- Cowrie v2.9.17 runs on an Ubuntu VM and handles SSH, authentication, the virtual file system and native commands; a local model provides fallback rendering via an OpenAI-compatible endpoint, and the two communicate through a REST API.
- Commands pass in order through shell builtins, an in-code blacklist, Cowrie native implementation and a persistent response cache, and the model is called only on a cache miss. The blacklist, native command and cache-hit paths consume no model tokens; Appendix A and Figure 4 give the full control flow.
- The renderer uses a fixed-role system prompt and truncated session history; the backend supports a separate reasoning field and handles visible chain of thought through reasoning-suppression instructions, post-generation pattern filtering and a small number of fixed responses. Appendix E gives excerpts of the prompts and filtering rules.
- Lightweight persistence includes genuinely growing authentication logs, uptime that increases monotonically across restarts, saving of file system differences before and after a session, and scheduled regeneration of log dates; the authors explicitly state that these cannot replace per-opponent isolated state.
- Fixed file contents, management scripts, web applications, administrator directories and honeytokens are generated once offline and written into the file system image to reduce runtime model calls.
Measurement and adjudication method
- Benchmark mode bypasses Cowrie and sends the 44 commands directly to the model, covering reconnaissance, system checks, attack tools, inline scripts and simulated dangerous commands; it records latency, prompt/completion tokens and an automatic functional plausibility label.
- An output is labeled bad if it exposes a human system, uses Markdown, is too short for a command that corresponds to large output, contains internal reasoning tags, or incorrectly answers a blacklisted tool; otherwise it is good. good only means it passed the terminal output check and does not mean it is indistinguishable from a real host.
- Production mode runs the full honeypot, with Cowrie handling recognizable commands and passing only the remaining commands to the model; tokens and latency serve as measurements of C_AI in the DER denominator.
What experiments did the paper conduct?
The experiments cover a 44-command benchmark across five models, production cost, and a Cowrie comparison, but do not measure controlled adversary consumption or fingerprint resistance.
Experimental setup
- Models tested: Gemma 4 26B-A4B, Llama 3.1 8B, Gemma 2 9B-IT, Gemma 4 E4B, Qwen 3.6 35B-A3B, five open-weight models in total; the authors say they were chosen for reproducibility and to avoid update drift in closed-source services.
- Benchmark and control: the 44-command benchmark tests the models directly; the production experiment uses the full Cowrie–LLM system, plus a 13-command production suite and 13 reconnaissance sequences, with stock Cowrie as the control.
- Metrics: GOOD response count and pass rate, mean latency, mean tokens; the production side also records tokens per session, number of model calls and latency. GOOD is an automatic terminal plausibility check, not a human realism judgment.
- Hardware and inference: two HP Z2 Tower G9 machines with RTX 5000 Ada 32 GB; models use Q4_K_M quantization, 4096-token context, temperature 0.1, and dynamic max_tokens of 384/256/128, see Table 3 for details.
- Repetition and samples: Table 3 states 5 runs per model, and a measurement is accepted only if five consecutive results are identical; the bad count for the 44-command benchmark is 44 minus good. Production numbers come from a single, non-concurrent session, and the paper reports no human review or reviewer model.
Main results
The 44-command benchmark results are as follows, per Table 4; Figure 3 gives the same pass rate and latency annotations.
Swipe horizontally to read the table
Model GOOD Pass rate Mean latency Mean tokens Gemma 4 26B-A4B 43/44 97% 0.94 s 1242 Llama 3.1 8B 42/44 95% 0.95 s 1188 Gemma 2 9B-IT 41/44 93% 1.68 s 1253 Gemma 4 E4B 40/44 90% 0.70 s 1217 Qwen 3.6 35B-A3B 32/44 72% 1.68 s 1382 - Authors' interpretation: the top models differ on the good label by only a few commands, within the discriminating power of this suite, so the authors do not rank them finely and consider important differences to emerge only in production mode.
- Cost changes: Table 1 reports tokens per session falling from an initial ≈13,134 to ≈7,259 after adding native Cowrie commands, then to ≈4,855 after further optimization; model calls fall from 10 to 6 and then to 4, and mean latency from ≈3 s to ≈2 s and then to ≈1.5 s.
- Summary figures: the abstract states that the deterministic layer and prompt optimization reduce defense cost per session by about 63% relative to a naive all-LLM decoy; Section 7 instead phrases it as traffic per session falling by about 63%, from about 13.1k to 4.9k tokens.
Differences between benchmark and production modes
- What was measured: Figure 2 compares the 44-command benchmark with the naive production good rate before mitigation measures. Gemma 4 26B-A4B falls from about 97% to about 57%, and Llama 3.1 8B rises from about 95% to about 100%; the authors therefore state that benchmark scores do not predict in-honeypot performance well.
- Authors' explanation: in production mode Cowrie answers the easy deterministic commands, and the model receives only the harder, rarer tail commands; reasoning behavior also differs across model families and affects output.
- Mitigation results: the authors report that the Section 6 measures restore Gemma 4 26B-A4B from about 57% to about 100% on the 13-command production suite, which costs about 0.90 s per model call on average; model calls in production mode have a mean latency of about 1.1 s.
Reasoning leakage and stock Cowrie control
- Reasoning leakage: the authors classify Llama 3.1 8B and Gemma 2 9B-IT as instruction models that output terminal text directly, and Gemma 4 26B-A4B and Qwen 3.6 35B-A3B as models that interleave visible reasoning, stating that the latter expose reasoning on almost every command.
- Token composition: the authors report that about 3% and 9% of tokens for Gemma 4 26B-A4B and Qwen 3.6 are useful output; for Llama 3.1 8B about 8%, which the authors attribute to Cowrie filtering leaving only complex tail commands rather than to reasoning leakage.
- Functional comparison: among the 7 representative commands in Table 2, stock Cowrie produces outputs such as command not found, uninterpolated format strings, option-handling errors or segmentation faults, while the LLM-enhanced decoy gives corresponding log, version, port, SUID, CPU or permission results. The authors explicitly state that this is not a resistance test against deliberate fingerprinting probes.
Other ablations and analyses
- Session history: optimizations include truncating from 40 exchanges to 20 and limiting each message length; Table 3 records 20 msgs, 150 char, and the gain from this item is not reported separately.
- Other optimizations: the three-tier dynamic token budget, system prompt compression, persistent cache, in-code blacklist and model warm-up at connection are combined into Table 1 and not ablated individually.
- Example DER: Appendix D gives DER ≈ 0.5 for a representative session, with a burn proxy of about 0.29 and normalized defense cost of about 0.6; the authors state the values only demonstrate the calculation procedure and do not constitute an asymmetric cost claim.
- Untested items: the paper conducts no blinded human study, controlled opponent experiment or deliberate fingerprinting test, and does not measure the DER numerator.
What are some points that can be further explored?
The authors list full state, the DER numerator, and adversarial credibility as future work; existing evidence is limited to the renderer and single-session measurements.
Limitations and future directions noted by the authors
- Boundaries of DER interpretation: Section 9 states that the denominator can be measured directly while the numerator can only be inferred from behavioral proxies, so DER is suitable for ranking under stated assumptions rather than for claiming precise adversary expenditure.
- Fingerprint resistance: Section 9 notes that adversaries can actively identify deception through cross-session comparison, external dependency queries, or virtualization detection, and that fingerprint resistance must be measured, not assumed.
- Current evaluation scope: Section 9 explicitly states that the quality labels are automated proxies, the numbers come from a single non-concurrent session, and absolute values depend on the models and configuration used; the numerator has only the Equation 2 proxy, with no controlled adversary study.
- State integration: Section 9 plans to connect the Section 5 continuity controller and an existing stateful substrate to the renderer to test per-adversary persistent state and multi-adversary isolation end to end.
- Full DER and three-way comparison: Section 9 plans to declare proxy weights and perform sensitivity analysis, drive the adversary side with the abliterated form of the same model version, and compare stateless, stateful non-LLM, and AI-assisted stateful decoys under a common token, storage, latency, and analyst budget.
- Credibility and injection research: Section 9 plans to test credibility against adversaries who actively probe for deception and to explore treating prompt injection attempts as an adversary identity indicator and increasing their resource consumption.
Scope of experimental coverage
- The models tested are five open-weight models, all run on the 44-command benchmark; 5 runs per model, with acceptance requiring five consecutive identical runs (Table 3, Table 4).
- Defender-side measurements cover tokens, model calls, and latency; Table 1 compares three optimization stages and does not report the independent effect of each optimization.
- The functional realism comparison is a 13-command reconnaissance sequence between stock Cowrie and the LLM-enhanced decoy, with Table 2 showing 7 representative commands from it.
- Production measurements come from a single, non-concurrent session; the paper does not report human blind tests, human agreement, controlled adversary consumption, or concurrent multi-adversary isolation results (Section 7, Section 9).
- The current prototype runs only the LLM renderer and lightweight persistence; the continuity controller and stateful substrate have not yet been connected to this prototype (Section 5, Section 6).
Summarize the main content of the paper
The paper proposes a stateful cost-exchange framework and uses a Cowrie–LLM prototype to measure defense cost and generation failure modes.
This is a cyber deception defense paper whose core position is that honeypots should be evaluated by the exchange relationship between attacker consumption and defender investment, not only by detection rate or output realism.
- Problem: Returning adversaries discover that files, backdoors, and configuration changes in stateless decoys are reset, and shared state across multiple adversaries pollutes attribution and intelligence; meanwhile, generative defense itself consumes compute, energy, and human attention.
- Method: DER compares a task-weighted adversary burn proxy against shared infrastructure, per-adversary state, AI inference, human, and risk costs. Each adversary corresponds to persistent, isolated explicit state; a probabilistic continuity controller assigns sessions, and the LLM only renders state without storing it.
- Prototype: Cowrie handles SSH, authentication, the virtual file system, and native commands, while the local model handles only unrecognized and uncached commands; caching, dynamic token budgets, history truncation, and reasoning filtering are used to control cost and visible chain of thought.
- Main results: In Table 1, tokens per session drop from ≈13,134 to ≈4,855, and model calls drop from 10 to 4; in Table 4, on the 44-command benchmark across five models, GOOD ranges from 43/44 for Gemma 4 26B-A4B to 32/44 for Qwen 3.6 35B-A3B.
- Production findings: In Figure 2, Gemma 4 26B-A4B's good rate changes from about 97% on the benchmark to about 57% in production before mitigation, and Llama 3.1 8B changes from about 95% to about 100%; the authors conclude from this that benchmark quality cannot predict production quality and that reasoning models require active suppression of reasoning leakage.
- Scope of conclusions: The authors argue that a deterministic core plus constrained rendering can yield bounded defender-side cost, but the DER numerator, full per-adversary state, multi-adversary isolation, and fingerprint resistance still await full evaluation; if a stateful non-LLM baseline achieves the same effect at lower cost, the authors say this would likewise be a valuable result.