Subscribe to the Non-Human & AI Identity Journal

Notifications
Clear all

GitHub Actions supply chain attacks: what IAM teams missed


(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 5324
Topic starter  

TL;DR: GitHub Actions attacks such as tj-actions, command injection in runner commands, and self-hosted runner abuse show how mutable dependencies, overprivileged tokens, and untrusted input can turn CI/CD into a secret-exposure path, according to Orca Security. The governance failure is not automation itself, but treating pipeline identities as if they were stable, reviewable, and low-risk.

NHIMG editorial — based on content published by Orca Security: GitHub Actions supply chain attacks and hardening techniques

By the numbers:

Questions worth separating out

Q: How should teams secure GitHub Actions against supply chain compromise?

A: Teams should pin reusable actions to immutable commit SHAs, restrict token scope, and review every dependency that can execute inside a workflow.

Q: Why do GitHub Actions workflows increase the risk of secret exposure?

A: Because workflows often run with access to repository tokens, cloud credentials, and runner state, a compromise can reveal more than code.

Q: What breaks when self-hosted runners are reused across jobs?

A: Reused runners can preserve tokens, local files, and hidden state between executions, which gives an attacker a place to persist.

Practitioner guidance

  • Pin every reusable action to an immutable commit SHA Replace version tags and floating references with commit-level pins in all GitHub Actions workflows.
  • Set repository tokens to read-only by default Grant write permission only to jobs that truly need it, and scope secrets to the smallest environment possible.
  • Treat all repository input as untrusted data Handle pull request titles, issue text, and branch names as attacker-controlled content.

What's in the full article

Orca Security's full blog post covers the operational detail this post intentionally leaves for the source:

  • A step-by-step breakdown of the tj-actions compromise path across injection, dependency tampering, and secrets exposure.
  • Concrete hardening examples for GitHub Actions workflows, including pinning patterns, runner isolation, and permission settings.
  • Specific tool recommendations for scanning and policy enforcement in CI/CD environments.
  • Practical examples of how malicious workflow output can be turned into command execution.

👉 Read Orca Security's analysis of GitHub Actions supply chain attacks and hardening →

GitHub Actions supply chain attacks: what IAM teams missed?

Explore further

View Full Forum →  |  NHI Foundation Course →



   
Quote
Share: