agentic-perimeter
Reads GitHub organization metadata such as blog/email and repository/package provenance to anchor official brand assets and distinguish verified first-party assets from unverified third-party MCP packages.
Audits the npm registry for unscoped or unverified brand-named MCP packages, package collisions, and maintainer provenance; can optionally inspect public tarballs passively in memory.
Audits PyPI for brand-named MCP package collisions and unverified maintainers; can optionally inspect public wheels/tarballs passively in memory.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agentic-perimeter
Passive External Attack Surface Management (EASM) CLI & MCP Server 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.mdBatch-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 8Optional 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).
Related MCP server: owasp-mcp-scan
Run as an MCP Server (Claude Code, Cursor, VS Code, Windsurf)
agentic-perimeter includes a built-in, zero-dependency, strictly read-only MCP stdio server (readOnlyHint: true, destructiveHint: false) exposing audit_domain and lint_dns_aid:
{
"mcpServers": {
"agentic-perimeter": {
"command": "uvx",
"args": ["agentic-perimeter", "mcp"]
}
}
}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.sarifWhat It Audits
Vector | Focus | Passive Signals Verified | OWASP Mapping |
V1 (Primary) | MCP Supply-Chain & Brand Provenance | Correlates Official MCP Registry ( |
|
V2 (Secondary) | External Perimeter, Wire-Level DNS-AID / ANS v2 & OAuth Hygiene | Queries DoH ( |
|
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 ( |
|
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.mdAnonymized brand dataset (
N=100):datasets/study_2027_anonymized.jsonAnonymized 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 | 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 ( | 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 -vResponsible 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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Audit active CISA KEV ransomware CVEs, SSL/TLS CT log subdomains, SPF/DMARC security & ICANN RDAP.
Free read-only tools for agents: agent-readiness audit, TLS/DNS/header checks, MCP search, utils.
Free domain/AEO, OpenAPI, SBOM, header audits, MCPDiet token profiler, SPF/DMARC & SPDX checks.
71Audit any domain or agent for A2A, MCP, x402, MPP, ERC-8004, and Poppy readiness.
Related MCP Servers
- MIT
- AlicenseNot gradedqualityDmaintenancePassive security scanner that audits a running MCP server against the OWASP MCP Top 10 and grades it A-F. Read-only static analysis of the advertised tools, prompts and resources with console/JSON/SARIF output, and it also runs as an MCP server itself.MIT
- AlicenseNot gradedqualityBmaintenanceAudits MCP server configurations for security risks including capability inventory, SSRF, prompt injection, and drift detection. Works in read-only mode and can also be used as an MCP server to let AI agents audit their own attack surface.116 PyPI4MIT
- AlicenseAqualityBmaintenanceRead-only MCP server for the markdown files coding agents load: CLAUDE.md, AGENTS.md, GEMINI.md, SKILL.md, rules, commands and memory. Lints frontmatter, broken imports, invisible characters and hidden comments, shows which files load per tool and folder, and estimates token budgets. Never writes, deletes or touches the network.74MIT