Eminence Growth Solutions, home
Menu

AI failures · Security or operational lapse

xAI: API Key in a Staff Member's GitHub Repository Had Access to Unreleased and Private Models (2025)

Verified Checked against its sources on 2 sources quoted

Where it happened
International or several countries
Organization
xAI
Date
GitGuardian says it detected the key on 2 March 2025; Krebs on Security reported it in May 2025
Function
AI company credential management
Work stage
A staff member's source code repository on GitHub
System
xAI API (unreleased Grok models and fine-tuned private models)
Technology
Conventional software (not AI)
Type of failure
Security or operational lapse
Caught by
A researcher

Summary

GitGuardian says an automated system detected a new secret in a commit in a public repository on 2 March 2025 and emailed the commit author. Krebs on Security reported that the key was exposed in the GitHub code repository of a technical staff member at xAI and could, for about two months, have allowed anyone to query private xAI large language models. GitGuardian told Krebs on Security the exposed API key had access to several unreleased Grok models and, in total, at least 60 fine-tuned and private LLMs. Krebs on Security reports the key was still valid and usable on April 30, when GitGuardian directly alerted xAI's security team. It reports xAI told GitGuardian to use its bug bounty program, and GitGuardian says that a few hours later the repository was removed from GitHub and the key revoked. Krebs on Security reports that xAI did not respond to its request for comment.

Consequence

  • The repository was removed from GitHub and the key revoked a few hours after GitGuardian's report, per GitGuardian

Who caught it A researcherFound outside the organization

This is a security or operational lapse at an AI company or in an AI tool, not a failure of AI output or action. It is tracked here, kept separate from incident counts, and carries no lesson.

Key dates

  1. March 2025Event
  2. November 3, 2026Checked against sources

Developments are added when the record is reviewed. Next review: November 3, 2027.

Evidence

Each passage is quoted from its source. The record shows the date it was last checked.

  1. In total, GitGuardian found the key had access to at least 60 fine-tuned and private LLMs.

    Supports: scale

    leaked a private key on GitHub that for the past two months could have allowed anyone to query private xAI large language models (LLMs)

    Supports: what the key could be used for

    the exposed API key had access to several unreleased models of Grok, the AI chatbot developed by xAI.

    Supports: unreleased models

    exposed in the GitHub code repository of a technical staff member at xAI.

    Supports: whose repository held the key

    GitGuardian had alerted the xAI employee about the exposed API key nearly two months ago — on March 2. But as of April 30, when GitGuardian directly alerted xAI’s security team to the exposure, the key was still valid and usable.

    Supports: timing of the alerts

    xAI told GitGuardian to report the matter through its bug bounty program at HackerOne , but just a few hours later the repository containing the API key was removed from GitHub.

    Supports: xAI's reply and the removal

    xAI did not respond to a request for comment.

    Supports: no comment from xAI

    xAI Dev Leaks API Key for Private SpaceX, Tesla LLMs Krebs on Security Reporting or analysis

  2. On the 2nd of March 2025, this automated system discovered a new secret in a commit in a public repository.

    Supports: discovery date

    the API key was still valid, two months after the original discovery and alerting.

    Supports: key remained valid

    only a few hours later, the leaky repository was removed from GitHub and the key revoked.

    Supports: repository removed and key revoked

    xAI Secret Leak: The Story of a Disclosure GitGuardian Reporting or analysis

Suggested citation. Eminence Scan, “xAI: API Key in a Staff Member's GitHub Repository Had Access to Unreleased and Private Models (2025)”, Eminence Growth Solutions, last verified November 3, 2026, https://eminencegrowthsolutions.com/tools/eminence-scan/record/fail-130/.

Using our research: you may read and quote Eminence Scan with credit to “Eminence Scan, Eminence Growth Solutions” and a link; all other rights reserved. Terms: Using our research.

Spotted an error, or a development we have missed? Report a correction. How we check records: research methodology.

Stay Connected

Follow what matters
to you and your work.

AI Cost & Governance | AI Talent & People | Vendor Intelligence
Eminence Scan | EmTrace | Eminence Edge

Choose updates by center and tool.

Choose your alerts

Research and practical tools, chosen by you.

Sign in with your email address. There is no password.