HydraPoT: A Configurable Multi-Agent Framework for Cost-Aware LLM-Assisted HoneypotsHydraPoT: A Configurable Multi-Agent Framework for Cost-Aware LLM-Assisted Honeypots
HydraPoT routes honeypot commands by complexity; in the case, cloud tokens decreased by 72.6%, and the authors state cost decreased by 3.7×.
- LLMs can generate dynamic honeypot responses, but cloud models have high cost and latency, and lightweight models may have weaker deception. Existing systems mostly use a single configuration or a fixed policy, making it hard to adjust fidelity according to budget.
- HydraPoT uses impact factors F0–F4 to estimate command complexity, hands commands to Cowrie, a local LLM, or a cloud LLM according to the user policy, and uses a shared SYSTEM_STATE to construct subsequent prompts.
- The authors state the runtime overhead is less than 5%; after state synchronization, the retention rate of 29 command pairs is 100%. The case strategy's six text scores are higher than Cowrie and the local LLM, and lower than the cloud LLM; cloud tokens drop 72.6%, and the authors state cost drops 3.7×.
- The authors list human evaluation, deployment under real attack traffic, and prompt injection mitigation in cost-aware honeypots as future work. The case reports only one routing strategy; the paper does not report the number of repetitions for this fidelity experiment, nor quantitative results for the plugin and SIEM.
- Evaluated models
- DeepSeek-V4 Flashunsloth/Qwen3.5-9B-GGUF
- Benchmarks
- mrheinen/linux-commandsML4Net SSH-Shell-AttacksUbuntu 22.04 virtual machine
- Metrics
- runtime overheadcontext-preservation success rateCosine SimilarityBERTScoreLevenshteinJaro–WinklerBLEUExact MatchLLM-as-a-Judge scorecloud-processed tokensoperational cost
HydraPoT is a configurable multi-agent honeypot framework that combines traditional emulation, lightweight LLMs, and cloud-based large models, routing attacker instructions to appropriate agents according to a configurable complexity policy, and maintaining consistency across agent switches through shared session state. Its runtime overhead is below 5%, it maintains context across heterogeneous agents, and its fidelity approaches that of a pure cloud LLM honeypot; under the case policy, tokens processed in the cloud are reduced by 72.6%, and operational costs are reduced by 3.7 times.
Related events and news
2 events · 2 news mentions
News that mentions this paper
多校团队提出HydraPoT多智能体蜜罐框架
- 公众号 大模型安全研究cites the paper's id or linkHydraPoT:按复杂度动态路由的多智能体蜜罐框架,云端大模型 token 量降 72.6%
、清迈大学的 Sasin Janpuangtong 等发布预印本论文《HydraPoT: A Configurable Multi-Agent Framework for Cost-Aware LLM-Assisted Honeypots》(成本可配的多智能体 LLM 蜜罐框架)。
大模型安全周报:防线开始溃于组合,智能体授权与审计系统性缺口
- 公众号 大模型安全研究cites the paper's id or link大模型安全周报:防线开始溃于组合,智能体授权与审计的系统性缺口
HydraPoT: A Configurable Multi-Agent Framework for Cost-Aware LLM-Assisted Honeypots(https://arxiv.org/abs/2610.27722)
Paper analysis
What problem does this paper attempt to solve?
A single-configuration LLM honeypot must trade off between cost and fidelity; HydraPoT routes by complexity and shares session state.
Existing LLM-assisted honeypots must trade off cloud cost and latency against the possibly weaker deception of lightweight models.
- Scenario: The authors state that the scale and methods of attacks are still growing, and defense needs to observe how attackers discover targets, exploit services and interact with the system. Honeypots expose decoys in a controlled environment and record interactions, so that production systems do not directly bear these risks.
- Existing shortcomings: Low-interaction honeypots have limited preset responses; high-interaction ones are more realistic but harder to operate and higher risk. Medium-interaction systems like Cowrie rely on predefined logic, and may be unrealistic for unexpected or context-dependent commands. Existing LLM-assisted honeypots mostly use a single configuration or a fixed handling strategy.
- Approach: Simple commands can be given to a low-cost agent, and complex interactions to a cloud LLM; if a command is handled in succession by different agents, session state needs to be shared to avoid conflicting responses.
- Proposed framework: HydraPoT integrates traditional emulation, a lightweight LLM and a cloud LLM in the same environment, routes by command complexity and user policy, and records commands, responses and the chosen agent for later threat intelligence use.
What related research exists?
Related work is divided into early simulation, cost-reduction filtering, and fixed multi-agent; HydraPoT emphasizes configurable routing and shared state.
In the introduction and Section 2, the paper divides related work into early simulation, subsequent fidelity improvements, and cost-reduction or fixed multi-agent pipelines.
Early LLM honeypots and fidelity improvements
- Early systems after 2022: the paper states that LLM honeypots appeared starting in 2022. McKee and Noever (2023) used a general-purpose LLM to simulate Linux, macOS, Windows, and common command-line tools.
- ShelLM and VeILMes: ShelLM (Sladić et al., 2024) used GPT-3.5 to simulate SSH/Telnet; the paper states that in its user study most users could not reliably identify the honeypot. The extension VeILMes (2025) fine-tuned Llama 3 8B on Cowrie command traces and extended to HTTP and MySQL.
- Subsequent features: subsequent work mentioned by the paper includes automatic MITRE ATT&CK mapping, making shell responses more realistic, mitigating prompt injection, examining local open-weight models, comparing RAG and prompt tuning, supervised fine-tuning on attacker interactions, and automatic fidelity metrics for LLM SSH honeypots. The paper states that these systems improved realism.
Reducing invocation cost
- Sending less context or making fewer calls: Ragsdale and Boppana (2023) used prompt and output management with a GPT terminal emulator, and the paper states that token usage dropped by up to 77%. HoneyLLM (Guan et al., 2024) filters scanning traffic before invocation; LLMHoney (2025) uses a dictionary-style virtual file system to handle common commands, and commands not seen are handed to the LLM; HoneyGPT (2024) uses prompt management and memory trimming, keeping only impactful session history.
- Deterministic handling: Magazov et al. (2026) use deterministic handlers for most commands to limit hallucination, and reducing LLM usage is a side effect. The paper only describes it and does not make a numerical comparison with HydraPoT.
- Multi-agent for consistency: AdvancedShelLM (2026) uses a Worker to generate and a Manager to verify. The paper points out that its goal is not cost reduction, and each command still requires an additional LLM call, or even multiple.
Experimental baselines and data
- Baselines: the case study routes all commands only to Cowrie, only to a local LLM, or only to a cloud LLM. The overhead experiment additionally compares HydraPoT fixed routing with standalone agents not going through the framework.
- Data: overhead uses mrheinen/linux-commands; context retention and the case study use ML4Net SSH-Shell-Attacks.
The paper summarizes prior systems as fixed filtering, a single LLM configuration, or fixed multi-agent pipelines, and states that HydraPoT instead performs per-command configurable routing among a traditional honeypot, a lightweight LLM, and a strong LLM, while maintaining cross-agent shared state and supporting pluggable components and SIEM.
How does the paper address this problem?
Honey Router selects an agent according to Fi and the user policy; SYSTEM_STATE is used by the subsequent LLM to construct the prompt.
HydraPoT first estimates the impact of each attacker command on service state, then hands it to a static honeypot, a lightweight LLM, or a cloud LLM according to the user policy, and uses shared state so that subsequent agents see the effects of previous commands.
Components and session flow
- Five modules: Fake Service, Honey Router, Complexity Evaluator, Prompt Manager, State/Log Manager (Figure 1).
- Entry and grading: the attacker connects through the Fake Service implemented with AsyncSSH; the service records the command and hands it to the Honey Router. The Router sends the command to the Complexity Evaluator and gets back the complexity.
- Agent selection: the Router selects an agent according to that level and the rules pre-specified by the user. When an LLM is selected, the Prompt Manager obtains the cross-agent session state from the State/Log Manager, constructs the prompt, and returns it to the Router.
- Write-back: before the response is returned to the attacker, the command, response, and selected agent are written to the State/Log Manager, which determines whether to update the shared state and logs it.
Complexity and routing policy
- Grading: it adopts the command impact factor Fi from prior work, divided into F0–F4 according to the change to the underlying service state (Table 1). The authors' rationale is that read or display commands are easier to simulate, and the larger the state change, the harder it is to maintain realism and consistency.
- Meaning of each level: F0 is reading files or displaying system information; F1 is creating files or installing tools; F2 is modifying files or directories, changing the working directory or shell; F3 is starting or stopping services, remote access, executing code, or privilege escalation; F4 is affecting services, deleting files, or changing passwords. Example commands are in Table 1.
- Policy: practitioners assign different levels to different agents. The paper gives examples: with a limited budget, more commands can be given to static or lightweight agents; if fidelity is valued more, a larger proportion can be given to a stronger LLM.
- One policy in the case: state-independent F0 goes to Cowrie, state-related F0–F2 go to the local LLM, and F3–F4 go to the cloud LLM (Section 5.4).
Shared state and prompts
- Six categories of state: for SSH/Telnet, it tracks the current working directory, files and their metadata and contents, installed software and versions, users and groups, authentication and security settings, and services and their states.
- SYSTEM_STATE: stored per session, initialized at session start, and serving as the authoritative shared state for each agent. After processing, the affected categories are updated based on the command, Fi, and response; F0 does not update, and F1 may write newly installed packages.
- Prompts: when an LLM is selected, the Prompt Manager combines the latest SYSTEM_STATE, the system prompt, and the current command into a prompt. The paper does not give the full text of that prompt.
Implementation and additional interfaces
- Runtime form: implemented in Python. The static agent is Cowrie in the official Docker image; the cloud is called via an OpenAI-compatible client to DeepSeek-V4 Flash; local models can use llama-cpp-python 0.3.34 (GGUF) or transformers 5.14.1.
- Local model parameters: unsloth/Qwen3.5-9B-GGUF, quantization Q5_K_M; context window 8192 tokens, maximum generation length 256 tokens, temperature 0, repetition penalty 1.15. Hardware is Intel Core i7-11700K, 32 GB RAM, NVIDIA GeForce RTX 4060.
- Plugins and SIEM: Section 6 allows writing custom handlers for commands that can be deterministically simulated, and the Honey Router decides which commands go through plugins. The State/Log Manager records commands, responses, the selected agent, and execution metadata; the paper describes a SOC-oriented dashboard including a real-time terminal, Fi, source IP, cross-agent command distribution, and cloud cost.
What experiments did the paper conduct?
The case policy's six text scores are lower than cloud-only and higher than the other two baselines; cloud tokens drop 72.6%, and the authors state cost drops 3.7×.
Experimental setup
- Agents: static is Cowrie; the local LLM is unsloth/Qwen3.5-9B-GGUF (Q5_K_M); the cloud LLM is DeepSeek-V4 Flash. The overhead experiment additionally has standalone agent controls not going through HydraPoT.
- Data: overhead uses 480 records from mrheinen/linux-commands. The context benchmark constructs 29 pairs, 58 commands in total, from ML4Net SSH-Shell-Attacks. The case uses 2,179 commands from 109 sessions in that dataset. The paper states that one session averages about 20 commands.
- Ground truth: both context matching and text fidelity use the output of the same command sequence on an Ubuntu 22.04 virtual machine as ground truth.
- Metrics and judging: runtime; whether the Reader response matches the ground truth; Cosine Similarity, BERTScore, Levenshtein, Jaro–Winkler, BLEU, Exact Match. BERTScore uses pretrained RoBERTa. LLM-as-a-Judge is GPT-5, with input of the host profile, current SYSTEM_STATE, command, and honeypot response, without ground truth, scoring 1–5 according to Table 4.
- Cost: Cowrie compute cost is treated as negligible; the local LLM is based on measured energy consumption and the local electricity price; the cloud is based on official pricing for input and output tokens. The paper does not give the electricity unit price.
- Repetition: context retention is the average of three runs; Figure 2 notes SD < 1%. The paper does not report the number of repetitions for case fidelity and cost.
Main results
According to Table 3. The authors call the controls Cowrie-only, local LLM-only HydraPoT, and cloud LLM-only HydraPoT, i.e., all commands routed to only one agent; the HydraPoT column uses the hybrid policy of Section 5.4. This is not the same setting as the standalone processes not going through the framework in Section 5.2.
Swipe horizontally to read the table
Metric Cowrie local Cloud HydraPoT Cosine Similarity 0.574 0.594 0.699 0.662 BERTScore 0.534 0.562 0.691 0.642 Levenshtein 0.548 0.572 0.682 0.643 Jaro–Winkler 0.646 0.719 0.795 0.766 BLEU 0.418 0.386 0.487 0.450 Exact Match 0.254 0.226 0.311 0.286 - The authors state that on all six the hybrid policy is higher than Cowrie-only and local-only, and within 8% of cloud-only HydraPoT.
- In Table 3, local's BLEU and Exact Match are lower than Cowrie; the paper does not explain.
- The authors state that after Figure 3 breaks it down by Fi, HydraPoT is close to Cowrie on F0, close to the local LLM on F1–F2, and close to the cloud LLM on F3–F4. The policy text is that state-independent F0 goes to Cowrie and state-related F0–F2 go to the local LLM. The converted text cannot show the bar heights, and the paper also does not state whether Figure 3's F0 is further divided into these two categories.
Operating cost
- What was measured: for 2,179 commands, marginal cost is accumulated by selected agent and compared with three single-agent all-routing baselines.
- Results: in Table 5, cloud-only gives all 2,179 to the cloud, 11,802,012 tokens in total; HydraPoT gives 531 to the cloud, 3,238,807 tokens. The paper writes 1,648 fewer cloud commands and 8,563,205 fewer tokens (72.6%). Table 6 total cost: Cowrie-only 0.000 USD, local-only 0.017 USD, cloud-only 1.98 USD; HydraPoT cloud 0.54 USD, electricity 0.0015 USD, total 0.5415 USD.
- Authors' interpretation: the authors state operating cost drops 3.7×, from 1.98 USD to 0.54 USD; extrapolated at 1,000 commands per day, about 91 USD per year instead of 332 USD, saving about 241 USD. The authors also state that fidelity is close to cloud-only and cost is about one quarter of it.
Context retention
- What was measured: commands that create state are given to the Creator, and commands that depend on that modification are given to the Reader. All combinations except Cowrie as Reader were tested; the Cowrie used cannot update its internal state according to an external SYSTEM_STATE. Success is defined as matching the Ubuntu 22.04 ground truth, average of three runs (Table 2).
- Results: with synchronization off, Cowrie→Cloud is 17.2%, Cowrie→On-device is 79.3%, and Cloud→On-device and On-device→Cloud are both 14.9%. With synchronization on, all four groups are 100%, with Δ of +82.8, +20.7, +85.1, +85.1 percentage points.
- Authors' interpretation: the authors state that with synchronization on the success rate increases by up to 85.1 percentage points, all 29 pairs succeed, and shared state can maintain context after agent switching.
LLM judging
- Calibration: the same GPT-5 gives all Ubuntu ground truths a score of 5. The paper does not state the number of ground-truth items.
- Overall scores: Figure 4a mean scores are Cowrie 3.20, On-device 3.40, Cloud 4.19, HydraPoT 3.94. The authors state HydraPoT is higher than Cowrie-only and lightweight-only, and 0.25 points lower than the strong LLM baseline.
- By level: the authors state that in Figure 4b, HydraPoT's score on each Fi is close to the agent selected by the policy. The converted text does not retain the scores for each Fi.
Other ablations and analysis
- Fixed routing overhead (Figure 2, 480 commands, with Complexity Evaluator, Prompt Manager, State/Log Manager still enabled): Cowrie is labeled 68s and 71s, On-device LLM is 1,529s and 1,562s, Cloud LLM is 1,385s and 1,417s; SD < 1%. The converted text does not indicate which bar is HydraPoT in the orange box.
- The authors state that relative to the corresponding standalone agent, static is about 5%, and lightweight and cloud LLMs are about 2%. The abstract and introduction write less than 5%; in Section 3.3 the authors state less than 5% under the evaluated configurations.
- The authors state that with routing and state management enabled, peak RAM and VRAM do not increase for any configuration; the paper does not give absolute memory numbers.
- The paper does not compare multiple routing policies, nor does it report quantitative results for the plugin and SIEM dashboard.
What are some points that can be further explored?
The authors list human evaluation, real deployment, and prompt injection mitigation as future work.
Limitations and future directions noted by the authors
- Human evaluation: The authors list human evaluation as future work, to evaluate fidelity, reliability, and performance (Section 7).
- Real deployment: The authors plan to deploy under real attack traffic and evaluate fidelity, reliability, and performance (Section 7).
- Prompt injection: The authors state that prompt injection mitigation remains unexplored in cost-aware LLM-assisted honeypots (Section 7).
Scope of experiments
- Overhead: On an i7-11700K, 32 GB RAM, RTX 4060, three fixed routings are compared with the corresponding standalone agents, with data of 480 entries from mrheinen/linux-commands (Sections 5.1–5.2, Figure 2).
- Context: In ML4Net, 29 command pairs, four groups of Creator–Reader, three runs; the Reader is not Cowrie because the version used cannot update its internal state from an external SYSTEM_STATE (Section 5.3, Table 2). Ground truth is an Ubuntu 22.04 VM.
- Case: The same dataset of 109 sessions and 2,179 commands, reporting the one routing strategy from Section 5.4; metrics are six text similarities, GPT-5's 1–5 scores, and tokens and cost (Table 3–6, Figure 4).
- Unreported experimental information: The paper does not report the number of repetitions for the case fidelity and cost, nor the local electricity price per unit.
- Section 6 features: The paper describes a custom command plugin and a SIEM dashboard; the paper does not report quantitative results for these two, nor results for log-based threat intelligence analysis.
Summarize the main content of the paper
HydraPoT uses configurable routing among Cowrie, local and cloud LLMs to trade off cost and fidelity; in the case, tokens drop 72.6%.
HydraPoT is a configurable multi-agent honeypot framework that places traditional simulation, a local LLM, and a cloud LLM within the same attacker session.
- Problem: the authors argue that a single LLM configuration or a fixed handling policy forces practitioners to trade off among cloud cost, latency, and the potentially weaker deception of lightweight models.
- Approach: commands are divided into F0–F4 by their impact on service state, and the user policy selects Cowrie, local Qwen3.5-9B, or DeepSeek-V4 Flash; SYSTEM_STATE synchronizes directories, files, software, users, authentication, and services for use in subsequent prompts.
- Overhead and context: the authors state runtime overhead is less than 5%; Section 5.2 writes about 5% for static and about 2% for the two LLMs. With state synchronization enabled, the retention rate for all four Creator–Reader groups in Table 2 is 100% (29 pairs, average of three runs).
- Case fidelity: on 2,179 commands, the hybrid policy's six text scores are higher than Cowrie-only and local-only, and lower than cloud-only (Table 3, for example Cosine Similarity is 0.662, cloud-only is 0.699). The GPT-5 mean score is 3.94, cloud-only is 4.19 (Figure 4a); the authors state it is 0.25 points lower.
- Cost: this policy reduces cloud commands from 2,179 to 531, and tokens from 11,802,012 to 3,238,807, which the paper writes as a 72.6% reduction. Total cost is 0.5415 USD, cloud-only is 1.98 USD; the authors state cost drops 3.7×, from 1.98 USD to 0.54 USD.
- Authors' conclusion: the authors state that configurable routing can retain fidelity close to cloud-only under a limited budget. Future work includes human evaluation, real deployment, and prompt injection mitigation in this setting.