GitHub-protected-branch

2 operations, identified by action in the audit log.

actionDescription
protected_branch.policy_overrideA branch protection requirement was overridden by a repository administrator.
protected_branch.rejected_ref_updateA branch update attempt was rejected.

protected_branch.policy_override

#
Category
GitHub-protected-branch

Description

A branch protection requirement was overridden by a repository administrator.

Fields #

NameDescription
actionThe audit-log action string (e.g. repo.create).
actorLogin of the user (or app) that performed the action.
actor_idNumeric ID of the actor.
userLogin of the user the action targeted, when applicable.
orgOrganization in which the action occurred.
repoRepository the action targeted (owner/name), when applicable.
businessEnterprise account, when the org belongs to one.
@timestampTime the event was recorded (epoch ms).
created_atTime the action occurred (epoch ms).
operation_typeOperation class: create, modify, remove, access, transfer, authentication.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
Esql.event_countge101 ruleelastic
github.categoryeqprotected_branch1 ruleelastic

Detection Rules #

View all rules referencing this event →

Elastic #

  • High Number of Protected Branch Force Pushes by User source medium: Detects a high number of force push actions to protected branches by a single user within a short time frame. Adversaries may perform force pushes to overwrite commit history on protected branches, potentially leading to data loss or disruption of development workflows.

protected_branch.rejected_ref_update

#
Category
GitHub-protected-branch

Description

A branch update attempt was rejected.

Fields #

NameDescription
actionThe audit-log action string (e.g. repo.create).
actorLogin of the user (or app) that performed the action.
actor_idNumeric ID of the actor.
userLogin of the user the action targeted, when applicable.
orgOrganization in which the action occurred.
repoRepository the action targeted (owner/name), when applicable.
businessEnterprise account, when the org belongs to one.
@timestampTime the event was recorded (epoch ms).
created_atTime the action occurred (epoch ms).
operation_typeOperation class: create, modify, remove, access, transfer, authentication.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventTypeeqprotected_branch.rejected_ref_update2 ruleselastic
github.categoryeqprotected_branch2 ruleselastic

Detection Rules #

View all rules referencing this event →

Elastic #

  • Several Failed Protected Branch Force Pushes by User source medium: Detects a high number of failed force push attempts to protected branches by a single user within a short time frame. Adversaries may attempt multiple force pushes to overwrite commit history on protected branches, potentially leading to data loss or disruption of development workflows.
  • GitHub Actions Workflow Modification Blocked source medium: Detects when a GitHub Actions workflow attempts to create or modify workflow files in a protected branch but is blocked due to insufficient permissions. This behavior is indicative of a supply chain attack where a malicious package or compromised CI/CD pipeline attempts to inject persistent backdoor workflows into a repository.