Reviewing Malicious PRs at Scale with AI
summary
Datadog builds BewAIre, an LLM-powered PR review pipeline that reduces manual security triage from about 15 PRs/day to roughly one, processes around 78,000 events per week in pilot, and hits 99% accuracy on an 800-PR test corpus. Architecture: GitHub webhook → Kafka → consumer + evaluation API, two-stage LLM stack (fast cheap filter then expensive deep evaluator), tokenized chunking and parallelization for huge diffs. Limits: context-window bypasses, false-positive tradeoffs and cost tuning; integration into Code Security and Bits AI.
AI-written summary · about
chapters (10)
- 0:00Introduction and context
- 3:35Rising PR threats and risks
- 7:11Hackathon idea and AI solution
- 10:42Building test harness and accuracy
- 13:50Real-world deployment and results
- 15:38Handling large PRs and costs
- 18:29Expanding to AI agents and customers
- 21:40Product integration and feedback
- 24:47Future of AI in security
- 26:13Summary and next steps
