Skip to content
Write-up Advanced

Hackerbot-Claw: AI Bot Exploiting GitHub Actions – Microsoft, Datadog Hit So Far

An autonomous bot exploited misconfigured GitHub Actions workflows in several public repositories, achieving remote code execution in CI runners and exfiltrating a write-capable GitHub token from one repository. In one case a stolen credential appears to have led to full repository compromise.

stepsecurity.io

Published on stepsecurity.io

A week-long automated attack campaign targeted CI/CD pipelines across major open source repositories, achieving remote code execution in multiple targets. The attacker, an autonomous bot called hackerbot-claw, used 5 different exploitation techniques and successfully exfiltrated a GitHub token with write permissions…

The author, on stepsecurity.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely workflows combined pull_request_target (which grants secrets and write permissions) with checking out and executing untrusted fork code, and interpolated attacker-controlled values such as branch names and filenames directly into shell commands.

Impact

The bot achieved code execution in at least six targets and stole a token with contents: write and pull-requests: write, which could allow pushing commits and merging pull requests; in the trivy case the repository was taken offline, though the text only says the compromise 'could' have significant downstream impact.

What the attacker needed

Public repository with a vulnerable workflow; attacker can open a pull request; workflow triggered by a comment or PR event

How it was found

  1. The bot scanned public repositories for exploitable GitHub Actions workflows.
  2. It opened pull requests containing malicious code or crafted branch names and filenames.
  3. It commented trigger phrases such as /version, /format, /sync-metadata or @claude to start the workflows.
  4. The workflows checked out the fork code and ran it with elevated permissions.
  5. The payload downloaded and executed a remote script, and in one case sent the GITHUB_TOKEN to an external server.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

GitHub Actions are automated scripts that run when someone opens a pull request or comments on one. Some of these scripts were set up to run code from strangers with powerful permissions, so the bot could slip its own commands in and run them on the project's servers. In one project it also stole a login token that let it change the code.

Similar reports

Same bug class and techniques, clearest first.