Cybersecurity news

Jessica Doner

Back to the list

Deleting a leaked key from your repo doesn't protect you

Aikido,

Deleting a leaked key, rewriting git history, or removing a repository does not protect you because attackers routinely scan the internet and likely already have a copy.

Attacks and breaches

Overview

In May, developers for LiteLLM accidentally committed an administrative keyThe secret value that locks or opens a message to a public GitHub repositoryA central storage place where a software project's source code, change history, and configuration files are kept. Attackers used that credential to compromise the company's infrastructure months later. The team deleted the file containing the key three hours after the mistake, but the original commit remained in the public history until October 22. They later rewrote the git history to remove the leaked commits, but this action did not hide the data from attackers. Secret scannersUsing automated tools to probe computers, networks, or code for known security flaws and missing patches routinely parse git history and can find deleted files, meaning the credential stayed visible to the public. The only way to fully fix a leaked credential is to rotate it, because once it is public, it is no longer a secret.

Terms in this story

key
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)
repository
A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
scanners
Using automated tools to probe computers, networks, or code for known security flaws and missing patches. Both defenders and attackers run vulnerability scanning across internet-facing servers to find out which machines are still running outdated software versions. Security+ objective 4.3 lists the term
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.
revocation
Officially canceling a digital certificate before its expiration date because its private key was compromised or misissued. When a website's private key leaks, the owner requests certificate revocation so browsers stop trusting anyone who presents that old certificate.
Pull Request
A proposed set of code changes submitted to a software repository for maintainers to review and merge. In open-source security news, attackers sometimes submit a normal-looking pull request that hides a backdoor or exploits the project's automated test pipeline.
threat actors
A person or group that carries out cyberattacks, whether for money, spying, or disruption. Security researchers use the term threat actor to refer to a criminal gang, state spy unit, or solo hacker behind a series of intrusions. Security+ objective 2.1 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

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 Aikido website. Cite the article, not this page.

Read the full article on Aikido (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.

How a story is connected to the course, and every objective, week and job role

Related