惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Vercel News
Vercel News
F
Fortinet All Blogs
月光博客
月光博客
G
Google Developers Blog
博客园 - Franky
GbyAI
GbyAI
The Cloudflare Blog
I
InfoQ
雷峰网
雷峰网
WordPress大学
WordPress大学
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
小众软件
小众软件
腾讯CDC
B
Blog
量子位
V
V2EX
S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News

Step Security Blog

Announcing Dependabot Configuration Enhancements: Cooldown and Group Support - StepSecurity Securing Vibe Coding and AI Coding Agents: An End-to-End Approach with StepSecurity - StepSecurity Introducing StepSecurity Dev Machine Guard: Protecting Developer Machines from Supply Chain Attacks - StepSecurity Top 2024 Predictions for CI/CD Security - StepSecurity Dev Machine Guard Is Now Open Source: See What's Really Running on Your Developer Machine - StepSecurity Datadog's DevSecOps 2026 Report Validates What We've Been Building - StepSecurity hackerbot-claw: An AI-Powered Bot Actively Exploiting GitHub Actions - Microsoft, DataDog, and CNCF Projects Hit So Far - StepSecurity Cline Supply Chain Attack Detected: cline@2.3.0 Silently Installs OpenClaw - StepSecurity StepSecurity’s Unified Protection Across the SDLC Infrastructure Threat Framework (SITF) - StepSecurity @velora-dex/sdk Compromised on npm: Malicious Version Drops macOS Backdoor via launchctl Persistence - StepSecurity axios Compromised on npm - Malicious Versions Drop Remote Access Trojan - StepSecurity Behind the Scenes: How StepSecurity Detected and Helped Remediate the Largest npm Supply Chain Attack - StepSecurity 10 Layers Deep: How StepSecurity Stops TeamPCP's Trivy Supply Chain Attack on GitHub Actions - StepSecurity Malicious IoliteLabs VSCode Extensions Target Solidity Developers on Windows, macOS, and Linux with Backdoor - StepSecurity TeamPCP Plants WAV Steganography Credential Stealer in telnyx PyPI Package - StepSecurity litellm: Credential Stealer Hidden in PyPI Wheel - StepSecurity Checkmarx KICS GitHub Action Compromised: Malware Injected in All Git Tags - StepSecurity CanisterWorm: How a Self-Propagating npm Worm Is Spreading Backdoors Across the Ecosystem - StepSecurity Trivy Compromised a Second Time - Malicious v0.69.4 Release, aquasecurity/setup-trivy, aquasecurity/trivy-action GitHub Actions Compromised - StepSecurity bittensor-wallet 4.0.2 Compromised on PyPI - Backdoor Exfiltrates Private Keys - StepSecurity Malicious npm Releases Found in Popular React Native Packages - 130K+ Monthly Downloads Compromised - StepSecurity Malicious Polymarket Bot Hides in Hijacked dev-protocol GitHub Org and Steals Wallet Keys - StepSecurity ForceMemo: Hundreds of GitHub Python Repos Compromised via Account Takeover and Force-Push - StepSecurity xygeni-action Compromised: C2 Reverse Shell Backdoor Injected via Tag Poisoning - StepSecurity kubernetes-el Compromised: How a Pwn Request Exploited a Popular Emacs Package - StepSecurity How StepSecurity Caught a Release Storm in Microsoft’s @types Packages - StepSecurity Harden Runner Now Supports Windows and macOS GitHub Actions Runners - StepSecurity 10,000 Open-Source Projects Now Secured by Harden-Runner Community-Tier: A Milestone Three Years in the Making - StepSecurity 20+ Popular NPM Packages Compromised (Chalk, Debug, Strip-ANSI, Color-Convert, Wrap-ANSI...) - StepSecurity 2024 in Review: The Evolution of CI/CD Security & What's Next - StepSecurity
Evolving Harden-Runner’s disable-sudo Policy for Improved...
2025-07-08 · via Step Security Blog

