New GitHub Personal Access Token (PAT) Added

Last updated a month ago on 2025-12-16
Created 2 years ago on 2023-12-16

About

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.
Tags
Domain: CloudUse Case: Threat DetectionTactic: PersistenceTactic: Credential AccessData Source: GithubLanguage: eql
Severity
low
Risk Score
21
MITRE ATT&CK™

Persistence (TA0003)(external, opens in a new tab or window)

Credential Access (TA0006)(external, opens in a new tab or window)

License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
Event Correlation Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-github.audit-*
Related Integrations

github(external, opens in a new tab or window)

Query
text code block:
configuration where event.dataset == "github.audit" and github.operation_type == "create" and github.category == "personal_access_token" and event.action == "personal_access_token.access_granted"

Install detection rules in Elastic Security

Detect New GitHub Personal Access Token (PAT) Added in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).