Static security analysis for MCP servers and AI-agent workspace configurations. Taint-graph based detection of tool-description injection, capability overreach, and exfiltration paths.
Project description
agentic-guard-mcp
Static security analysis for MCP servers and AI-agent workspace configurations.
Part of the agentic-guard family — extending its taint-graph model (the LLM as an adversarially-controlled edge) from agent pipelines to the Model Context Protocol ecosystem.
Status: v0.1 in active development. This package currently reserves the name and ships a CLI stub. Follow this repo for the first release.
What it will do
agentic-guard-mcp audits the agent-facing surface of an MCP server or developer workspace and reports reachable attack paths — not just suspicious patterns:
- Tool-description injection linting — detects imperative instructions to the model, hidden Unicode/encoding tricks, cross-tool manipulation, and out-of-scope references embedded in MCP tool descriptions and parameter docs.
- Capability analysis — flags mismatches between a tool's declared purpose and what its schema and code can actually reach (filesystem, network, shell).
- Exfiltration-path detection — models sensitive sources (files, env vars, credentials) and sinks (network calls, outbound tool parameters) and reports reachable source→sink paths through the agent.
- Workspace composition analysis — evaluates
.cursor/mcp.json, rules files (.cursorrules,copilot-instructions.md,AGENTS.md), and auto-run settings together, because a finding's severity depends on what the configured agent can actually do. - Definition drift / rug-pull checks — hashes tool definitions and flags changes between versions.
- SARIF output — integrates with GitHub code scanning and CI.
Why
Existing scanners treat rules files and manifests in isolation with signature matching. Real incidents are compositional: benign-looking content becomes an exploit only in the context of a specific agent's permissions and tool access. That is a reachability problem, and reachability is what taint analysis is for.
Install (stub)
pip install agentic-guard-mcp
agentic-guard-mcp --version
Roadmap
- v0.1 — description-injection linter + capability-mismatch checks
- v0.2 — workspace composition analysis, SARIF output, GitHub Action
- v0.3 — ecosystem scan results, benchmark corpus release
License
Apache-2.0
Author
Sanjay Krishnegowda
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentic_guard_mcp-0.0.1.tar.gz.
File metadata
- Download URL: agentic_guard_mcp-0.0.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dfd0953495f33b03f40fd47b46f16c1831d934d98b25037c27a5f2050b9366e
|
|
| MD5 |
a6c65ecc2195f135190eb7ed2f3ad9b6
|
|
| BLAKE2b-256 |
800d3736570d0b7aadd56ae9c47b7217fe639c86e3bc84645dc5b3cb2ef4bcb6
|
File details
Details for the file agentic_guard_mcp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: agentic_guard_mcp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93004b257f4bde16705a7ca77de91e7988d28274fe996dcae0f03f8dd443e905
|
|
| MD5 |
50922ea1c9d7bbebb9eb7b9e71bdeb93
|
|
| BLAKE2b-256 |
c9d19fd4dc10e899992d6ead63cea59f48af4b974a793086e3cacc594a1a8b79
|