Cybersecurity news

Jessica Doner

Back to the list

GitHub App keys can still enable takeovers long after they are forgotten

CSO Online,

Researchers found that forgotten private keys for GitHub Apps can remain valid for years, allowing attackers to take over accounts.

Attacks and breaches

Overview

GitGuardian discovered 474 valid GitHub App private keysThe key only its owner holds among 4802 publicly exposed credentialsThe login details, such as a username and password or key, that prove who an account belongs to collected since 2019. These keysThe secret value that locks or opens a message allow applications to authenticate themselves and can remain active for years unless manually revoked. If leaked, the keys can give attackers administrative control over an organization's GitHub account. GitGuardian found that 72% of the compromised Apps could read private repositoryA central storage place where a software project's source code, change history, and configuration files are kept content, and 207 could write to it. One exposed key belonged to an application used to manage access for GitHub Actions workflows, which was accidentally committed to a repository in January 2024. This exposure potentially affected 300 organizations, including Civica, Sierra Nevada Corp, BuildBuddy, Crusher.dev, and a private application associated with the US Centers for Disease Control and Prevention.

Terms in this story

private keys
The key only its owner holds. When attackers steal a company's private key in a breach, they can sign malware so computers trust it or impersonate the company's website to intercept customer traffic. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); Security+ objective 1.4 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)
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
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.
permissions
The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
account takeover
When an attacker steals login access to a real user's account and locks the owner out. After an account takeover through phishing or credential stuffing, criminals change the victim's recovery email or phone number and use the account for fraud or further attacks. Security+ objective 2.4 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
malicious code
Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
production environments
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.
CI/CD
The automated pipeline that tests, builds, and deploys software whenever developers push new code. Attackers love to compromise a company's CI/CD pipeline because that build server holds cloud keys and can inject malicious code directly into official software releases. Security+ objective 4.7 lists the term
configurations
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.
arbitrary code
A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.

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

Read the full article on CSO Online (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

Same story at other outlets

Related