Skip to main content

AgentHive

Multi-agent attack simulation framework for AI systems.

PyPI Python License: MIT CI

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

Ecosystem

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)

Source distribution for agenthive-sim 0.1.0
File Size Uploaded Provenance
agenthive_sim-0.1.0.tar.gz 37.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agenthive-sim 0.1.0
File Interpreter ABI Platform
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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page