Known attacks
Published attacks on CI/CD pipelines that depended on something a .gitlab-ci.yml can carry, and the glsec 1.29.0 rules that report that configuration. glsec detects the configuration shape an attack used: a finding means the pipeline has what the attack needed, not that glsec protects against the CVE or the malicious package itself.
Bugs in GitLab itself are left out. They are fixed by upgrading GitLab, and a linter that reads the pipeline file can't see them.
Detected
Attacks on GitLab CI pipelines whose configuration glsec reports, fully or in part.
-
Trojan Source: bidirectional controls make text read differently to a person than to a parser.
-
Malicious Nx packages collected credentials and started local AI agents with their approvals disabled.
Not seen: needs run-time state that a file scan can't see. glsec reports an agent run with approvals disabled in a pipeline, not the malicious package.
-
A malicious Trivy 0.69.4 release reached jobs that pull a moving image tag or install it unpinned. Also known as GHSA-69fq-xp46-6x23.
Not seen: deliberately not reported. An unpinned install (apt-get install trivy, the vector in the LiteLLM pipeline compromise) is reported by default by GL022; a pinned version image tag such as 0.69.4 only with require_image_digest: true (GL001).
Not detected
Attacks that a pipeline file could show, and why glsec doesn't report them.
-
LiteLLM 1.82.7 and 1.82.8 shipped credential-harvesting malware that runs on import.
Not seen: needs run-time state that a file scan can't see. glsec scans pipeline config and scripts, not package contents, and the compromised version is pinned, so the install line looks ordinary. The pipeline vector that led to this compromise, an unpinned Trivy install, is reported by GL022 (see CVE-2026-33634).
Campaigns
Named campaigns without a single id, step by step: which steps a pipeline file shows, and which happen where no file scan can look.
-
Codecov Bash Uploader
Codecov
partly detectedAn altered uploader script, piped into a shell by CI jobs, sent their environment to the attackers.
- A job downloads a script and pipes it into a shell. Reported by GL011.
- The altered script sends the job's environment out. Not seen: needs run-time state that a file scan can't see.
glsec reports the download piped into a shell, not what the script does.
-
GhostAction
GitHub Actions
partly detectedHijacked accounts added a job that sent the pipeline's CI secrets to an attacker-controlled host.
- A hijacked developer account adds a job to the pipeline. Not seen: needs run-time state that a file scan can't see.
- The job sends the pipeline's CI secrets to an attacker-controlled host. Reported by GL097.
glsec reports the planted exfiltration, a secret sent to an untrusted destination, not the account takeover that commits it.
-
Shai-Hulud
npm
partly detectedA worm spread through install scripts that stole npm tokens and published infected versions.
- A job that publishes also runs dependency install scripts. Reported by GL090.
- A malicious install script steals the token and publishes. Not seen: needs run-time state that a file scan can't see.
glsec reports install scripts in a job that publishes, not the malicious dependency.
-
wfx-loot
GitHub Actions
partly detectedHijacked accounts planted a job that sent the pipeline's CI secrets out, and an install hook that runs on publish.
- A hijacked developer account adds a job to the pipeline. Not seen: needs run-time state that a file scan can't see.
- The job sends the pipeline's CI secrets to an attacker-controlled host. Reported by GL097.
- A publishing job runs a planted dependency install hook. Reported by GL090.
glsec reports the planted exfiltration and the install hook in a publishing job, not the account takeover that commits them.
GitHub Actions analogues
These attacks hit GitHub Actions workflows, which glsec doesn't scan. Each entry is the same attack class in GitLab CI: the rules report the GitLab configuration with the same shape, not the CVE.
-
A crafted branch name ran as code in a workflow step. Fixed in 7.0.7. Also known as GHSA-8v8w-v8xg-79rf.
-
Moved version tags pointed every workflow that used the action at malicious code. Fixed in 46.0.1. Also known as GHSA-mrrh-fwg8-r2c3.
Not seen: visible in the pipeline file, not reported yet. An include on a branch is reported, an include on a tag is not, and moving a tag was the attack. Tracking issue.
-
A moved version tag pointed workflows that used the action at malicious code. Also known as GHSA-qmg3-hpqr-gqvc.
Not seen: visible in the pipeline file, not reported yet. An include on a branch is reported, an include on a tag is not, and moving a tag was the attack. Tracking issue.
-
Fork updates could run code with the workflow's credentials in the agent action. Fixed in 1.8.0. Also known as GHSA-mv6f-g9w3-f7mc.
-
A privileged review workflow checked out and ran untrusted pull request code while retaining credentials. Also known as GHSA-6w7q-9vx7-v552.
Not seen: needs run-time state that a file scan can't see. Protected variable and fork pipeline settings determine whether a merge request job receives secrets.
-
A crafted branch name ran as code in a workflow step. Fixed in 0.0.3.
Built from docs/advisories.yml of glsec 1.29.0. Each detected entry has a fixture in glsec's tests that must produce the rules listed here.