Case · DiggingBeagle record

Claude Code saved approval commands exposed secrets in repositories and images

GitGuardian identified thousands of live credentials embedded in locally stored Claude Code permission rules later copied into public Git and Docker artifacts.

Public disclosure: Nov 9, 2026

Scope

A developer approves a command embedding an actual credential, and an assistant persists the literal command in settings.local.json. That settings file later reaches a public repository/history or container image. A supposed future authorization shortcut became a persistent record of the secret; source control ignoring the file did not protect copied history or Docker layers.

Assessment profile

Assessment method
Setting
controlled live
Exploitation
not established
Evidence
Grade B
Remediation
mitigation available
AI role
AGAINST AI
Basis and provenance

Scoped Claim(s) link to SRC-2026-DB233-GITGUARDIAN-CLAUDE; reviewed as research in controlled_live. Evidence of reported deployed or live observations does not alone establish complete victim losses or actor attribution. The source does not establish an unauthorized effect in a real deployment.

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

At a glance

Mechanism and trust boundary

  1. 01

    Precondition and trust context

    A developer approves a command embedding an actual credential, and an assistant persists the literal command in settings.local.json. That settings file later reaches a public repository/history or container image.

  2. 02

    Crossed boundary

    A supposed future authorization shortcut became a persistent record of the secret; source control ignoring the file did not protect copied history or Docker layers.

  3. 03

    Observed limit

    Counts describe scanner-observed secret artifacts and validity tests, not verified human-account takeovers or all affected deployments.

Timeline

  1. Nov 9, 2026
    Event type unspecified

    Initial documented finding

    Claude Code saved approval commands exposed secrets in repositories and images

  2. Nov 9, 2026
    disclosure

    Public disclosure

Claims & evidence

CLM-DB233-GITGUARDIAN-CLAUDE-01GitGuardian reported 31,088 distinct secrets across 23,276 repositories and 5,343 that were valid when detected.supported

Basis: reported finding

Link to claim
CLM-DB233-GITGUARDIAN-CLAUDE-02The same investigation identified 613 secrets in public Docker Hub images and 99 valid at detection.supported

Basis: reported finding

Link to claim

Controls and mitigations

  • Keep local agent approval and environment configuration outside published repositories and build contexts; remove literal secrets from scripts and settings.
  • Rotate any exposed credentials, scan repository history and published images, and restrict CI access to sensitive local configurations.

Unknowns and contradictions

  • Counts describe scanner-observed secret artifacts and validity tests, not verified human-account takeovers or all affected deployments.

Sources and citation

Material revision history

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