D-CIPHER: Dynamic Collaborative Intelligent Agents with Planning and Heterogeneous Execution for Enhanced Reasoning in Offensive Security

Meet Udeshi, Minghao Shao, Haoran Xi, Nanda Rani, Kimberly Milner, Venkata Sai Charan Putrevu, Brendan Dolan-Gavitt, Sandeep Kumar Shukla, Prashanth Krishnamurthy, Farshad Khorrami, Ramesh Karri, Muhammad ShafiquearXiv 2025 · DOI

Abstract

D-CIPHER is a novel multi-agent Large Language Model (LLM) framework designed to autonomously solve complex cybersecurity Capture the Flag (CTF) challenges. By dividing tasks among specialized agents—an Auto-prompter, a Planner, and task-specific Executors—it overcomes the context limits and hallucinations that plague single-agent systems. The framework achieves state-of-the-art performance across multiple benchmarks while significantly reducing API costs and demonstrating advanced offensive security capabilities mapped to the MITRE ATT&CK framework.

Introduction: The Limitations of Single-Agent LLMs

Large Language Models (LLMs) are increasingly being evaluated for offensive security capabilities using Capture the Flag (CTF) challenges. However, most existing LLM agents operate as single entities trying to solve complex, multi-step challenges end-to-end. This single-agent approach has major flaws: as the agent explores a challenge, its context window fills up with long command outputs and failed attempts. This leads to a loss of focus, hallucinations, and context exhaustion. In the real world, CTFs are solved by teams of experts with diverse skills (e.g., reverse engineering, cryptography) collaborating together. D-CIPHER addresses this gap by building a multi-agent system that mimics human team dynamics, allowing for better long-horizon planning and task execution.

The D-CIPHER Architecture

The D-CIPHER framework is a collaborative multi-agent system built around three distinct roles interacting within a shared Linux container environment.

The D-CIPHER multi-agent system architecture, illustrating the collaborative workflow between the Auto-prompter, Planner, and Executor agents within a containerized environment.

The system consists of three primary agent types:

  1. Auto-prompter Agent: Acts as a scout, exploring the CTF environment for several rounds to dynamically generate a highly relevant, challenge-specific initial prompt. This replaces static, hard-coded templates that often lack necessary context.
  2. Planner Agent: Serving as the "team lead," the Planner receives the auto-generated prompt, formulates a high-level, step-by-step plan, and delegates specific sub-tasks to Executors. It maintains the overall context and revises the plan based on feedback.
  3. Executor Agents: These are heterogeneous workers spawned dynamically for specific tasks. Crucially, each Executor starts with a fresh conversation history to avoid context bloat. Once a task is finished, the Executor returns a concise summary to the Planner.

The agents utilize LLM function calling to interact with tools like RunCommand, CreateFile, and Disassemble (via Ghidra), as well as custom inter-agent tools like Delegate and FinishTask.

Key Insights: Efficiency through Division of Labor

D-CIPHER introduces several critical improvements over traditional agentic workflows:

  • Cost Efficiency: Counterintuitively, running multiple agents is cheaper than a single agent. By providing Executors with fresh, small context windows for specific tasks, the system avoids the massive token bloat associated with a single agent accumulating a long history of failed attempts.
  • Dynamic Prompting: The Auto-prompter ensures the Planner starts with a highly relevant strategy rather than generic instructions, significantly improving success rates on complex cryptography and reverse engineering tasks.
  • Context Isolation: By isolating tasks, the Planner only sees the summary of an Executor's work, keeping it focused on high-level goals rather than thousands of lines of disassembled code or brute-force output.

Experimental Evaluation and Results

D-CIPHER was evaluated on three major CTF benchmarks: NYU CTF Bench (200 challenges), Cybench (40 challenges), and HackTheBox (50 challenges). For the NYU CTF Bench, the authors manually mapped challenges to MITRE ATT&CK enterprise techniques to benchmark real-world offensive capabilities.

An execution trace showing the Planner delegating tasks to Executors to solve a cryptography challenge, with specific actions mapped to MITRE ATT&CK techniques such as Brute Force (T1110) and Weaken Encryption (T1600).

The results demonstrate D-CIPHER's superiority:

  • State-of-the-Art Accuracy: D-CIPHER achieved solve rates of 22.0% on NYU CTF Bench, 22.5% on Cybench, and 44.0% on HackTheBox, outperforming previous state-of-the-art systems by 2.5% to 8.5%.
  • Massive Cost Reduction: The framework lowered the average API cost per solved challenge by 2x to 10x across benchmarks.
  • Advanced Offensive Capability: On the MITRE ATT&CK evaluation, D-CIPHER successfully employed 65% more techniques than previous single-agent works, showing particular strength in techniques like Brute Force (T1110) and Weaken Encryption (T1600).

In terms of model performance, Claude 3.5 Sonnet yielded the highest overall solve rates, while GPT-4o proved to be the most cost-efficient model.

Limitations and Future Work

While highly effective, D-CIPHER has areas for improvement. Current communication bottlenecks require all information to be routed through the Planner; future iterations could allow parallel Executors to share information directly. Additionally, the Auto-prompter can be fragile; if it misunderstands a challenge early on, it may bias the Planner incorrectly. Finally, agents occasionally struggle with interactive tools like gdb, suggesting a need for better interactive interfaces or demonstrations.

Summary updated

BibTeX
@misc{udeshi2025d,
  author = {Meet Udeshi and Minghao Shao and Haoran Xi and Nanda Rani and Kimberly Milner and Venkata Sai Charan Putrevu and Brendan Dolan-Gavitt and Sandeep Kumar Shukla and Prashanth Krishnamurthy and Farshad Khorrami and Ramesh Karri and Muhammad Shafique},
  title = {{D-CIPHER: Dynamic Collaborative Intelligent Agents with Planning and Heterogeneous Execution for Enhanced Reasoning in Offensive Security}},
  year = {2025},
  eprint = {2502.10931},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.10931},
}
Figure