Protected Branch

actionDescriptionSampleRule
protected_branch.authorized_users_teamsThe users, teams, or integrations allowed to bypass a branch protection were changed.YY
protected_branch.branch_allowancesA protected branch allowance was given to a specific user, team or integration.YY
protected_branch.createBranch protection was enabled on a branch.YY
protected_branch.destroyBranch protection was disabled on a branch.YY
protected_branch.dismiss_stale_reviewsEnforcement of dismissing stale pull requests was updated on a branch.YY
protected_branch.dismissal_restricted_users_teamsEnforcement of restricting users and/or teams who can dismiss reviews was updated on a branch.NY
protected_branch.policy_overrideA branch protection requirement was overridden by a repository administrator.YY
protected_branch.rejected_ref_updateA branch update attempt was rejected.YY
protected_branch.update_admin_enforcedBranch protection was enforced for repository administrators.YY
protected_branch.update_allow_deletions_enforcement_levelBranch deletion was enabled or disabled for a protected branch.YY
protected_branch.update_allow_force_pushes_enforcement_levelForce pushes were enabled or disabled for a branch.YY
protected_branch.update_ignore_approvals_from_contributorsIgnoring of approvals from contributors to a pull request was enabled or disabled for a branch.NY
protected_branch.update_linear_history_requirement_enforcement_levelRequired linear commit history was enabled or disabled for a branch.YY
protected_branch.update_lock_allows_fetch_and_mergeFork syncing was enabled or disabled for a read-only branchYY
protected_branch.update_lock_branch_enforcement_levelThe enforcement of a branch lock was updated.YY
protected_branch.update_merge_queue_enforcement_levelEnforcement of the merge queue was modified for a branch.YY
protected_branch.update_nameA branch name pattern was updated for a branch.NY
protected_branch.update_pull_request_reviews_enforcement_levelEnforcement of required pull request reviews was updated for a branch. Can be 0 (deactivated), 1 (non-admins), or 2 (everyone).YY
protected_branch.update_require_code_owner_reviewEnforcement of required code owner review was updated for a branch.YY
protected_branch.update_require_last_push_approvalSomeone other than the person who pushed the last code-modifying commit to the branch must approve pull requests for the branch.YY
protected_branch.update_required_approving_review_countEnforcement of the required number of approvals before merging was updated on a branch.YY
protected_branch.update_required_status_checks_enforcement_levelEnforcement of required status checks was updated for a branch.YY
protected_branch.update_signature_requirement_enforcement_levelEnforcement of required commit signing was updated for a branch.YY
protected_branch.update_strict_required_status_checks_policyEnforcement of required status checks was updated for a branch.YY

protected_branch.authorized_users_teams

#
Category
protected-branch

Description

The users, teams, or integrations allowed to bypass a branch protection were changed.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000008,
  "repo_id": 9000112,
  "actor_id": 9000113,
  "created_at": 1781288577866.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "org": "example-org",
  "name": "master",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.authorized_users_teams",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000178,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ip-redacted Safari/537.36",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Common Indicators #

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

FieldKindValueRulesVendors
github.category (elastic rule field)eqprotected_branch1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.branch_allowances

#
Category
protected-branch

Description

A protected branch allowance was given to a specific user, team or integration.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000008,
  "repo_id": 9000179,
  "actor_id": 9000047,
  "created_at": 1783958818057.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "org": "example-org",
  "name": "master",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.branch_allowances",
  "policy": "pull_request",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000180,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ip-redacted Safari/537.36",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "authorized_actors": [],
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Common Indicators #

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

FieldKindValueRulesVendors
github.category (elastic rule field)eqprotected_branch1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.create

#
Category
protected-branch

Description

Branch protection was enabled on a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000181,
  "user_id": 9000182,
  "actor_id": 9000182,
  "created_at": 1781093003196.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": true,
  "actor_is_agent": false,
  "admin_enforced": true,
  "create_protected": false,
  "require_code_owner_review": false,
  "require_last_push_approval": false,
  "lock_allows_fetch_and_merge": false,
  "dismiss_stale_reviews_on_push": true,
  "lock_branch_enforcement_level": 0.0,
  "merge_queue_enforcement_level": 0.0,
  "required_approving_review_count": 1.0,
  "allow_deletions_enforcement_level": 0.0,
  "ignore_approvals_from_contributors": false,
  "allow_force_pushes_enforcement_level": 0.0,
  "strict_required_status_checks_policy": true,
  "pull_request_reviews_enforcement_level": 2.0,
  "required_deployments_enforcement_level": 0.0,
  "signature_requirement_enforcement_level": 0.0,
  "required_status_checks_enforcement_level": 0.0,
  "linear_history_requirement_enforcement_level": 0.0,
  "required_review_thread_resolution_enforcement_level": 2.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "user": "user",
  "actor": "user",
  "action": "protected_branch.create",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000183,
  "user_agent": "example.invalid/7.0.6 example.invalid/24",
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAxNQ==",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "create",
  "enforcement_level": "off",
  "authorized_actor_names": [],
  "programmatic_access_type": "GitHub App server-to-server token"
}

