BewAIre: Detecting Malicious Pull Requests at Scale with LLMs
summary
Datadog replaces manual review of nearly 10,000 weekly PRs by routing diffs through an LLM pipeline that reduces human reviews from ~15/day to almost zero, using a stacked model (cheap ChatGPT mini filter then an escalated model with GitHub and dependency tools), token-aware chunking large diffs sent in parallel, an 800-PR test set that yields 99% accuracy in evaluation, observability of token cost/latency, and catches real red‑team and live attacks while still tuning false positives.
AI-written summary · about
chapters (12)
- 0:00Introduction and context
- 2:31Naive PR review approach
- 3:55Hackathon and LLM prototype
- 5:44Building test dataset
- 7:10System architecture and deployment
- 9:40Handling large PRs
- 11:03Reducing false positives
- 12:27Internal adoption and expansion
- 13:09Integration into Datadog products
- 14:33Customer feedback and challenges
- 18:47Future of AI-based security
- 20:35Roadmap and next steps
