Coding Agents Copy Your Secrets to a Hidden File. Thousands Are on GitHub
Coding agents copied secrets to hidden files, and researchers found thousands of exposed credentials in public GitHub repositories.
Overview
Researchers from Apiiro discovered 2,539 real secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys inside 1,994 public GitHub repositories. These exposed items included databaseAn organized digital store of structured records, such as customer accounts, orders, or messages, queried by software passwords, cloud keysThe secret value that locks or opens a message, API tokensA secret string a program sends with an API request to identify itself and get access, and SSHAn encrypted network protocol that administrators and developers use to log in to remote servers and run commands rootThe highest administrator permission level on a system, with unrestricted control over all files and programs logins. The findings affected 63 organizations, including a database vendor that leaked its own admin-level cloud key. Other exposed credentials included a productionThe live servers and databases that real customers actually use, as opposed to internal test machines Azure Postgres password, a Square production tokenA short-lived digital pass that a server gives a logged-in user or app, and the owner password of a medical-records database. Coding agents are responsible for copying these sensitive details to hidden files that developers then upload to public code hosting sites. As a result, sensitive access credentials for major companies and medical data providers are now visible to anyone who searches these public repositories.
Terms in this story
- 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.
- database
- An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
- 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)
- API tokens
- 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
- token
- 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
- SSH
- An encrypted network protocol that administrators and developers use to log in to remote servers and run commands. Attackers constantly scan the internet for servers with open SSH ports and weak passwords, while defenders protect SSH access with cryptographic keys instead of passwords.
- root
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
- production
- The live servers and databases that real customers actually use, as opposed to internal test machines. A bug or breach in a company's production environment directly affects live users and real customer records.
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 DataBreaches.net website. Cite the article, not this page.
Read the full article on DataBreaches.net (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
"Apiiro research found 2,539 real secrets..." Found by reading the article; these exact words are in it - Who is affected: "63 organizations..." Organizations using the product
Copied word for word from the article - Security+ 3.3 Compare and contrast concepts and strategies to protect data.
"......token, and the owner password of a medical-records database." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......secrets in 1,994 public GitHub repositories: database passwords, cloud keys, API tokens, SSH root..." Found in the opening sentences - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"......SSH root logins. Among them: a database vendor's own admin-level cloud key, a production..." Found in the opening sentences - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"......secrets in 1,994 public GitHub repositories: database passwords, cloud keys, API tokens, SSH root..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......repositories: database passwords, cloud keys, API tokens, SSH root logins. Among them: a database vendor's..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role