Common Indicators #

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

FieldKindValueRulesVendors
github.category (elastic rule field)eqprotected_branch1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.destroy

#
Category
protected-branch

Description

Branch protection was disabled on a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000184,
  "actor_id": 9000185,
  "created_at": 1782838978611.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "admin_enforced": false,
  "create_protected": false,
  "require_code_owner_review": true,
  "require_last_push_approval": false,
  "lock_allows_fetch_and_merge": false,
  "dismiss_stale_reviews_on_push": false,
  "lock_branch_enforcement_level": 0.0,
  "merge_queue_enforcement_level": 0.0,
  "required_approving_review_count": 1.0,
  "allow_deletions_enforcement_level": 0.0,
  "ignore_approvals_from_contributors": false,
  "allow_force_pushes_enforcement_level": 2.0,
  "strict_required_status_checks_policy": true,
  "pull_request_reviews_enforcement_level": 1.0,
  "required_deployments_enforcement_level": 0.0,
  "signature_requirement_enforcement_level": 0.0,
  "required_status_checks_enforcement_level": 1.0,
  "linear_history_requirement_enforcement_level": 0.0,
  "required_review_thread_resolution_enforcement_level": 0.0,
  "org": "example-org",
  "name": "example-label-144",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.destroy",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000186,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ip-redacted Safari/537.36",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "remove",
  "enforcement_level": "off",
  "authorized_actor_names": [],
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Common Indicators #

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

FieldKindValueRulesVendors
github.category (elastic rule field)eqprotected_branch1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

Splunk #

Panther #

References #

protected_branch.dismiss_stale_reviews

#
Category
protected-branch

Description

Enforcement of dismissing stale pull requests was updated on a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000187,
  "actor_id": 9000188,
  "created_at": 1784569634413.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "dismiss_stale_reviews_on_push": false,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.dismiss_stale_reviews",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000189,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "remove",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Common Indicators #

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

FieldKindValueRulesVendors
github.category (elastic rule field)eqprotected_branch1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.dismissal_restricted_users_teams

#
Category
protected-branch

Description

Enforcement of restricting users and/or teams who can dismiss reviews was updated on a branch.

Documented on GitHub's enterprise audit log reference.

Common Indicators #

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

FieldKindValueRulesVendors
github.category (elastic rule field)eqprotected_branch1 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

protected_branch.policy_override

#
Category
protected-branch

Description

A branch protection requirement was overridden by a repository administrator.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000190,
  "actor_id": 9000191,
  "created_at": 1785236416581.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": true,
  "rule_suite_id": 9000192,
  "actor_is_agent": false,
  "org": "example-org",
  "repo": "user/example-repo",
  "actor": "user",
  "after": "gggggggggggggggggggggggggggggggggggggggg",
  "action": "protected_branch.policy_override",
  "before": "gggggggggggggggggggggggggggggggggggggggg",
  "branch": "example-branch-15",
  "reasons": [
    {
      "code": "creation",
      "message": "Cannot create ref due to creations being restricted."
    }
  ],
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000193,
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "overridden_codes": []
}

Common Indicators #

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

FieldKindValueRulesVendors
github.category (elastic rule field)eqprotected_branch2 ruleselastic
Esql.event_count (elastic rule field)ge101 ruleelastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

Panther #

References #

protected_branch.rejected_ref_update

#
Category
protected-branch

Description

A branch update attempt was rejected.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000194,
  "actor_id": 9000103,
  "created_at": 1785235237501.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": true,
  "rule_suite_id": 9000195,
  "actor_is_agent": false,
  "org": "example-org",
  "repo": "user/example-repo",
  "actor": "user",
  "after": "gggggggggggggggggggggggggggggggggggggggg",
  "action": "protected_branch.rejected_ref_update",
  "before": "gggggggggggggggggggggggggggggggggggggggg",
  "branch": "refs/heads/example-branch-8",
  "reasons": [
    {
      "code": "branch_deletion",
      "message": "Cannot delete this branch"
    }
  ],
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000196,
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "overridden_codes": []
}

