GitHub-personal-access-token

2 operations, identified by action in the audit log.

actionDescription
personal_access_token.access_grantedA fine-grained personal access token was granted access to resources.
personal_access_token.access_revokedA fine-grained personal access token was revoked. The token can still read public organization resources.

personal_access_token.access_granted

#
Category
GitHub-personal-access-token

Description

A fine-grained personal access token was granted access to resources.

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.

Detection Rules #

View all rules referencing this event →

Elastic #

  • New GitHub Personal Access Token (PAT) Added source low: Detects when a new GitHub Personal Access Token (PAT) is created. Adversaries may create new PATs to maintain persistent access to a compromised account or to escalate privileges within an organization.

YARA-L #

personal_access_token.access_revoked

#
Category
GitHub-personal-access-token

Description

A fine-grained personal access token was revoked. The token can still read public organization resources.

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.

Detection Rules #

View all rules referencing this event →

Elastic #