Datadog

Scaling malicious code detection from pull requests to the software supply chain | Datadog

Jun 2, 2026Julien Doutre, Adrien Peronnet, D Niu, Christoph Hamsen, Callan Lamb, Kassen Qian, Tesnim Hamdouni
Scaling malicious code detection from pull requests to the software supply chain | Datadog
SummaryAI, from the source post

This post details the expansion of Datadog's BewAIre system from detecting malicious code in pull requests to scanning entire dependency packages and upstream package registries. The core technical contribution is the implementation of a two-stage evaluation pipeline: a fast, inexpensive filter phase using a previous-generation or high-speed LLM, followed by a more thorough agentic investigation phase for flagged changes. The investigation phase utilizes tools to gather additional context, such as GitHub API calls for commit history, contributor analysis, and dependency validation against external resources. The post highlights engineering trade-offs in scaling malicious code detection across ecosystems while maintaining high accuracy and operational efficiency, including a preprocessing pipeline for domain typosquatting checks.

More from the Malicious Code Detection trail