AgentHive
Multi-agent attack simulation framework for AI systems.
AgentHive extends mcpwn from the single-agent domain to the multi-agent domain, modeling attacks that are only possible when multiple AI agents interact with each other.
Installation
pip install agenthive-sim
For development:
pip install -e ".[dev,lab]"
Quick Start
# Generate a scenario template
agenthive scenario my-scenario -o scenario.yaml
# Run a simulation
agenthive simulate scenario.yaml -v
# List available attack categories
agenthive list-scenarios
# Start the vulnerable lab server
agenthive lab
Scenario YAML Format
Scenarios define the agent topology and attacks to simulate:
name: my-scenario
description: "Multi-agent SSRF through agent chain"
max_steps: 50 # max simulation steps before timeout
timeout_seconds: 300
agents:
- role: attacker # attacker | victim | observer | coordinator
name: red-agent-1
capabilities:
- prompt_injection
- tool_manipulation
- role: victim
name: blue-agent-1
capabilities:
- data_processing
- tool_usage
- role: victim
name: blue-agent-2
capabilities:
- collaboration
- file_operations
- role: observer
name: observer-1
capabilities: [monitoring]
attacks:
- category: tool_drift # must match AttackCategory
name: "Tool Drift"
description: "Drift tool definitions via shared memory"
severity: high # critical | high | medium | low | info
parameters: {} # attack-specific parameters
mitre_atlas: ["ATLAS-001"]
metadata:
environment: lab
difficulty: medium
Ecosystem Integration
AgentHive integrates with the MCP security ecosystem:
- mcp-taxonomy: Findings are convertible via
agenthive_finding_to_taxonomy()for unified correlation - MCPscop: SARIF and JSON reports are consumable by MCPscop dashboards
- mcpwn: Extends mcpwn patterns from single-agent to multi-agent domain
Attack Scenarios
| Category | Description | Severity |
|---|---|---|
tool_drift |
Exploit tool derivation caused by shared memory between agents | High |
long_horizon |
RL-based attacks spanning multiple agents in sequence | Critical |
collaboration_attack |
Manipulation of agent-to-agent collaboration | High |
authority_hijack |
Hijacking the authority chain between agents | Critical |
cross_agent_injection |
Prompt injection that propagates across agents | Critical |
multi_agent_ssrf |
Coordinated SSRF through multiple agents | High |
swarm_poisoning |
Poison one agent that propagates to the swarm | Critical |
identity_spoofing |
Identity spoofing between agents | High |
Academic References
- Evo-Attacker: Memory-Augmented RL for Long-Horizon Tool Attacks (ACL 2026)
- Memory-Induced Tool-Drift in LLM Agents
- Behind EvoMap: Agent-to-Agent Collaboration Network
- Authority Frontier Framework for Runtime Actuarial Control
- Deep-Research Agents Can Be Poisoned (Shmatikov et al.)
- MITRE ATLAS — Multi-Agent System Attack Patterns
Ecosystem
- Extends mcpwn — same stack, multi-agent domain
- Uses mcp-taxonomy
- Reports consumable by MCPscop
License
MIT — see LICENSE
Metadata
Release files for agenthive-sim 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agenthive_sim-0.1.0.tar.gz | 37.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agenthive_sim-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.2 kB
Release files / agenthive_sim-0.1.0.tar.gz
| Download URL | agenthive_sim-0.1.0.tar.gz |
|---|---|
| Size | 37.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a5ddba953604906fda47f9e4408877f3a64638f3ad78de36e882bade569338a
|
|
BLAKE2b-256 checksum How to use checksums |
73d0dc5e4231ac5cc850bb20fc3f0935c0af55a95c77daf11df816d093719b9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / agenthive_sim-0.1.0-py3-none-any.whl
| Download URL | agenthive_sim-0.1.0-py3-none-any.whl |
|---|---|
| Size | 37.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04ec87c1b4ae7f366292cb4a68fcb2bde0233ab065463e5a2d612205672cbcdc
|
|
BLAKE2b-256 checksum How to use checksums |
bfd586437f5214558d83ffe4078089b4a1dac60f1cafc64189b13852493c51d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for agenthive-sim 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.