eltharon.A journal of access, evidence & recoveryBack to Eltharon ↗
Independent reading. Informed decisions.Journal content updated

Incident study / Work & dependencies

Codecov2021

An altered upload script could send build-job data outside

A compromised uploader turned CI execution into a route for exposing environment variables. This case shows why software provenance and job permissions matter.

Article updated Sources reviewed Incident study
The case at a glance

A reading guide to the account below. These stages do not establish every step of an attack.

  1. 01

    Exposed storage key

  2. 02

    Altered uploader

  3. 03

    Build-data exposure

What happened

Source account

Codecov said a customer spotted a checksum mismatch on April 1, 2021. Its disclosures say unauthorized uploader changes began January 31 and could affect the Bash Uploader and related integrations used in CI.Source: Codecov: Bash Uploader Security Update · Codecov: Post-Mortem / Root Cause Analysis (April 2021)

What enabled it

Source account

Codecov’s post-mortem says an HMAC key for a Google Cloud Storage service account was exposed in an intermediate Docker-image layer. The attacker used it to alter the hosted uploader. Codecov also said its existing checksum process was not documented clearly enough for users.Source: Codecov: Post-Mortem / Root Cause Analysis (April 2021)

What harm followed

Source account

Codecov said the script could send Git remote URLs and environment variables from the CI job to an outside server. Whether those variables held valid secrets depended on each pipeline’s configuration.Source: Codecov: Bash Uploader Security Update

What remains unknown

Limits of the evidence

The public sources do not give a total of credentials later used against customer systems. A variable’s exposure does not prove its value was sensitive or abused.Source: Codecov: Post-Mortem / Root Cause Analysis (April 2021)

Practical lessons

Our interpretation

Pin and verify build tools instead of downloading executable scripts at job time. Keep CI credentials scoped, short-lived and unavailable to steps that do not need them. If a tool may have run in a secret-bearing environment, review logs and rotate credentials that could reach important systems. Verification reduces risk when the expected signature or hash has an independent source.Source: Codecov: Bash Uploader Security Update

Why this matters to people

Our interpretation

A coverage uploader sounds limited, yet it executes inside a build job that may hold repository or deployment access. Solo developers can expose personal tokens; teams can expose release credentials. This incident concerned the distribution path for a specific uploader and users who ran it in the affected period, not every Codecov customer. For a small project, one CI job can inherit more access than its report-upload task needs; separating those jobs limits accidental exposure too.Source: Codecov: Post-Mortem / Root Cause Analysis (April 2021)

Read the evidence

Primary references. Source dates and our review date have different meanings. These links open the publishers’ material.

  1. Bash Uploader Security UpdateCodecov · 2021-04-15 (updated 2021-04-29) · reviewed 7 October 2026
  2. Post-Mortem / Root Cause Analysis (April 2021)Codecov · 2021 (post-mortem; page undated) · reviewed 7 October 2026

See how we distinguish source accounts, uncertainty and interpretation. Read our method.