Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

harden-runner

> 安全
Open source

Harden-Runner is a CI/CD security agent that works like an EDR for GitHub Actions runners. It monitors network egress, file integrity, and process activity on t

1.2K stars0 likes0 views
WebsiteGitHub

About

Harden-Runner is a CI/CD security agent that works like an EDR for GitHub Actions runners. It monitors network egress, file integrity, and process activity on t

Harden-Runner

Corporate laptops and production servers typically have robust security monitoring in place to reduce risk and meet compliance requirements. However, CI/CD runners, which handle sensitive information like secrets for cloud environments and create production builds, often lack such security measures. This oversight has led to significant supply chain attacks, including the SolarWinds and Codecov breaches.

Traditional security monitoring and EDR solutions are ineffective for CI/CD runners due to their ephemeral nature. These tools also lack the necessary context to correlate events with specific workflow runs in a CI/CD environment.

StepSecurity Harden-Runner addresses this gap by providing security monitoring tailored for CI/CD runners, with support for Linux, Windows, and macOS runners. This approach brings CI/CD runners under the same level of security scrutiny as other critical systems, addressing a significant gap in the software supply chain.

Harden-Runner: Security Incidents Detected

  • Harden-Runner Detected the Compromised axios npm Package Dropping a Remote Access Trojan (backstage/backstage#33693, block/elasticgraph#1103)
  • Harden-Runner Detected the Trivy Compromise with Malicious v0.69.4 Release (k8gb-io/k8gb#2294)
  • Harden-Runner Detected the tj-actions/changed-files compromise (CVE-2025-30066)
  • Harden Runner Detected the Sha1-Hulud Supply Chain Attack in CNCF’s Backstage Repository
  • Harden-Runner Detected the NX Build System compromise
  • Harden-Runner Detected a CI/CD Supply Chain Attack in Google’s Open-Source Project Flank
  • Harden-Runner Detected a CI/CD Supply Chain Attack in Microsoft’s Open-Source Project Azure Karpenter Provider in Real-Time
  • Harden-Runner Detected Anomalous Traffic to api.ipify.org Across Multiple Customers
  • Harden-Runner Detected an Unexpected Microsoft Defender Installation on GitHub-Hosted Ubuntu Runners
  • Harden-Runner Flagged an Anomalous Outbound Call, Leading to a Docker Documentation Update

See It in Action

Harden-Runner secures over 25 million CI/CD workflow runs every week, protecting thousands of pipelines, including those from popular open-source projects by Microsoft, Google, and CISA. See how top projects are using Harden-Runner and explore the insights:
➡️ Who's using Harden-Runner?

Quick Links

  • Getting Started Guide
  • Why Choose Harden-Runner
  • Features and Pricing Tiers
  • StepSecurity Maintained Actions (Free for Public Repos)
  • Case Studies and Trusted Projects
  • Environment Compatibility Matrix
  • How It Works
  • Known Limitations
  • Join the Discussions
  • Official Documentation

Introduction

Learn how Harden-Runner works through the video below, which shows how it detected the tj-actions/changed-files compromise. View the interactive demo here.


Getting Started

This guide walks you through the steps to set up and use Harden-Runner in your CI/CD workflows. For more details, refer to the official documentation.

[!NOTE] The Community tier is free for public repositories on GitHub-hosted runners and includes the core feature set. Advanced features, private repositories, and self-hosted runners (including ARC) require the Enterprise tier. See Features and Pricing Tiers for what is in each tier.

Step 1: Add Harden-Runner to Your Workflow

To integrate Harden-Runner, follow these steps:

  • Open your GitHub Actions workflow file (e.g., .github/workflows/.yml).
  • Add the following code as the first step in each job:
    yaml
    steps:
      - name: Harden Runner
        uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
        with:
          egress-policy: audit

Tip: Automate this step by pasting your workflow into the StepSecurity online tool

Click to view the full Getting Started Guide

Step 2: Access Security Insights

Run your workflow. Once completed:

  • Review the workflow logs and the job markdown summary.

  • Look for a link to security insights and recommendations.

  • Click on the provided link (e.g., example link) to access the Process Monitor View, which displays:

    • Network events: Outbound network calls correlated with each step.
    • File events: File writes tracked during the job.

Why Choose Harden-Runner?

  • Prevent Exfiltration: Prevent the exfiltration of CI/CD secrets and source code.
  • Detect Tampering: Identify source code modifications during builds.
  • Anomaly Detection: Spot unusual dependencies and workflow behaviors.
  • Simplify Permissions: Determine the minimum required GITHUB_TOKEN permissions.

Features and Pricing Tiers

Harden-Runner offers a comprehensive suite of features to enhance the security of your CI/CD workflows, available in two tiers: Community (free) and Enterprise (paid). Two things determine what you get: where your workflows run decides whether the free tier is available at all, and your tier decides which features you get. The feature lists below show what is in each tier.

Where your workflows run What's available
Public repositories on GitHub-hosted runners Community features free; Enterprise features require a paid plan
Private repositories (any runner type) Enterprise (paid) only
Self-hosted runners, including ARC and bare metal (public or private repositories) Enterprise (paid) only

[!IMPORTANT] Self-hosted runners require an Enterprise subscription, even for public repositories. Without a subscription, the Harden-Runner action is a no-op on self-hosted runners: the step succeeds and your workflow passes, but nothing is monitored and no insights are generated. To enable Harden-Runner on your self-hosted runners, start a free trial.

Community (Free)

Available for public repositories running on GitHub-hosted runners:

  • CI/CD-Aware Event Correlation: Each outbound network connection, file operation, and process execution is mapped to the exact step, job, and workflow where it occurs.
  • Automated Baseline Creation: Harden-Runner builds a baseline for each job based on past outbound network connections.
  • Anomaly Detection: Once the baseline is created, any future outbound calls not in the baseline trigger a detection.
  • Block Network Egress Traffic with Domain Allowlist: Optionally use the automatically created baseline to control outbound network traffic by specifying allowed domains, preventing unauthorized data exfiltration.
  • Global Block List: Block known-malicious domains and IP addresses tied to active supply chain attacks, maintained by StepSecurity's 24x7 SOC. No configuration required, new indicators apply automatically without an action version bump, and it is enforced even in egress-policy: audit mode.
  • Detect Modification of Source Code: Monitor and alert on unauthorized changes to your source code during the CI/CD pipeline.

Enterprise (Paid)

Includes all features in the Community tier, plus:

  • Support for Private Repositories: Extend Harden-Runner's security capabilities to your private GitHub repositories.
  • Support for Self-Hosted Runners: Apply security controls and monitoring to self-hosted GitHub Actions runners (VM, bare metal, and ARC), for both public and private repositories.
  • GitHub Checks Integration: Enable GitHub Checks for Harden-Runner. If the baseline remains unchanged, the check passes; if it changes, the check fails, showing new outbound connections.
  • View Outbound GitHub API calls at the Job Level: Monitor HTTPS requests to GitHub APIs
  • Determine Minimum GITHUB_TOKEN Permissions: Monitor outbound HTTPS requests to GitHub APIs to recommend the least-privilege permissions needed for your workflows, enhancing security by reducing unnecessary access.
  • View the Name and Path of Every File Written During the Build Process: Gain visibility into every file written to the build environment, including the ability to correlate file writes with processes, ensuring complete transparency.
  • View Process Names and Arguments: Monitor every process executed during the build process, along with its arguments, and navigate the process tree to detect suspicious activities.
  • Centralized Policy Store: Manage egress policies centrally from the StepSecurity dashboard instead of editing each workflow file. Learn more in the Policy Store documentation.
  • Baselines at Repository, Organization, and Cluster Level: Create and manage baselines beyond the per-job level. Learn more in the Baseline documentation.
  • Suppression Rules: Suppress expected detections to reduce alert noise. Learn more in the Suppression Rules documentation.
  • Alert Notifications and SIEM Integration: Receive alerts via email, Slack, and Microsoft Teams, and integrate detections with your SIEM solution.

For a detailed comparison and more information, please visit our Pricing Page.

Explore the full feature set in the Features Documentation.


StepSecurity Maintained Actions

Many popular third-party GitHub Actions are abandoned or stuck on outdated runtimes. StepSecurity publishes Maintained Actions: drop-in replacements that are actively maintained, security-reviewed, and kept current, including updates to the Node 24 runtime.

  • Free for public repositories, no subscription required. Read the announcement.
  • **~500 actions and gro

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptactionsegress-filteringgithub-actionshardening

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.