These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
hackerbot-claw autonomous agent RCE
February 2026 · Contained
An account calling itself an autonomous AI security agent opened pull requests against seven well-known repositories' unsafe workflows, ran code in at least four of them, stole a write token from awesome-go and a personal access token from Trivy that let it take over the Trivy repository.
- Went after
- Steal CI secrets and tokens
Full summary
Between 21 February and 2 March 2026 the GitHub account hackerbot-claw, which describes itself as an autonomous security research agent running on a Claude model, scanned public repositories for exploitable GitHub Actions workflows and opened pull requests against them. StepSecurity followed it against seven targets with five techniques: a pull_request_target workflow that built the fork's Go code, a script injection, a branch name and a file name put into a shell step, and instructions planted for an AI code reviewer. In avelino/awesome-go a Go init() function sent out the workflow's token, which could push commits and merge pull requests. In aquasecurity/trivy the API Diff Check workflow, on pull_request_target, ran the pull request's code with a personal access token of the aqua-bot account in scope, and the stolen token was used to take the repository over: a commit was pushed as aqua-bot and the repository went offline. That token, or what Aqua's rotation missed, is where the TeamPCP campaign started. The attempt to steer an AI reviewer in ambient-code/platform was caught.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
From 21 February 2026 the hackerbot-claw account, which says it is an autonomous security research agent powered by a Claude model, worked through an index of 9 vulnerability classes and 47 patterns, looking for public workflows that run untrusted input with secrets or a write token, and opened pull requests to trigger them.
What breaks this step
- Audit every use of pull_request_target and remove or restructure risky ones
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Require approval for first-time/external contributor workflow runs on forks
- Disallow self-hosted runners on public repositories
- Limit who and what can trigger workflows with workflow execution protections
- Pass untrusted values through env variables instead of ${{ }} expressions in run steps.
- Make self-hosted runners ephemeral.
- Lint workflows with zizmor or a similar tool in CI.
avelino/awesome-go ran a pull_request_target workflow that checked out the fork's code and ran it. The attacker's Go init() function runs before main(), and after four failed tries the fifth and sixth runs sent the workflow token out. It had contents: write and pull-requests: write, enough to push commits and merge pull requests in a repository with more than 140,000 stars.
What breaks this step
project-akri/akri, a CNCF project, ran code through a direct script injection. In microsoft/ai-discovery-agent a branch name, in DataDog/datadog-iac-scanner a file name and in RustPython a base64-encoded branch name were aimed at shell steps that put them in unquoted. Datadog shipped fixes within nine hours.
In ambient-code/platform the attacker replaced CLAUDE.md with instructions for the AI code review workflow, which ran on pull_request_target with contents: write, checked out the fork and let any user trigger it. Orca reports the attempt was detected and blocked.
What breaks this step
- Decide which AI coding agents and MCP servers may work on the organization's repositories
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Do not restore Actions caches in release and publish workflows
- Branch protection on default/release branches: required reviews of the last push + required status checks
- Give agents a token scoped to the single repository they're working on.
- Don't let an agent read public input and write to private repos in the same session.
- Treat the files an AI reviewer reads, such as CLAUDE.md, as untrusted input from the pull request.
On 28 February at 03:28 UTC pull request #10254 triggered aquasecurity/trivy's API Diff Check workflow, a pull_request_target workflow that ran the fork's code with aqua-bot's personal access token in scope, and the token was taken. A commit was then pushed as aqua-bot, and the repository went offline with its workflow history and pull requests removed. Aqua disclosed the break-in on 1 March and rotated credentials; three weeks later the TeamPCP campaign started from the same account (see the TeamPCP incident).
What breaks this step
- Audit every use of pull_request_target and remove or restructure risky ones
- Set the default GITHUB_TOKEN permission to read-only at the org level
- Require approval for first-time/external contributor workflow runs on forks
- Limit who and what can trigger workflows with workflow execution protections
- Disallow self-hosted runners on public repositories
- Pass untrusted values through env variables instead of ${{ }} expressions in run steps.
- Make self-hosted runners ephemeral.
- Lint workflows with zizmor or a similar tool in CI.
Frameworks
Part of
Contained. First seen February 2026. Mapping by ghtier, not yet reviewed. Threat landscape
Sources
- researchhackerbot-claw: AI-powered bot exploiting GitHub Actions
- researchHackerBot-Claw campaign timeline
Reported by: StepSecurity