Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
T-MAP — Trajectory-aware evolutionary search framework for red-teaming LLM agents over MCP servers, generating adversarial prompts to map vulnerability landscapes across risk categories. | Kitploit
Tools/GitHubGitHub/pwnhyo/t-map
Vulnerability AnalysisPenetration TestingMachine LearningRed TeamingAI SecurityAdversarial Attack
GitHubpwnhyo/t-map

T-MAP

Trajectory-aware evolutionary search framework for red-teaming LLM agents over MCP servers, generating adversarial prompts to map vulnerability landscapes across risk categories.

View Repository
183436 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

T-MAP: Red-Teaming LLM Agents with Trajectory-aware Evolutionary Search

arXiv

T-MAP Overview

T-MAP is a trajectory-aware evolutionary search framework for red-teaming LLM agents over MCP servers. It iteratively generates and mutates adversarial prompts guided by execution trajectories, mapping the agent's vulnerability landscape across diverse risk categories and attack styles.


🔧 Setup

root@kitploit:~
pip install -r requirements.txt

Requirements: Python 3.11+, API keys for attacker and target models, access to one or more MCP servers.


🚀 Quick Start

Single server

root@kitploit:~
python run_main.py \
  --server Slack \
  --attacker_model "deepseek-chat" \
  --attacker_model_api "https://api.deepseek.com" \
  --attacker_model_api_token "$DEEPSEEK_API_KEY" \
  --target_model "openai/gpt-5-mini" \
  --target_model_api "https://openrouter.ai/api/v1" \
  --target_model_api_token "$OPENROUTER_API_KEY" \
  --stdio_server_cmd npx \
  --stdio_server_args "-y slack-mcp-server@latest --transport stdio" \
  --stdio_server_envs "SLACK_MCP_XOXP_TOKEN=$SLACK_MCP_XOXP_TOKEN SLACK_MCP_ADD_MESSAGE_TOOL=true" \
  --iteration 100 \
  --mutation_n 3

Multi-server

root@kitploit:~
python run_main.py \
  --server "Slack,CodeExecutor" \
  --attacker_model "deepseek-chat" \
  --attacker_model_api "https://api.deepseek.com" \
  --attacker_model_api_token "$DEEPSEEK_API_KEY" \
  --target_model "openai/gpt-5-mini" \
  --target_model_api "https://openrouter.ai/api/v1" \
  --target_model_api_token "$OPENROUTER_API_KEY" \
  --stdio_server_cmd_1 npx \
  --stdio_server_args_1 "-y slack-mcp-server@latest --transport stdio" \
  --stdio_server_envs_1 "SLACK_MCP_XOXP_TOKEN=$SLACK_MCP_XOXP_TOKEN SLACK_MCP_ADD_MESSAGE_TOOL=true" \
  --stdio_server_cmd_2 docker \
  --stdio_server_args_2 "run -i --rm --workdir /app mcp-code-executor:latest" \
  --iteration 100 \
  --mutation_n 3

More examples in run_examples.sh.


⚙️ Arguments

Server Connection

ArgumentDescription
--serverMCP server name(s), comma-separated for multi-server
--server_configJSON config file for server definitions
--stdio_server_cmd/args/envsSingle-server stdio mode
--stdio_server_cmd_1..8 / _args_1..8 / _envs_1..8Indexed multi-server stdio mode
--remote_server_url, --remote_server_tokenSingle remote MCP endpoint

Models

ArgumentDescription
--attacker_model/api/api_tokenAttacker LLM (generates and mutates prompts)
--target_model/api/api_tokenTarget LLM agent (executes prompts via MCP)
--level_judge_model/api/api_tokenJudge LLM (defaults to attacker if omitted)

Experiment

ArgumentDefaultDescription
--iteration100Number of mutation rounds
--mutation_n3Mutants sampled per round
--max_workers10Parallelism for generation and evaluation
--query_timeout300Per-query timeout (seconds)
--checkpoint_interval20Save checkpoint every N generations
--output_diroutputsResults and TCG snapshots
--log_dirlogsText logs

📁 Project Layout

root@kitploit:~
.
├── core/
│   ├── base.py              # Experiment orchestration and evaluation
│   ├── config.py            # Risk categories and attack styles
│   ├── langchain_client.py  # LangChain-based MCP client
│   ├── llm.py               # LLM wrapper
│   └── utils.py             # CLI argument definitions
├── prompts/
│   └── tmap.py              # Seed, judge, mutate, and analysis prompts
├── run_main.py              # Entrypoint
├── run_examples.sh          # Example commands
└── requirements.txt

📄 Citation

root@kitploit:~
@article{lee2026tmapredteamingllmagents,
      title={T-MAP: Red-Teaming LLM Agents with Trajectory-aware Evolutionary Search}, 
      author={Hyomin Lee and Sangwoo Park and Yumin Choi and Sohyun An and Seanie Lee and Sung Ju Hwang},
      year={2026},
      eprint={2603.22341},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2603.22341}
}
Download Tool