agentic-perimeter
Passive External Attack Surface Management (EASM) CLI for MCP supply-chain provenance, external agent discovery, and OAuth/DNS hygiene.
agentic-perimeter audits what autonomous AI agents and developers encounter outside your corporate perimeter when looking up your brand: unverified third-party hosted MCP proxies, unscoped npm/PyPI package collisions, Official MCP Registry gaps, internet-facing mcp.* endpoints missing RFC 9728 OAuth metadata, broad OAuth scopes, DNSSEC / IETF DNS-AID posture, and active phishing-warning agent lookalikes.
- 100% Passive & Read-Only: Public APIs, DNS-over-HTTPS, Certificate Transparency, TLS SANs, and standard
/.well-known/*discovery paths only. Zero port scanning, zero brute-forcing, zero remotetools/call, zero execution of untrusted packages. - Zero Runtime Dependencies: Pure Python 3.11+ standard library; runs instantly via
uvx. - Standards-Aligned: Maps every finding with verifiable raw evidence to OWASP Top 10 for Agentic Applications (2026 v1.0) and OWASP MCP Top 10 (2025 v0.1 Beta).
Quickstart
Run directly from PyPI with uvx (no global install required):
# Single-domain audit -> JSON + single-file HTML brief + SARIF 2.1.0 + Protective DNS RPZ / domain feed
uvx agentic-perimeter audit example.com \
--json report.json \
--html report.html \
--sarif report.sarif \
--rpz policy.rpz \
--domain-feed feed.json \
--rpz-mode block
# Include passive in-memory static inspection of up to 10 unverified npm/PyPI tarballs
uvx agentic-perimeter audit example.com \
--inspect-packages \
--json report.json
# Continuous monitoring: diff against a saved baseline and exit 2 on new exposures
uvx agentic-perimeter audit example.com \
--baseline baseline.json \
--fail-on-new \
--sarif report.sarif
# Longitudinal cohort trend analysis (supports raw batch JSON or anonymized study JSON)
uvx agentic-perimeter trend \
cohort_2026_q4.json cohort_2027_q1.json \
--label-prev 2026-Q4 --label-curr 2027-Q1 \
--json trend.json --md trend.md
Batch-audit a list of domains and emit an anonymized dataset + Markdown summary:
uvx agentic-perimeter batch datasets/top100_brands.json \
--output raw_batch.json \
--anonymized-out study_anonymized.json \
--study-md study_summary.md \
--workers 8
Optional environment variables:
GITHUB_TOKEN(or authenticatedghCLI) for GitHub org domain anchoring (blog/email) and higher rate limits.CERTSPOTTER_API_KEYfor higher CertSpotter Certificate Transparency throughput (falls back automatically to boundedcrt.sh+ live TLS SAN extraction).
Continuous Monitoring in GitHub Actions (SARIF + Baseline Diff)
Drop a weekly passive check into .github/workflows/agentic-perimeter.yml to surface new external MCP exposures directly in GitHub Code Scanning:
name: External Agentic Perimeter Monitor
on:
schedule:
- cron: "0 12 * * 1" # Every Monday at 12:00 UTC
workflow_dispatch:
permissions:
security-events: write
contents: read
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Run passive external MCP audit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
uvx --python 3.12 agentic-perimeter audit example.com \
--json latest.json \
--html latest.html \
--sarif agentic-perimeter.sarif
- name: Upload SARIF to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: agentic-perimeter.sarif
What It Audits
| Vector | Focus | Passive Signals Verified | OWASP Mapping |
|---|---|---|---|
| V1 (Primary) | MCP Supply-Chain & Brand Provenance | Correlates Official MCP Registry (/v0.1/servers via broad + targeted reverse-DNS queries), npm, PyPI, and GitHub. Anchors official assets via reverse-DNS, verified sibling domains, GitHub org blog/email, and cross-registry maintainer emails; strips hosting prefixes (io.github.*, app.vercel.*, dev.workers.*), skips unpublished tombstones, separates 0.0.1-security holding packages, and filters homonyms. Flags URL-Path Token Exposure, Unverified 3rd-Party Hosted Proxy, Unverified Package / Free-Email Maintainer, and Official Registry Vacuum, with passive RFC 9083 RDAP domain-age/registrar profiling (NOD <30d / <90d; disable via --no-rdap). Optional --inspect-packages statically inspects public tarballs/wheels in memory (<=5 MB, zero execution). |
ASI03, ASI04, ASI05, ASI07, ASI09 / MCP01:2025, MCP04:2025, MCP05:2025, MCP09:2025 |
| V2 (Secondary) | External Perimeter, Wire-Level DNS-AID / ANS v2 & OAuth Hygiene | Queries DoH (do=1) for wire-level IETF DNS-AID (draft-02: _index._agents, catalog.<domain> separation, RFC 9460 SVCB private keys key65400/key65401/key65402/key65405, passive cap-sha256 card integrity verification), apex DNSSEC (AD=true), DANE _443._tcp TLSA, ANS v2 _ans-badge host-binding verification, and complementary Chain-of-Trust surfaces (/.well-known/ard.json, /.well-known/ucp, SPIFFE bundles/SVIDs, _agent-keys TXT). Discovers active mcp.*/agents.* endpoints via CertSpotter CT (crt.sh fallback) and live TLS SANs; checks RFC 9728 (/.well-known/oauth-protected-resource and WWW-Authenticate resource_metadata), Broad OAuth Scope Declaration, and Cross-Domain Perimeter Drift. |
ASI03, ASI04, ASI07 / MCP02:2025, MCP07:2025, MCP09:2025 |
| V3 (Silent Sub-Check) | Active Lookalike Infrastructure | Suppresses domain parking, HTTP 523 squatters, defensive brand registrations, and HTML catch-alls. Emits findings only for Active Lookalike Agent Endpoint (/.well-known/mcp.json or live JSON-RPC/SSE /mcp), Spoofed _ans-badge Host-Binding Mismatch on lookalike agent hosts, or Phishing-Warning Lookalike Domain (HTTP 403/451 third-party warning interstitials), enriched with passive RDAP registration age. |
ASI04, ASI07, ASI09 / MCP04:2025, MCP09:2025 |
Outputs & Risk Model
agentic-perimeter produces six artifacts: structured JSON (schema 2.0), SARIF 2.1.0, baseline diff output, a self-contained single-file HTML executive brief (zero external CDN dependencies, print-to-PDF ready), open-standard Protective DNS RPZ & JSON domain feeds (--rpz, --domain-feed, --rpz-mode {block,audit}, with rpz-passthru. allowlists for verified first-party endpoints and self-DoS protection keeping shared multi-tenant cloud platforms audit-only), and longitudinal cohort trend reports (agentic-perimeter trend).
Every audit reports two independent operational dimensions mapped to an Action Posture and split by remediation owner (Platform / API Engineering vs. SecOps / Brand Protection):
- First-Party Control Posture (
0–100, GradeA–ForN/A Baseline): Measures controllable first-party hygiene across six checks (C1Official MCP Registry,C2Official Scoped Packages,C3RFC 9728 Coverage,C4Least-Privilege OAuth Scopes,C5Domain Boundary Consistency,C6DNSSEC & IETF DNS-AID). Organizations with zero external agentic footprint receiveN/A Baseline. - External Ecosystem Threat Pressure (
0–100,None–Critical): Measures third-party exposure signals targeting the brand (T1URL-Path Token Exposure,T2Unverified 3P Proxies,T3Free-Email Maintainer Collisions,T4Unverified Packages,T5Active Lookalike Agent Endpoints,T6Phishing-Warning Lookalikes).
Empirical Study: State of External Agentic Exposure 2027
We ran a 100% passive baseline across 100 major public brands (50 Traditional Fortune/S&P 500 enterprises + 50 SaaS, Fintech, Cloud, Cybersecurity, and AI brands), followed by a read-only in-memory static census of 632 of 642 unique unverified brand-named npm/PyPI MCP packages discovered in the cohort:
- Full anonymized report:
docs/state_of_external_agentic_exposure_2027.md - Anonymized brand dataset (
N=100):datasets/study_2027_anonymized.json - Anonymized package static census (
N=632):datasets/static_census_2027_anonymized.json
Key Verified Findings
| Metric | All Brands (N=100) | Traditional Fortune/S&P 500 (N=50) | SaaS / Fintech / Cloud / AI (N=50) |
|---|---|---|---|
| External MCP ecosystem footprint | 58.0% | 20.0% | 96.0% |
| Official domain-anchored MCP Registry entry | 25.0% | 6.0% | 44.0% |
| Official Registry Vacuum (0 official + >=1 unverified 3P) | 33.0% (56.9% of MCP-active) | 14.0% (70.0% of MCP-active) | 52.0% |
| Unverified 3rd-Party Hosted MCP Proxy claiming brand | 39.0% | 14.0% | 64.0% (92.9% Enterprise SaaS) |
| Free-Email Maintainer on unverified MCP package | 50.0% | 10.0% | 90.0% (100.0% AI & Data) |
Live first-party mcp.* / agents.* endpoint |
29.0% | 4.0% | 54.0% |
| Missing RFC 9728 among live MCP endpoints | 13.8% (4/29) | 100.0% (2/2) | 7.4% (2/27) |
Apex DNSSEC validated (AD=true) / IETF DNS-AID |
18.0% / 0.0% | 12.0% / 0.0% | 24.0% / 0.0% |
Highlights from the 632-Package In-Memory Static Census (98.4% of all 642 unverified packages):
0.0%(0/632) contained hidden prompt-injection or Unicode Tag payloads: real-world external MCP supply-chain exposure today is driven by classical provenance and governance failures, not covert tool-description injection.23.7%(150/632) ship no source repository URL in package metadata.29individual maintainer accounts each publish unverified MCP packages targeting 3 to 23 distinct Top-100 brands (top two accounts control24packages across23brands and18packages across18brands), alongside a22-package dormantcoming-soonplaceholder cluster (3.5%) spanning13Top-100 brands and5prior npm Security0.0.1-securityholding packages (10.0%of the Tech/SaaS cohort).18.5%(117/632) declare lifecycle hooks (3postinstallremote binary downloaders,1without SHA-256 verification),17.2%(109/632) invoke shell/subprocess execution,4.1%(26/632) reference local AI agent config files (.cursor/mcp.json,claude_desktop_config.json,.codex/config.toml), and1.7%(11/632) register unrelated CLIbincommands.
Development & Testing
uv run --python 3.12 pytest -v
Responsible Disclosure & Neutrality
All published study datasets strip target domain/brand identifiers and sensitive live misconfiguration URLs. Classifications describe verifiable provenance properties and never assert malicious intent by commercial aggregators or community maintainers. See SECURITY.md for full passive-only guarantees and disclosure policy.
License
Apache-2.0 — see LICENSE.
Metadata
Release files for agentic-perimeter 0.3.0
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 |
|---|---|---|---|---|
| agentic_perimeter-0.3.0.tar.gz | 167.9 kB | With provenance | Details for agentic_perimeter-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentic_perimeter-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for agentic_perimeter-0.3.0-py3-none-any.whl |
Total release size: 300.6 kB
Release files / agentic_perimeter-0.3.0.tar.gz
| Download URL | agentic_perimeter-0.3.0.tar.gz |
|---|---|
| Size | 167.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ebc029c2255d401b8cbd9fe6db193fed88ae1c5f5dff0dbca7a3d29e1ca29d2
|
|
BLAKE2b-256 checksum How to use checksums |
14acb5fbe927a197b57f8e0090f685a21c2ec63e9592796eaaa95365ac36d16f
|
| 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 25, 2026.
Transparency logRelease files / agentic_perimeter-0.3.0-py3-none-any.whl
| Download URL | agentic_perimeter-0.3.0-py3-none-any.whl |
|---|---|
| Size | 132.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa96cea6d14f1dfd91a05235d9fbd8311fba8b9535d3f97bba629140fa437ff1
|
|
BLAKE2b-256 checksum How to use checksums |
248de9e5c9ecece2818563fd6b42905ca7000fdd12ab28e5d68708199bbbb2fe
|
| 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 25, 2026.
Transparency logSecurity for agentic-perimeter 0.3.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agentic_perimeter-0.3.0.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 25, 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.