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
- Latest release
- v2.22.3 · 27 Oct 2026
- Last push
- 27 Oct 2026
- OpenSSF Scorecard
- 7.8 / 10
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: auditWhat 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.
Links
Related tools
Related incidents
GitHub stats as of 30 Oct 2026. How ratings work.