heroui logo

GitHub Branch Protection Policy Override by Bot

Panther Rules

View Source
Summary
This rule detects when a GitHub App or bot bypasses a protected branch policy on a repository/branch where automated writes are not expected. It focuses on GitHub Audit log events (GitHub.Audit) for actions labeled protected_branch.policy_override, especially when the actor is a bot and the access token is a GitHub App server-to-server token. The intent is to identify unauthorized automation or token exposure that could enable code writes or approvals outside approved workflows, which is a high-severity indication of potential compromise or supply chain risk. The rule maps to MITRE ATT&CK TA0001:T1195 (Initial Access via Supply Chain/Automation). It includes multiple test scenarios illustrating expected vs. unexpected overrides, helping distinguish legitimate automation from misuse.
Categories
  • Web
  • Cloud
  • Application
Data Sources
  • Application Log
ATT&CK Techniques
  • T1195
Created: 2026-11-30