Skip to content

H3-2026-0083

Hardcoded credentials in Git repository

Category CREDENTIALS
Base Score 7.1

Description

A Git repository contains hardcoded credentials such as API keys, access tokens, passwords, connection strings, or private keys committed directly into source code or configuration files. NodeZero cloned the repository, scanned its full commit history, extracted the credential material, and confirmed that at least one of the credentials is valid by authenticating with it. Credentials remain recoverable from Git history even after the file that contained them has been changed or removed in a later commit.

Impact

An attacker with read access to the repository can extract the embedded credentials from the source code or commit history and use them to authenticate to the services they protect. A valid source-control access token in particular lets the attacker enumerate and clone additional repositories the token can reach, including private repositories, and harvest further secrets from them.

References