Agent Perimeter
Scan an MCP server or tool-using agent and get findings you can reproduce. Each finding carries a CWE, a published taxonomy entry (OWASP LLM Top 10, OWASP MCP Top 10, CoSAI, NSA CSI or MITRE ATLAS), and the exact command that shows it. Output is SARIF 2.1.0 for GitHub code scanning, an HTML report, and a drift gate that fails CI when a tool's description changes after you approved it.
Install and scan
Needs Python 3.12+. Scan a server you own or are authorised to test:
uv tool install agent-perimeter-scan # or: pipx install agent-perimeter-scan
agent-perimeter scan --target https://your-server.example/mcp --sarif perimeter.sarif --html perimeter.html
- Passive mode is the default: it lists tools, resources and prompts and never calls a tool.
- Active probes refuse to run without a scope file naming the target, who authorised it, and when.
- Stdio targets run inside a locked-down container (non-root, read-only root filesystem, no network, seccomp, memory and CPU caps, hard timeout), so they need Docker.
- Exit codes:
0clean,2refused or incomplete tool listing,3drift gate tripped.
In CI, use the GitHub Action or copy the example workflow.
What it is not
It doesn't run an agent or call a model. Injection findings show that the path exists; whether your agent follows it is measured only if you supply a transcript. Precision and recall are measured on the project's own fixture corpus, not in the field (methodology).
Source, issues, the full README and the MCP Registry census: https://github.com/Berakhah/agent-perimeter. Licence: Apache-2.0.
Metadata
Release files for agent-perimeter-scan 1.2.1
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 | Actions |
|---|---|---|---|---|
| agent_perimeter_scan-1.2.1.tar.gz | 164.3 kB | With provenance | Details for agent_perimeter_scan-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_perimeter_scan-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for agent_perimeter_scan-1.2.1-py3-none-any.whl |
Total release size: 390.3 kB
Release files / agent_perimeter_scan-1.2.1.tar.gz
| Download URL | agent_perimeter_scan-1.2.1.tar.gz |
|---|---|
| Size | 164.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a94018e215465a31f0a7f71ec4b01dc761ea6eed4199cd5cc577a667f806f399
|
|
BLAKE2b-256 checksum How to use checksums |
14285c6af24362d06ec7b4bc77e5dd7695a2071b1153a4a24a66089abc1716c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / agent_perimeter_scan-1.2.1-py3-none-any.whl
| Download URL | agent_perimeter_scan-1.2.1-py3-none-any.whl |
|---|---|
| Size | 226.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68ea3910ffd96d48d3f9d004193048318558ef3a816ebadb842add148ac9fe6b
|
|
BLAKE2b-256 checksum How to use checksums |
b08e9c1081d9b2995fb8b31171975a60bb583c3ad2566c382a68cd4b335b052c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for agent-perimeter-scan 1.2.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agent_perimeter_scan-1.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA 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.