DET-193 · agent · confidence Medium

Forced Pushes by Bot Identities

Alert on any forced push or history rewrite by an agent or bot account.

Agents seldom need to rewrite shared history. Filtering forced push events to bot and agent identities, and checking agent transcripts for amend, rebase and filter commands, catches agents tidying away evidence.

Transcripts often show the reason, such as removing a secret after a scan warning. That tells you the secret was exposed and needs rotation even though the branch looks clean. Block forced pushes by bot accounts at the ruleset level where you can, and alert on any that still happen.

Data sources
Push webhooksGitHub audit logAgent session transcripts
Platforms
SaaSAI Platform

Logic

push_events
| where forced == true and (pusher endswith "[bot]" or pusher in (agent_accounts))
| union (agent_transcripts | where command matches regex @"git (commit --amend|rebase|filter-(repo|branch)|push (-f|--force))")

False positives

Agents allowed to rebase their own feature branches before review.

Catches 1 technique