ghtier
← Runner hardening

Harden-Runner

Runner agent from StepSecurity that records and can block outbound network calls, file tampering and processes per job.

github.com/step-security/harden-runner ↗
Stars
★ 1,293
License
Apache-2.0
Language
TypeScript
Last push
27 Oct 2026
OpenSSF Scorecard
7.8 / 10
ghtier ratingRated 4 of 5, Recommended4/5 · Recommended

The established runtime monitor for hosted runners and the tool that caught tj-actions, but the insights live in StepSecurity's service.

Note: this page is AI generated. Read the tool's own repository and documentation, linked at the bottom, before you rely on it.

How it works

You add Harden-Runner as the first step of a job. It installs an agent on the runner that watches DNS lookups, outbound connections, processes and writes to the checked-out source for the rest of the job.

With egress-policy: audit it only records. The recorded endpoints become a baseline you turn into an allowed-endpoints list, and with egress-policy: block anything else is refused. Each run gets an insights page in StepSecurity's app that shows which step called what.

What it catches

  • Exfiltration to unexpected domains or IPs
  • A compromised action or dependency reaching out at runtime
  • Source files modified during the build
  • Unexpected processes started by a step

Run it

# Runs only inside GitHub Actions, as the first step of a job:
- uses: step-security/harden-runner@<sha> # pin to a release SHA
  with:
    egress-policy: audit

What leaves your machine

Network, process and file events from the job are sent to StepSecurity's API to build the insights page.

Limits

  • Advanced features and private-repository use beyond the free tier need a StepSecurity plan.
  • Block mode needs a maintained allow-list per job, which takes effort across many repositories.
  • It protects the job it runs in, not other jobs on the same self-hosted runner.

Related tools

Related incidents

GitHub stats as of 30 Oct 2026. How ratings work.