Command Palette

Search for a command to run...

Home / Servers

red-team-blue-team-agent-fabric

by msaleme

Agent Security Harness

PyPI version Python 3.10+ Apache 2.0 License Tests ClawScan Static Analysis VirusTotal

Even if an agent is properly authenticated and authorized, can it still be manipulated into unsafe or policy-violating behavior?

595 executable security tests across 43 modules (verified 2026-07-25 via scripts/count_tests.py). MCP + A2A + L402 + x402 wire-protocol testing, plus UCP/ACP merchant-journey, AP2 mandate-chain, Fireblocks x402 hardening, Visa TAP / Mastercard Agentic Token funding-instrument, and denial-of-settlement finality conformance across the full agentic-payments stack. Decision-layer attack scenarios. One pip install away.

$ agent-security test mcp --url http://localhost:8080/mcp
Running MCP Protocol Security Tests v4.2...
 MCP-001: Tool List Integrity Check [PASS] (0.234s)
 MCP-002: Tool Registration via Call Injection [PASS] (0.412s)
 MCP-003: Capability Escalation via Initialize [FAIL] (0.156s)
...
Results: 8/10 passed (80% pass rate) - see report.json

Quick Start

pip install agent-security-harness

# If 'agent-security' is not found, add ~/.local/bin to your PATH:
export PATH="$HOME/.local/bin:$PATH"
# See it work immediately — no server needed:
agent-security test mcp --simulate

# Then test your real MCP server:
agent-security test mcp --url http://localhost:8080/mcp

# Test an x402 payment endpoint
agent-security test x402 --url https://your-x402-endpoint.com

See docs/QUICKSTART.md for mock server setup, rate limiting, MCP server mode, and CI/CD integration.


Three Layers of Agent Decision Security

LayerWhat it coversExample focus
Protocol IntegrityPrevent spoofing, replay, downgrade, diversion, and malformed protocol behaviorMCP, A2A, L402, x402 wire-level tests
Operational GovernanceValidate session state, capability boundaries, platform actions, trust chains, and execution contextcapability escalation, facilitator trust, provenance, session security
Decision GovernanceTest whether an agent should act at all under its authority, confidence, scope, and policy constraintsautonomy scoring, scope creep, return-channel poisoning, normalization-of-deviance

How This Differs From Other Projects

CapabilityInvariant MCP-Scan (2K stars)Cisco MCP Scanner (865 stars)Snyk Agent Scan (2K stars)NVIDIA Garak (7K stars)This framework
What it doesScans installed MCP configs for tool poisoningYARA + LLM-as-judge for malicious toolsScans agent configs for MCP/skill securityLLM model vulnerability testingActive protocol exploitation + decision governance
ApproachStatic analysisStatic + LLM classificationConfig scanningModel-layer probingWire-protocol adversarial testing
MCP coverageTool descriptions, config filesTool descriptions, YARA rulesConfig files-**31 tests:

Related servers

n8n

Updated today

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

NOASSERTION199,059

mcp-server-fetch

OfficialUpdated today

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

89,138

@modelcontextprotocol/server-filesystem

OfficialUpdated today

by modelcontextprotocol

MCP server for filesystem access

SEE LICENSE IN LICENSE89,138

@modelcontextprotocol/server-everything

OfficialUpdated today

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

89,138