Git

actionDescriptionSampleRule
git.cloneA repository was cloned. This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.YY
git.fetchChanges were fetched from a repository. This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.YY
git.pushChanges were pushed to a repository. This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.YY

git.clone

#
Category
git

Description

A repository was cloned. This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.

GitHub Enterprise Cloud logs Git events by default, retrievable via the REST API or audit-log streaming only (not the web UI), with 7-day retention. GitHub Enterprise Server requires enabling Git events in audit-log configuration.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1785026871063,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDAwMDU=",
  "action": "example.invalid",
  "actor": "user",
  "actor_location": {
    "country_code": "XX"
  },
  "business": "example-business",
  "business_id": 9000003,
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAwMQ==",
  "org": "example-org",
  "org_id": 9000004,
  "programmatic_access_type": "Personal access token (classic)",
  "repo": "user/example-repo",
  "repository": "user/example-repo",
  "repository_public": false,
  "token_id": 9000006,
  "transport_protocol": 1,
  "transport_protocol_name": "http",
  "user": "user",
  "user_agent": "git/2.39.5",
  "user_id": 9000007
}

Common Indicators #

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

FieldKindValueRulesVendors
github.repository_public (elastic rule field)eqfalse2 ruleselastic
github.programmatic_access_type (elastic rule field)infine-grained personal access token1 ruleelastic
github.programmatic_access_type (elastic rule field)inoauth access token1 ruleelastic

Detection Rules #

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

Elastic #

YARA-L #

Panther #

git.fetch

#
Category
git

Description

Changes were fetched from a repository. This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.

GitHub Enterprise Cloud logs Git events by default, retrievable via the REST API or audit-log streaming only (not the web UI), with 7-day retention. GitHub Enterprise Server requires enabling Git events in audit-log configuration.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1785027127063,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDAwMDQ=",
  "action": "example.invalid",
  "actor": "user",
  "actor_location": {
    "country_code": "XX"
  },
  "business": "example-business",
  "business_id": 9000003,
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAwMQ==",
  "org": "example-org",
  "org_id": 9000004,
  "programmatic_access_type": "Personal access token (classic)",
  "repo": "user/example-repo",
  "repository": "user/example-repo",
  "repository_public": false,
  "token_id": 9000006,
  "transport_protocol": 1,
  "transport_protocol_name": "http",
  "user": "user",
  "user_agent": "git/2.39.5",
  "user_id": 9000007
}

Detection Rules #

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

Panther #

git.push

#
Category
git

Description

Changes were pushed to a repository. This event is not available in the web interface, only via the REST API, audit log streaming, or JSON/CSV exports.

GitHub Enterprise Cloud logs Git events by default, retrievable via the REST API or audit-log streaming only (not the web UI), with 7-day retention. GitHub Enterprise Server requires enabling Git events in audit-log configuration.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "@timestamp": 1785026872972,
  "_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDAwMDQ=",
  "action": "example.invalid",
  "actor": "user",
  "actor_location": {
    "country_code": "XX"
  },
  "business": "example-business",
  "business_id": 9000003,
  "hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAwMQ==",
  "org": "example-org",
  "org_id": 9000004,
  "programmatic_access_type": "Personal access token (classic)",
  "repo": "user/example-repo",
  "repository": "user/example-repo",
  "repository_public": false,
  "token_id": 9000006,
  "transport_protocol": 1,
  "transport_protocol_name": "http",
  "user": "user",
  "user_agent": "git/2.39.5",
  "user_id": 9000007
}

Common Indicators #

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

FieldKindValueRulesVendors
github.repository_public (elastic rule field)eqfalse1 ruleelastic

Detection Rules #

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

Elastic #

Panther #

References #