---
title: "When an AI agent came knocking: Catching malicious contributions in Datadog’s open source repos"
description: "An AI agent called hackerbot-claw targeted Datadog's public repositories in late February 2026."
url: "https://swe.quest/articles/when-an-ai-agent-came-knocking-catching-malicious-contributions-in-datadog-s-efd5d1e84be0c443"
canonical: "https://www.datadoghq.com/blog/engineering/stopping-hackerbot-claw-with-bewaire/"
source: "Datadog Engineering"
published: "2026-03-09"
difficulty: "medium"
kind: "Incident"
reading_minutes: 16
tags: ["supply-chain-security","ci-cd","threat-detection","ai-agents","open-source"]
---

# When an AI agent came knocking: Catching malicious contributions in Datadog’s open source repos

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2026-03-09, 16 min read, Incident. Original: [https://www.datadoghq.com/blog/engineering/stopping-hackerbot-claw-with-bewaire/](https://www.datadoghq.com/blog/engineering/stopping-hackerbot-claw-with-bewaire/)

## Summary

An AI agent called hackerbot-claw targeted Datadog's public repositories in late February 2026. It opened PRs in datadog-iac-scanner that hid a base64-encoded curl|bash payload in filenames, exploiting a GitHub Actions workflow that interpolated changed-file names into a shell script. It also filed issues in datadog-agent carrying prompt injection payloads aimed at a claude-code-action triage workflow. Datadog's LLM-based BewAIre reviewer flagged the PRs within seconds, and org-wide rulesets, minimal token permissions and disabled Actions PR approval meant the attacker could only push a harmless branch, while the prompt injections failed. The incident shows why to avoid interpolating untrusted input in workflows and to enforce least-privilege CI controls.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Threat detection](https://swe.quest/tags/threat-detection.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- GitHub Actions workflows ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- shell scripting
- prompt injection basics ([easy posts on Application security](https://swe.quest/tags/appsec.md?difficulty=easy))

## Keywords

hackerbot-claw, BewAIre, GitHub Actions, claude-code-action, datadog-iac-scanner, Cloud SIEM, octo-sts

## Related posts

- [MCP Horror Stories: The GitHub Prompt Injection Data Heist](https://swe.quest/articles/mcp-horror-stories-the-github-prompt-injection-data-heist-118a1d699702a7aa.md): Docker · 2025-08-14 · Medium · 15 min read · AI agents, Application security, Identity & auth, LLMs
  A prompt injection planted in a public GitHub issue can hijack an AI agent using the official GitHub MCP server.
- [Coding Agent Horror Stories: The 29 Million Secret Problem](https://swe.quest/articles/coding-agent-horror-stories-the-29-million-secret-problem-7f5056c95d2769e4.md): Docker · 2026-07-28 · Medium · 12 min read · Supply chain security, AI for coding, Sandboxing & isolation, JavaScript, AI agents
  The s1ngularity supply-chain attack on the Nx npm package used a post-install script to find installed AI coding CLIs (Claude Code, Gemini CLI, Amazon Q) and invoke them with permission-bypass flags like --dangerously-skip-permissions, prompting the agent to inventory secrets across the home directory before exfiltrating them to public repos under the victim's GitHub account.
- [Detecting malicious pull requests at scale with LLMs](https://swe.quest/articles/detecting-malicious-pull-requests-at-scale-with-llms-18b7d45442154d44.md): Datadog Engineering · 2025-10-21 · Medium · 12 min read · Supply chain security, Threat detection, LLMs, Code review, Evaluation
  Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage.
- [Security incident disclosure — July 2026](https://swe.quest/articles/security-incident-disclosure-july-2026-d0a05b49d6106131.md): Hugging Face · 2026-07-16 · Easy · 6 min read · Incidents & postmortems, AI agents, Threat detection, LLMs, Security
  Hugging Face disclosed an intrusion driven end to end by an autonomous AI agent swarm.
- [Defending Your Software Supply Chain: What Every Engineering Team Should Do Now](https://swe.quest/articles/defending-your-software-supply-chain-what-every-engineering-team-should-do-now-434c4d75b0885a00.md): Docker · 2026-04-02 · Medium · 9 min read · Supply chain security, CI/CD, Containers, AI agents
  Recent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
