Hardcoded MCP credentials found in public GitHub files
Researchers found hardcoded credentials in public GitHub configuration files for AI coding tools, potentially exposing access to connected services.
Overview
Researchers from Hush Security analyzed 82,000 configuration filesA text file that stores settings, network addresses, and options for how a program or server runs on GitHub and found that 12% contained hardcodedPasswords or secret keys written directly into source code instead of stored in a separate vault credentialsThe login details, such as a username and password or key, that prove who an account belongs to. These files are used by AI coding tools to connect to other systems, and the exposed keysThe secret value that locks or opens a message could allow unauthorized access to those services. The study identified the secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys by looking for specific patterns and measuring the randomness of the data. Because the files are public, anyone can see the sensitive information stored inside them. The researchers noted that deleting the secrets from the current version of a file does not remove them from the Git history. This means that organizations using these tools may have their internal systems exposed to attackers without realizing it.
Terms in this story
- configuration files
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- Hardcoded
- Passwords or secret keys written directly into source code instead of stored in a separate vault. When a vendor ships a router or server appliance with hardcoded credentials inside its firmware, every customer device shares the exact same secret backdoor password.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- keys
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- MCP
- An open standard for connecting AI assistants to external data sources, files, and software tools. Software teams use the Model Context Protocol so an AI coding tool or chatbot can query databases and run local commands, which makes securing those tool connections a major concern.
- API keys
- A secret string a program sends with an API request to identify itself and get access. Software teams sometimes accidentally upload an API key to a public code repository, allowing attackers who scan for leaked keys to rack up cloud bills or read private databases. Security+ objective 4.6 lists the term
- access tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- Identity Security
- The tools and policies that control who can sign in and which systems they may use. Cloud platforms rely on IAM rules to decide which employee or server account can read a storage bucket, spin up virtual machines, or view billing records.
- API
- A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 lists the term
- authentication
- Verifying that a user, device, or program really is who it claims to be before allowing access. When you enter a password, scan a fingerprint, or present a key, authentication checks your identity before a server decides what your account is allowed to do.
- environment-variable
- A named setting stored in a program's running environment that often holds file paths or secret keys. Cloud apps frequently store database passwords and API tokens in environment variables, so an attacker who tricks a server into printing its environment variables can steal those secrets.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Help Net Security website. Cite the article, not this page.
Read the full article on Help Net Security (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
The State of MCP Configuration: The Identity Security Gaps... Found by reading the article; these words are close to its own - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"Hardcoded MCP credentials found in public GitHub files..." Found in the headline - Security+ 4.8 Explain appropriate incident response activities.
"......and found that 12% of credential slots contained a hardcoded credential literal, potentially..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......access tokens and other credentials used by AI coding tools have been found in publicly..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of credential sources and restrictions related to credential usage
"Hardcoded API keys, access tokens and other credentials..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role