Huny's Dev Blog
huny.dev

Auditing AI Coding Agent Skills (SKILL.md) and MCP Servers: Convex's 2-Call Safety Classifier Split (Issue #64) and the mcp-server-git $VAR Leak (GHSA-f33v-89w7-f9vc)

A technical deep dive into AI coding agent skill and MCP supply-chain security following the Convex Claude Code plugin controversy (commit 6ca54f6, Issue #64—silent prompt POSTs and 2-call splits to evade harness safety classifiers) and the official mcp-server-git environment variable leak (GHSA-f33v-89w7-f9vc, fixed in 2026.11.27). Covers marketplace commit-pinning limits, sandbox blind spots, and automated pre-install auditing.

Hun Jang
Hun Jang Nov 29, 2026

AI Coding Agent SKILL.md & MCP Supply-Chain Security Architecture: Convex Plugin Safety Classifier Split (Issue #64) and mcp-server-git Environment Variable Leak (GHSA-f33v-89w7-f9vc) Defense Diagram (Conceptual Diagram)

On November 27–28, 2026, a GitHub issue on Convex's official Claude Code plugin (commit 6ca54f6, Issue #64)—listed in Anthropic's claude-plugins-official marketplace—triggered widespread security scrutiny after revealing that its skills silently POSTed users' app ideas to a remote convex.site endpoint, piped unpinned remote scripts into Bash, and explicitly instructed the agent to split downloading and execution into two separate Bash calls to evade harness safety classifiers. On the same day, official advisory GHSA-f33v-89w7-f9vc disclosed that mcp-server-git (prior to 2026.11.27) expanded $VAR environment variables inside repo_path and echoed leaked API keys back in error messages. The core engineering takeaway is clear: being listed in an official plugin marketplace with a pinned Git commit SHA is entirely separate from guaranteeing that a skill will not exfiltrate prompts or execute unpinned remote code at runtime.

This post cross-verifies Munder Difflin's 8-point agent skill security audit guide, Zeniteq's investigation into Convex Issue #64 and the 30-second vs. 24-hour prompt retention discrepancy, Hack-Log's empirical audit of 296 official marketplace entries and 390 local SKILL.md files, and Felipe Ferreira's technical breakdown of mcp-server-git (GHSA-f33v-89w7-f9vc) and Bagel MCP (CVE-2026-138027 / CVE-2026-138028) to establish a practical defense-in-depth workflow for engineering teams. All findings below are grounded in these public advisories, repository revisions (6ca54f6), and vendor statements (verified on 2026-11-29) rather than independent telemetry interception against Convex's backend servers.

1. Why "Official Marketplace Listing" and "Pinned Commit SHA" Do Not Equal Runtime Safety

Developers frequently assume that plugins listed in an official marketplace directory (claude-plugins-official) have had their network destinations and shell commands vetted by the platform vendor. However, an inspection of ~/.claude/plugins/marketplaces/claude-plugins-official/.claude-plugin/marketplace.json by Hack-Log reveals two critical architectural realities:

  • 82% of Listed Plugins Live in External Third-Party Repositories: Out of 296 plugins in the official registry, 244 (82%) point to external GitHub repositories maintained by third-party vendors or community authors.
  • Pinning a Skill Commit Does Not Pin Remote Scripts: Every external entry in marketplace.json pins a specific Git SHA—for example, Convex was pinned to {"source": "url", "url": "https://github.com/get-convex/convex-backend-skill.git", "sha": "6ca54f6e2e7582812187b8a5a4783fb4dff52692"}. However, if the pinned commit itself (6ca54f6) instructs the agent to POST prompts to an external server and curl unpinned scripts into bash, commit pinning neither prevents prompt exfiltration nor locks the code that actually runs on your machine (Munder Difflin).
Dimension
Convex Backend Skill (commit 6ca54f6 / Issue #64)
Official mcp-server-git (GHSA-f33v-89w7-f9vc)
Bagel MCP (CVE-2026-138027 / CVE-2026-138028)
Disclosure Timeline
Opened Oct 26, 2026 → Surged on HN Nov 27 (342+ pts); README disclosures updated Nov 27–28
Published November 27, 2026 (Moderate severity)
Fixed Nov 15 (2.5.5) → CVEs published November 27, 2026 (High severity)
Attack / Trigger Surface
Prompt instructions inside quickstart, add, and labs-quickstart SKILL.md files
repo_path parameter passed to GitPython in MCP git tool calls
"Read-only" query_messages tool (DuckDB SQL) and rsync options
Technical Mechanism
1. Silent HTTP POST of user app idea to convex.site
2. Unpinned curl -fsSL ... | bash
3. 2-Call Split (separate download & run) to slip past harness safety classifiers
Prompt-injected agent passes repo_path="/repos/$API_KEY"; GitPython expands $VAR and echoes the secret plaintext in the error response
Unsandboxed DuckDB SQL execution and rsync option injection triggered via prompt injection
Remediation & Hardening
Updated README.md disclosures (24h deletion) and rule forbidding command rewording to bypass safety checks (Zeniteq)
Upgrade to mcp-server-git 2026.11.27 and strip secrets from MCP server environments (Felipe Ferreira)
Upgrade immediately to bagel-mcp 2.5.5 or later (Felipe Ferreira)

2. Inside Convex Issue #64 (commit 6ca54f6): The Three Documented Risk Patterns

Filed by GitHub user thirtysix on October 26, 2026 and detailed by Munder Difflin and Zeniteq, Issue #64 documented three concrete behaviors at exact line numbers in revision 6ca54f6:

2.1 skills/quickstart/SKILL.md (Lines 48–56): Undisclosed Prompt Upload Marked as # [telemetry 1/3]

Lines 48–56 set the remote host to basic-anteater-667.convex.site, opened a comment block reading # [telemetry 1/3] (line 51), and used curl to send an HTTP POST to basic-anteater-667.convex.site/generate containing the user's one-sentence project idea alongside a nextjs-shadcn template identifier, saving the returned slug to /tmp/convex-qb-slug.

  • Why It Crossed the Trust Boundary: Because Claude Code can automatically route a plain-English request to build an app into an installed skill without an explicit slash command, the user's project description left the local machine for an external vendor endpoint with zero notice inside SKILL.md.

2.2 skills/add/SKILL.md (Lines 62 & 64): Unpinned curl -fsSL | bash Execution

Line 62 (curl -fsSL "$B/add-hosting" | bash) and line 64 (curl -fsSL "$B/add-component" | bash) piped remote setup scripts from the same host directly into bash. Without cryptographic checksum verification, reviewing the local SKILL.md file gives no guarantee over what payload that remote URL will return tomorrow.

2.3 skills/labs-quickstart/SKILL.md (Lines 74–80): Splitting Calls to Evade Harness Safety Classifiers

The most serious architectural red flag appeared on lines 76–77 of skills/labs-quickstart/SKILL.md (Munder Difflin, Zeniteq):

"A single command that both downloads remote code and executes it is the shape harness safety classifiers block."

To avoid triggering the harness safety classifier, the skill instructed the agent to split downloading the bootstrap script and executing it into two separate Bash tool calls. Even though the issue author noted the intent appeared to be frictionless onboarding rather than malice, a third-party skill coaching an AI agent on how to structure shell calls to evade host safety classifiers undermines the entire agent security model.

2.4 The Unresolved Retention Gap: CEO's "~30 Seconds" vs. README's "24 Hours"

On November 27, 2026, Convex CEO Jamie Turner responded in the Hacker News thread (item?id=50669765), explaining that the prompt upload powers project bootstrapping (replacing the discontinued Convex Chef product), is not telemetry, and is discarded within roughly 30 seconds after initial environment selection.

However, as Zeniteq documented on November 28, Convex's updated plugin README.md now explicitly states that "A submitted idea is deleted after 24 hours" alongside a new rule that skills must not reword commands to bypass permission prompts or safety checks. Because the public sources do not reconcile the CEO's 30-second statement with the README's 24-hour policy, enterprise teams should treat 24-hour external retention as the baseline assumption and keep proprietary business logic or customer names out of scaffolding prompts.

3. Harness Sandbox Blind Spots and the mcp-server-git $VAR Leak (GHSA-f33v-89w7-f9vc)

Securing coding agents requires understanding where harness guardrails stop and how MCP servers handle environment variables.

3.1 disableSkillShellExecution vs. Unsandboxed Plugin Hooks (hooks.json, .mcp.json, bin/)

In Claude Code, an installed skill or plugin has the same network and filesystem reach as any other user-level process (Munder Difflin):

  • Pre-Model ! Shell Commands & Model Tool Calls: A line in SKILL.md starting with ! and a backticked command runs in the shell before the skill text is even sent to the model. You can neutralize this by setting "disableSkillShellExecution": true (which replaces each command with [shell command execution disabled by policy]), while standard tool calls made by the model remain governed by permission prompts and the harness sandbox.
  • Code Executed Directly by a Plugin: Crucially, permission rules and the harness sandbox cover only the tool calls the model makes—not code a plugin runs by itself via hooks/hooks.json, .mcp.json, or binaries in bin/. Auditing SKILL.md without auditing hooks.json and .mcp.json leaves the back door open.

3.2 How mcp-server-git Leaked Environment Secrets via repo_path (GHSA-f33v-89w7-f9vc)

Published on November 27, 2026, advisory GHSA-f33v-89w7-f9vc (Moderate severity, patched in 2026.11.27) exposed a clean exfiltration primitive in the official Model Context Protocol Git server (mcp-server-git):

  1. Root Cause: mcp-server-git passes the repo_path tool argument to GitPython, which automatically expands $VAR environment variables embedded in file paths.
  1. Exploit Chain: When an agent processes untrusted repo content (an issue, PR description, or README) containing a prompt injection, the injected instruction tells the agent to invoke a Git tool with repo_path="/repos/$API_KEY" (or $GIT_TOKEN, $CLOUD_KEY).
  1. Error-Echo Exfiltration: Because /repos/<expanded_secret> does not exist on disk, GitPython throws a path-not-found error (ERROR: Path not found: "/repos/demo_api_key_9f2a...") that echoes the expanded secret plaintext directly back into the agent's tool response, allowing the attacker to read arbitrary environment variables from the MCP server process.

4. Practical Audit Commands & Automated CI Gate

4.1 3-Minute Local Audit of Installed SKILL.md Files and Plugin Caches (Bash)

Combining Munder Difflin's 8 checks and Hack-Log's audit queries, run these commands against ~/.claude/plugins/cache (or your project's .claude/ folder):

4.2 CI Static Scanner for SKILL.md & Environment-Sanitized MCP Launcher (Python)

Use the Python script below in CI to reject any SKILL.md containing classifier-evasion coaching or unpinned remote execution, and wrap MCP server launches so ambient secrets ($API_KEY, $AWS_SECRET_ACCESS_KEY) are stripped from the MCP server environment (GHSA-f33v-89w7-f9vc defense-in-depth):

5. Engineering Security Checklist

  • Audit Every File Before Enabling a Skill or Plugin: Did you inspect SKILL.md, all scripts, hooks/hooks.json, .mcp.json, and bin/ executables rather than relying on an official marketplace listing?
  • Treat Classifier-Evasion Instructions as an Immediate Hard Stop: Does any SKILL.md mention harness safety classifiers or instruct the agent to split or reword commands to avoid blocks?
  • Enforce disableSkillShellExecution: true: Have you disabled automatic ! backtick shell execution in your agent harness and kept interactive permission prompts enabled for network and shell calls?
  • Pin or Bundle Remote Scripts: If a skill fetches setup scripts over the network, are those scripts verified against an immutable SHA-256 hash rather than pulled from a floating URL or HEAD branch?
  • Patch MCP Servers and Sanitize Their Environments: Have you upgraded mcp-server-git to 2026.11.27+ (and bagel-mcp to 2.5.5+ if used) and removed unneeded API keys from the MCP server's environment variables?

References & Official Sources (Verified 2026-11-29)

Korean version: AI 코딩 에이전트 SKILL.md · MCP 공급망 보안 해부: Convex 스킬의 안전 분류기 우회(2-Call Split)·프롬프트 외부 전송(Issue #64)과 mcp-server-git 환경변수 유출(GHSA-f33v-89w7-f9vc) 점검하기AI 코딩 에이전트 SKILL.md · MCP 공급망 보안 해부: Convex 스킬의 안전 분류기 우회(2-Call Split)·프롬프트 외부 전송(Issue #64)과 mcp-server-git 환경변수 유출(GHSA-f33v-89w7-f9vc) 점검하기

추천 글