fix(c02): don't score framework package-registry update-checks as egress overreach (litmus-v15)#111
Merged
Conversation
…ess overreach (litmus-v15) The C-02 egress baseline was empty, so any outbound connection during probe 2.2 counted as the server's overreach. But many MCP frameworks and package tools phone a public registry at startup with zero author intent — most notably FastMCP, whose stdio run() prints a banner that calls check_for_newer_version() → GET https://pypi.org/pypi/fastmcp/json (on by default; cold cache in the sandbox). Every FastMCP-based server therefore "reaches pypi.org" and was graded D for egress it never wrote. Seed DEFAULT_EGRESS_BASELINE with public package-registry infrastructure (pypi.org, files.pythonhosted.org, registry.npmjs.org) so this server-independent tooling egress is no longer scored as overreach. Kept deliberately narrow: registry APIs + download CDNs only. The cloud instance-metadata endpoint (169.254.169.254 / metadata.google.internal) is NOT allowlisted — a cloud SDK probing it is the same class of noise, but the endpoint is a real SSRF/credential target, so it stays flagged. Pass/fail semantics change (some framework-only egress moves D→A) → litmus-v15. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
RubenSousaDinis
added a commit
that referenced
this pull request
Jul 9, 2026
Ships litmus-v15: the C-02 egress baseline now includes public package-registry infrastructure (pypi.org, files.pythonhosted.org, registry.npmjs.org), so a framework's default startup update-check — chiefly FastMCP pinging pypi.org — is no longer scored as the server's egress overreach. Cloud instance-metadata stays flagged. (#111) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #110.
Problem
The C-02 egress baseline (
DEFAULT_EGRESS_BASELINE) was empty, so any outbound connection during probe 2.2 counted as the server's overreach. But many MCP frameworks/package tools phone a public registry at startup with zero author intent — chiefly FastMCP, whose stdiorun()banner callscheck_for_newer_version()→GET https://pypi.org/pypi/fastmcp/json(default on, cold cache in the sandbox). Every FastMCP-based server was therefore graded D for egress it never wrote.Verified end-to-end: re-grading a FastMCP server with
--server-env FASTMCP_CHECK_FOR_UPDATES=offflips it D→A (C-02 passes), provingpypi.orgwas the sole finding and it was framework noise. See #110 for the full trace.Change
DEFAULT_EGRESS_BASELINEwith public package-registry infrastructure:pypi.org,files.pythonhosted.org,registry.npmjs.org(new exportedPACKAGE_REGISTRY_BASELINE).METHODOLOGY_VERSION→litmus-v15(framework-only egress moves D→A is a pass/fail-semantics change, consistent with how prior C-02/C-04 FP fixes bumped).Tests
egress-allowlist.test.ts: baseline now allows the three registry hosts; still rejects the metadata endpoint and un-named registry subdomains (exact hosts only).c02-egress.test.ts: a server whose only egress ispypi.org(incl. the in-sandbox:8443) under the default baseline → C-02 pass; egress to169.254.169.254under the default baseline → still fail.litmus.test.ts: methodology version assertion updated tolitmus-v15.core,probes,litmustypecheck clean.Notes for review
/methodologypage (separate repo) will need a v15 sync as a follow-up; not in this repo's tree.