Common Indicators #

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

FieldKindValueRulesVendors
github.category (elastic rule field)eqprotected_branch3 ruleselastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_admin_enforced

#
Category
protected-branch

Description

Branch protection was enforced for repository administrators.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000187,
  "actor_id": 9000188,
  "created_at": 1784569461890.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "admin_enforced": false,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_admin_enforced",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000197,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_allow_deletions_enforcement_level

#
Category
protected-branch

Description

Branch deletion was enabled or disabled for a protected branch.

Documented on GitHub's organization audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000040,
  "repo_id": 9000198,
  "actor_id": 9000199,
  "created_at": 1781291183697.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": true,
  "actor_is_agent": false,
  "allow_deletions_enforcement_level": 2.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_allow_deletions_enforcement_level",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000200,
  "user_agent": "probot/14.2.4 example.invalid/7.0.6 example.invalid/20.20.2 (linux; x64)",
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAxNg==",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "programmatic_access_type": "GitHub App server-to-server token"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_allow_force_pushes_enforcement_level

#
Category
protected-branch

Description

Force pushes were enabled or disabled for a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000040,
  "repo_id": 9000198,
  "actor_id": 9000199,
  "created_at": 1781291183694.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": true,
  "actor_is_agent": false,
  "allow_force_pushes_enforcement_level": 2.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_allow_force_pushes_enforcement_level",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000200,
  "user_agent": "probot/14.2.4 example.invalid/7.0.6 example.invalid/20.20.2 (linux; x64)",
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAxNg==",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "programmatic_access_type": "GitHub App server-to-server token"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_ignore_approvals_from_contributors

#
Category
protected-branch

Description

Ignoring of approvals from contributors to a pull request was enabled or disabled for a branch.

Documented on GitHub's enterprise audit log reference.

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

protected_branch.update_linear_history_requirement_enforcement_level

#
Category
protected-branch

Description

Required linear commit history was enabled or disabled for a branch.

Documented on GitHub's organization audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000040,
  "repo_id": 9000198,
  "actor_id": 9000199,
  "created_at": 1781291183662.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": true,
  "actor_is_agent": false,
  "linear_history_requirement_enforcement_level": 2.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_linear_history_requirement_enforcement_level",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000200,
  "user_agent": "probot/14.2.4 example.invalid/7.0.6 example.invalid/20.20.2 (linux; x64)",
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAxNg==",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "programmatic_access_type": "GitHub App server-to-server token"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_lock_allows_fetch_and_merge

#
Category
protected-branch

Description

Fork syncing was enabled or disabled for a read-only branch

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1783955175717,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDAwMDk=",
  "action": "protected_branch.update_lock_allows_fetch_and_merge",
  "actor": "user",
  "actor_id": 9000002,
  "actor_is_bot": false,
  "actor_location": {
    "country_code": "XX"
  },
  "business": "example-business",
  "business_id": 9000003,
  "created_at": 1783955175717,
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAwMQ==",
  "lock_allows_fetch_and_merge": true,
  "name": "main",
  "operation_type": "modify",
  "org": "example-org",
  "org_id": 9000004,
  "programmatic_access_type": "Personal access token (classic)",
  "public_repo": false,
  "repo": "user/example-repo",
  "repo_id": 9000005,
  "request_access_security_header": null,
  "request_id": "94CE:3FE560:EE0BAAD:F2C8EB5:6A54FEE7",
  "token_id": 9000006,
  "token_scopes": "admin:enterprise,admin:gpg_key,admin:org,admin:org_hook,admin:public_key,admin:repo_hook,admin:ssh_signing_key,audit_log,codespace,copilot,delete:packages,delete_repo,gist,notifications,project,repo,user,workflow,write:discussion,write:network_configurations,write:packages",
  "user_agent": "python-requests/2.34.2"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_lock_branch_enforcement_level

#
Category
protected-branch

Description

The enforcement of a branch lock was updated.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000201,
  "actor_id": 9000202,
  "created_at": 1784151432220.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "lock_branch_enforcement_level": 1.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_lock_branch_enforcement_level",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000203,
  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ip-redacted Safari/537.36",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "enforcement_level": "non-admins",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_merge_queue_enforcement_level

