Skip to content

security: remove third-party fastmcp.app fetch from runtime-setup fra… - #1926

Merged
v1v merged 2 commits into
mainfrom
security/remove-fastmcp-external-fetch-1
Aug 27, 2026
Merged

security: remove third-party fastmcp.app fetch from runtime-setup fra…#1926
v1v merged 2 commits into
mainfrom
security/remove-fastmcp-external-fetch-1

Conversation

@v1v

@v1v v1v commented Aug 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Removes the external curl fallback in .github/workflows/gh-aw-fragments/runtime-setup.md that fetched repository conventions from https://agents-md-generator.fastmcp.app/mcp when AGENTS.md was missing.
  • Keeps only the local behavior: if AGENTS.md exists in the workspace, copy it to /tmp/agents.md; otherwise skip without fetching from any third-party endpoint.
  • Regenerates compiled workflow lock files to reflect the fragment change.

Security impact

  • Eliminates a third-party instruction-injection path into /tmp/agents.md, which is consumed as repository conventions and propagated into sub-agent prompts.
  • Ensures conventions are sourced only from repository-controlled content.

Test plan

  • Run make compile and confirm lock files regenerate cleanly.
  • Verify workflow behavior with AGENTS.md present (copy path unchanged).
  • Verify workflow behavior without AGENTS.md present (step skips cleanly, no external fetch).

Note: The compiled lock files (*.lock.yml) are expected to change after this source update.

originally implemented at #1780
The body of this PR is automatically managed by the Trigger Update PR Body workflow.

cachedout and others added 2 commits August 27, 2026 14:07
…gment

The else branch of "Fetch repository conventions" fetched from
https://agents-md-generator.fastmcp.app/mcp — a non-Elastic host —
and wrote the returned summary verbatim to /tmp/agents.md, which the
agent treats as trusted repo policy. A compromise of or MITM against
that host would inject instructions into the agent's trusted channel
for every adopting repo that lacks an AGENTS.md, with no repo access
required by the attacker.

The fallback is removed. If no AGENTS.md is present, the step skips
gracefully (same behaviour as when the curl failed previously).

Note: the compiled lock files need to be regenerated with `make compile`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the big_boom Large/high-risk PR blast radius; strong human review required label Aug 27, 2026
@v1v
v1v merged commit 6aa48c6 into main Aug 27, 2026
26 checks passed
@v1v
v1v deleted the security/remove-fastmcp-external-fetch-1 branch August 27, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

big_boom Large/high-risk PR blast radius; strong human review required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants