ghtier
← Offensive tools and labs

Gato-X

Attack tool for GitHub Actions that finds Pwn Requests, injection and self-hosted runner takeovers across an organization.

github.com/AdnaneKhan/gato-x ↗
Stars
★ 594
License
Apache-2.0
Language
Python
Latest release
v1.4.0 · 25 Apr 2026
Last push
2 Oct 2026
OpenSSF Scorecard
Not in the weekly scan
ghtier ratingRated 4 of 5, Recommended4/5 · Recommended

Finds exploitable workflows across repositories and self-hosted runners at scale; tuned to avoid misses, so expect false positives.

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

Gato-X uses a GitHub token to read an organization's or a list of repositories' workflows, including reusable workflows and actions in other repositories, and follows how untrusted input reaches a run: step or a privileged job. It models if: conditions and permission checks to decide whether an outsider can actually trigger the path.

It reads workflow run logs to find self-hosted runners and which repositories use them. The search mode finds candidate repositories with GitHub code search.

Attack modes go further: they can push a workflow to dump secrets, or take over a self-hosted runner with the Runner-on-Runner technique. Only run those with permission.

What it catches

  • pull_request_target and issue_comment workflows that run untrusted code
  • Expression injection reachable from an outsider
  • TOCTOU gaps between an approval and the code that runs
  • Self-hosted runners that public repositories can reach
  • Vulnerable paths through reusable workflows in other repositories

Run it

pipx install gato-x
export GH_TOKEN=...
gato-x enumerate --target my-org
gato-x enumerate --repository my-org/my-repo

What leaves your machine

Calls the GitHub API and downloads workflow run logs with your token. Attack modes push branches and workflows to the target.

Limits

  • Only run it against organizations you are allowed to test. Enumeration reads; attack modes change the target.
  • Large organizations use a lot of API rate limit.
  • Built for operators, so findings need a person to confirm them.

Related tools

Related incidents

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