LIVE · cybersecurity feed
Live wire
breach

Hardcoded MCP credentials found in public GitHub files

Hardcoded credentials for AI coding tools have been discovered in publicly accessible configuration files on GitHub, potentially exposing sensitive access tokens and API keys. The findings come from a recent analysis of approximately 82,000 configuration files, revealing that 12% of credential slots contained a hardcoded literal.

ZeroDay News ·

Source: Help Net Security

Hardcoded credentials for AI coding tools have been discovered in publicly accessible configuration files on GitHub, potentially exposing sensitive access tokens and API keys. The findings come from a recent analysis of approximately 82,000 configuration files, revealing that 12% of credential slots contained a hardcoded literal.

The research identified these exposures by searching public GitHub repositories for common configuration filenames associated with major coding agents. Investigators then examined environment variables and authentication headers within these files, classifying how authentication information was stored. Categories included hardcoded values, environment-variable references, client-managed prompts, secret-manager references, placeholders, and empty fields.

To pinpoint likely secrets within hardcoded values, researchers employed provider-specific patterns and Shannon entropy, a measure of randomness often used to identify sensitive data. It is important to note that GitHub's code search indexes only default branches, excludes forks, and limits individual query results, meaning the reported figures are considered lower-bound estimates rather than definitive counts. While some files included in the study were general configuration files, only those declaring an MCP server were counted in the analysis. Researchers did not attempt to authenticate with any services using the discovered values, and some credentials may have been revoked or rotated since their initial commitment.

A significant portion of the hardcoded secrets, 55%, lacked a vendor-recognizable token format. This included 31% classified as opaque bearer tokens intended for internal MCP servers. For these values without a clear provider-specific format, researchers assessed their likelihood of being credentials based on key names, length, entropy, and character patterns. The analysis determined that these values predominantly consisted of vendor API keys, bearer tokens, and database passwords, with non-secret identifiers accounting for a negligible share. No raw secret values were retained during the study, and all findings were aggregated and anonymized to protect individual repositories or authors.

A critical aspect of the vulnerability is that simply removing sensitive information from the latest version of a file does not eliminate it from a repository. Git's version control system retains previous iterations, making deleted values accessible through commit history. The research team examined the history of 7,681 configurations containing credentials, reviewing up to seven revisions prior to the current version. They found 243 instances where a secret had been removed from the current file but remained accessible in an earlier commit. This means that rotating the affected credential at the provider level is essential to end the exposure, as merely deleting it from the current configuration is insufficient.

Of the hardcoded credential literals, 24% were identified as broad-scope and non-expiring by design. Furthermore, 53% of credentials with a classified scope provided extensive access, such as organization-, account-, workspace-, or database-wide permissions. For credentials with an explicit expiration policy, 80% did not expire by default. Long-lived credentials combined with extensive permissions significantly increase the potential impact of an exposure, as a single compromised credential could grant access to multiple resources or critical functions.

The growing use of AI agents further complicates the issue of machine identities. These agents often operate as non-human identities, using credentials to authenticate with systems without direct human intervention. MCP connections, in particular, can grant AI agents permissions to interact with source code, databases, and cloud infrastructure. As the deployment of these agents expands, organizations face increasing challenges in tracking which agents have access, their specific permissions, ownership, and when that access should be terminated.

breachai
ShareXLinkedInWhatsAppFacebook

More News

view all →
breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.