#
Category
protected-branch

Description

Enforcement of the merge queue was modified for a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000204,
  "actor_id": 9000205,
  "created_at": 1784752546256.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "merge_queue_enforcement_level": 2.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_merge_queue_enforcement_level",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000206,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ip-redacted Safari/537.36",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_name

#
Category
protected-branch

Description

A branch name pattern was updated for a branch.

Documented on GitHub's enterprise audit log reference.

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

protected_branch.update_pull_request_reviews_enforcement_level

#
Category
protected-branch

Description

Enforcement of required pull request reviews was updated for a branch. Can be 0 (deactivated), 1 (non-admins), or 2 (everyone).

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000187,
  "actor_id": 9000188,
  "created_at": 1784569634428.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "pull_request_reviews_enforcement_level": 0.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_pull_request_reviews_enforcement_level",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000189,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_require_code_owner_review

#
Category
protected-branch

Description

Enforcement of required code owner review was updated for a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000187,
  "actor_id": 9000188,
  "created_at": 1784569669568.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "require_code_owner_review": true,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_require_code_owner_review",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000207,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_require_last_push_approval

#
Category
protected-branch

Description

Someone other than the person who pushed the last code-modifying commit to the branch must approve pull requests for the branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000208,
  "actor_id": 9000209,
  "created_at": 1782825732817.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "require_last_push_approval": true,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_require_last_push_approval",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000210,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_required_approving_review_count

#
Category
protected-branch

Description

Enforcement of the required number of approvals before merging was updated on a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1783955175663,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDAwMTY=",
  "action": "protected_branch.update_required_approving_review_count",
  "actor": "user",
  "actor_id": 9000002,
  "actor_is_bot": false,
  "actor_location": {
    "country_code": "XX"
  },
  "business": "example-business",
  "business_id": 9000003,
  "created_at": 1783955175663,
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAwMQ==",
  "name": "main",
  "operation_type": "modify",
  "org": "example-org",
  "org_id": 9000004,
  "programmatic_access_type": "Personal access token (classic)",
  "public_repo": false,
  "repo": "user/example-repo",
  "repo_id": 9000005,
  "request_access_security_header": null,
  "request_id": "94CE:3FE560:EE0BAAD:F2C8EB5:6A54FEE7",
  "required_approving_review_count": 1,
  "token_id": 9000006,
  "token_scopes": "admin:enterprise,admin:gpg_key,admin:org,admin:org_hook,admin:public_key,admin:repo_hook,admin:ssh_signing_key,audit_log,codespace,copilot,delete:packages,delete_repo,gist,notifications,project,repo,user,workflow,write:discussion,write:network_configurations,write:packages",
  "user_agent": "python-requests/2.34.2"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_required_status_checks_enforcement_level

#
Category
protected-branch

Description

Enforcement of required status checks was updated for a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000211,
  "actor_id": 9000185,
  "created_at": 1782849423242.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "required_status_checks_enforcement_level": 1.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_required_status_checks_enforcement_level",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000212,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ip-redacted Safari/537.36",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_signature_requirement_enforcement_level

#
Category
protected-branch

Description

Enforcement of required commit signing was updated for a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000181,
  "actor_id": 9000182,
  "created_at": 1781093004314.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": true,
  "actor_is_agent": false,
  "signature_requirement_enforcement_level": 2.0,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_signature_requirement_enforcement_level",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000213,
  "user_agent": "example.invalid/7.0.6 example.invalid/24",
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAxNQ==",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "programmatic_access_type": "GitHub App server-to-server token"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #

protected_branch.update_strict_required_status_checks_policy

#
Category
protected-branch

Description

Enforcement of required status checks was updated for a branch.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000002,
  "repo_id": 9000214,
  "actor_id": 9000215,
  "created_at": 1784573316295.0,
  "business_id": 9000005,
  "public_repo": false,
  "actor_is_bot": false,
  "strict_required_status_checks_policy": false,
  "org": "example-org",
  "name": "main",
  "repo": "user/example-repo",
  "actor": "user",
  "action": "protected_branch.update_strict_required_status_checks_policy",
  "actor_ip": "ip-redacted",
  "business": "example-business",
  "request_id": 9000216,
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:151.0) Gecko/20100101 Firefox/151.0",
  "actor_location": {
    "country_code": "XX"
  },
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

References #