Catalog PyPI
PACKAGE EXPLORERView in registry

agenthive-sim

PyPI

Multi-agent attack simulation framework for AI systems

ai-securityattack-simulationllm-securitymcpmulti-agentred-team
Versions collected1
Direct dependencies16From release 0.1.0
Last observed20 Oct, 22:10 UTC

README

Version 0.1.0 documentation

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

CategoryDescriptionSeverity
tool_driftExploit tool derivation caused by shared memory between agentsHigh
long_horizonRL-based attacks spanning multiple agents in sequenceCritical
collaboration_attackManipulation of agent-to-agent collaborationHigh
authority_hijackHijacking the authority chain between agentsCritical
cross_agent_injectionPrompt injection that propagates across agentsCritical
multi_agent_ssrfCoordinated SSRF through multiple agentsHigh
swarm_poisoningPoison one agent that propagates to the swarmCritical
identity_spoofingIdentity spoofing between agentsHigh

Academic References

Ecosystem

License

MIT — see LICENSE

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.027 May 202616

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:10 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0dab9465c115f7dc57a4494bdab8c78188362f73787d22973d7af8e89097292b