Cybersecurity news

Jessica Doner

Back to the list

Private repos still leak secrets to Gheist, a stolen GitHub token campaign

Help Net Security,

A campaign used stolen tokens to plant workflows in private repositories, printing their secrets into logs that attackers then downloaded.

Attacks and breaches

Overview

A campaign called Gheist used stolen GitHub tokensA short-lived digital pass that a server gives a logged-in user or app to access more than 13,500 branches across 850 compromised accounts. The tool planted a workflow in each repositoryA central storage place where a software project's source code, change history, and configuration files are kept that the token could open. This workflow printed the repository's secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys into a log by encodingRewrite data in another form so it can be carried; no key, anyone can reverse it them in base32 to bypass GitHub's masking. The attacker then downloaded the log through the GitHub APIA structured interface that lets one software program request data or actions from another program and deleted the run seconds later. GitHub blocks this attack in public repositories, but the safeguard does not apply to private repositories or GitHub Enterprise ServerA computer or program on a network that stores data and responds to requests from client devices. As a result, productionThe live servers and databases that real customers actually use, as opposed to internal test machines credentialsThe login details, such as a username and password or key, that prove who an account belongs to in private repositories were exposed without any outside server connection.

Terms in this story

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
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.
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.
encoding
Rewrite data in another form so it can be carried; no key, anyone can reverse it. Students often confuse encoding with encryption at first, but systems encode data only so it travels safely through text protocols, not to keep it secret from anyone. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
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
server
A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
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.
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
logs
Timestamped records that servers and apps write whenever someone signs in, changes a setting, or makes a request. During an investigation, responders examine security logs to trace when an attacker first logged in and which internal machines they accessed. Security+ objective 4.4 lists the term
domain
The human-readable name for a website or a centrally managed group of workplace computers. In security stories, domain refers either to a web address that criminals register for phishing or to an organization's internal computer network managed by a central server.
self-hosted
Software that an organization installs and runs on its own servers instead of using a vendor's cloud service. Running a self-hosted password manager, code server, or chat platform gives a company full control over its data, but also means its own staff must install every security patch.
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)

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.

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

Same story at other outlets

Related