ghtier

These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.

← All incidents

Mercedes-Benz source code exposure

January 2024 · Fixed

A Mercedes-Benz employee pushed a working token for the company's internal GitHub Enterprise Server to a public GitHub repository, where it sat for almost four months and gave read access to internal source code and the credentials stored in it.

Access held
T3Contents: ReadCloud, database and API keys
Full summary

In late September 2023 a Mercedes-Benz employee published code to their own public repository on github.com, and the code contained a token for Mercedes' internal GitHub Enterprise Server. Nothing caught it. RedHunt Labs found it in a routine scan on 11 January 2024 and found it still worked. RedHunt says it gave unrestricted and unmonitored access to all the source code on the server, and that the repositories held database connection strings, cloud access keys, SSO passwords, API keys, blueprints and design documents; TechCrunch saw evidence of Azure and AWS keys and a Postgres database. Mercedes says the token reached a certain number of repositories, not all of them. Once TechCrunch told Mercedes on 22 January, it revoked the token and took the repository down within two days. Mercedes said customer data was not affected as far as its analysis showed, but would not say whether anyone else used the token in those four months or whether it had the logs to tell.

How it unfolded

Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.

Whole path

Leaked tokenway inContents: ReadAn employee's GHES tokenClone private repos with astolen tokentechniqueCloud, database and APIkeysMercedes' internal repos

The whole attack, one row per step. Pick a step on the left, or click a box in its row.

Frameworks

Fixed. First seen January 2024. Mapping by ghtier, not yet reviewed. Threat landscape

Sources