
Summary
This rule flags instances where a GitHub App or bot submits an approving review on a pull request via GitHub Webhook events (pull_request_review) and the review state is approved. Bot approvals can satisfy required reviews and allow changes to reach a protected branch without human validation, potentially indicating misuse of automation tokens or misconfigured CI/CD flows. The rule maps to MITRE ATT&CK TA0001:T1195.002 (Supply Chain/Trusted Relationships - Bot or service account abuse) and is marked as High severity due to the risk of code being merged without proper human oversight. Detection logic focuses on events where the review state is "approved" and the actor is a bot (user.type == Bot) with a bot-like login (e.g., containing "[bot]"), distinguishing bot approvals from human approvals or comments. The rule includes test payloads demonstrating: (1) a bot-approved review (positive), (2) a bot that merely comments (negative), (3) a human reviewer approval (negative), and (4) a bot review dismissal (negative). Remediation guidance is included in the rule’s runbook and emphasizes validating the workflow origin, rotating credentials or keys for the bot/app if the approval came from an unapproved automation, disabling the faulty workflow, reverting the changes, and notifying Security. This reduces the risk of automated tokens being used to bypass code review and reach protected branches.
Categories
- Web
Data Sources
- Application Log
- Process
ATT&CK Techniques
- T1195.002
Created: 2026-11-30