Summary

Harden-Runner secures CI/CD workflows by controlling network access and monitoring activities on GitHub-hosted and self-hosted runners. Harden-Runner community tier has been adopted by more than 6,000 open-source projects, including projects from Microsoft, CISA, Google etc. In addition, several organizations use the Harden-Runner enterprise tier.  

Harden-Runner has detected the following CI/CD supply chain attacks:  

With the growing adoption of Harden-Runner, we’re grateful to have a strong and engaged community contributing to its continued security and improvement. We’d like to extend our sincere thanks to @loresuso and @darryk10 for responsibly disclosing the issue covered in this post and for their collaboration in helping us investigate and mitigate the vulnerability.

We have addressed a security issue in Harden-Runner where the disable-sudo policy could be bypassed by leveraging Docker access. The issue has been assigned CVE-2025-32955. This blog post outlines the details of the issue, the mitigation through an enhanced policy, newly added detections, and a preview of the upcoming lockdown mode for defense-in-depth.  

Background

Harden-Runner includes a policy option disable-sudo to prevent GitHub Actions workflows from escalating privileges by disabling sudo access for the runner user. This is implemented by removing the user from the sudoers file. The GitHub Actions workflow snippet below shows how this feature is used.

    steps:
      - uses: step-security/harden-runner@v2
        with:
         disable-sudo: true
         egress-policy: audit

However, the researchers identified a bypass: if the runner user has access to the dockerd or containerd socket, they can start a privileged container, mount the host filesystem, and regain root access — effectively restoring the sudo capability or achieving privilege escalation in other ways.

CVE Details

CVE ID

CVE-2025-32955

Affected Component

Harden-Runner

Affected Configuration

• Runners configured with disable-sudo: true

• Running on GitHub-hosted runners or ephemeral VM-based self-hosted runners

• Runner user has Docker access

Not Affected

This issue does not apply to Kubernetes-based Actions Runner Controller (ARC) Harden-Runner.

Severity

6.0 Medium

Patched version

v2.12.0  

Impact

For an attacker to bypass this control, they would first need the ability to run their malicious code (e.g., by a supply chain attack similar to tj-actions or exploiting a Pwn Request vulnerability)) on the runner.

An attacker with the ability to run a GitHub Actions job on a runner configured with disable-sudo: true could still escalate privileges to root using Docker, defeating the intended security control.  

Mitigation: Move to disable-sudo-and-containers

To fully mitigate this class of bypass, we’ve introduced and recommend the disable-sudo-and-containers policy. This enhanced policy includes:

• Removal of access to Docker and containerd sockets

• Uninstallation of Docker

• Retaining the restriction on sudo access

By eliminating Docker access entirely, this policy removes the attack vector used to bypass the original disable-sudo control.

We recommend you use the disable-sudo-and-containers option in favor of disable-sudo if your GitHub Actions job does not use containers.  The GitHub Actions workflow snippet below shows how to use this feature.

    steps:
      - uses: step-security/harden-runner@v2
        with:
         disable-sudo-and-containers: true
         egress-policy: audit

In response to this issue, Harden-Runner now includes runtime detections that identify attempts to evade the disable-sudo restriction.

Coming Soon: Lockdown Mode

We are developing a new lockdown mode feature as part of our ongoing defense-in-depth strategy.

If Harden-Runner detects behavior indicative of compromise—such as attempts to restore sudo, or modify sensitive files—it will:

• Enter lockdown mode

• Block further job execution to minimize impact

This feature will provide an additional safety net, ensuring that even successful evasion attempts are contained before they can cause broader damage.

Conclusion

This issue highlights the evolving nature of CI/CD security threats. We’re grateful to the security researchers who responsibly disclosed this bypass.

If your workflows currently rely on disable-sudo, we recommend upgrading to disable-sudo-and-containers if your GitHub Actions workflow job does not use docker.

For questions, please reach out to support@stepsecurity.io