Case · DiggingBeagle record

GitHub MCP install examples persisted expanded personal access tokens

Shell substitution could place a GitHub PAT in arguments and saved Claude Code settings.

Public disclosure: Nov 9, 2026

Scope

An operator follows the official installation command while a secret exists in the shell environment. Bash or PowerShell substituted credential values before handing JSON to claude mcp add-json, potentially persisting the value.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade C
Remediation
mitigation available
AI role
AGAINST AI
Basis and provenance

Scoped Claim(s) link to SRC-2026-DB233-GITHUB-MCP-INSTALL-PAT; reviewed as vulnerability in research_demonstration. Only reported controlled behavior or proof-of-concept is established; no production victim or impact magnitude is measured.

Assessed Nov 10, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Precondition and trust context

    An operator follows the official installation command while a secret exists in the shell environment.

  2. 02

    Crossed boundary

    Bash or PowerShell substituted credential values before handing JSON to claude mcp add-json, potentially persisting the value.

  3. 03

    Observed limit

    No documented victim disclosure; exact exposure to history and process monitors depends on shell and environment.

Timeline

  1. Nov 9, 2026
    Event type unspecified

    Initial documented finding

    GitHub MCP install examples persisted expanded personal access tokens

  2. Nov 9, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-DB233-GITHUB-MCP-INSTALL-PAT-01A repository issue reports: Bash or PowerShell substituted credential values before handing JSON to claude mcp add-json, potentially persisting the value.supported

Basis: reported finding

Link to claim

Controls and mitigations

  • Use runtime secret references rather than interpolating token values into command arguments and persisted MCP JSON.
  • Review generated Claude Code configuration, process argument visibility, shell histories and already shared installation scripts for literal tokens.

Unknowns and contradictions

  • No documented victim disclosure; exact exposure to history and process monitors depends on shell and environment.

Sources and citation

Material revision history

  1. Nov 10, 2026 · Published version · first publication · revision 235