DET-128 · human · confidence Medium

Secret Commits and Push Protection Bypass

Track secret scanning alerts and every bypass of push protection, by person.

Code hosts detect secrets on push. The alert itself is useful, but the insider signal is the bypass: someone who sees the warning and pushes anyway. GitHub records secret_scanning_push_protection.bypass with the chosen reason. Counting bypasses and alerts per author shows who is careless and who is doing it on purpose.

Any bypass for a cloud or payment key should prompt immediate rotation and a check of where else the repo is mirrored. Repeat bypasses by the same person after a warning move a case from careless to deliberate.

Data sources
GitHub audit logSecret scanning alerts APIGitLab secret detection
Platforms
SaaS

Logic

github_audit
| where action in ("secret_scanning_push_protection.bypass", "secret_scanning_alert.create")
| summarize Bypasses = countif(action endswith "bypass"), Alerts = countif(action endswith "create"), Types = make_set(secret_type) by actor, bin(timestamp, 30d)
| where Bypasses >= 1 and Types has_any ("aws_access_key_id", "azure_storage_account_key", "google_cloud_private_key_id", "stripe_api_key")

False positives

Test keys and revoked example tokens flagged by scanners.

Catches 3 techniques