Browse Rules

Search and filter across all detection sources

83 rules

elastic low eql

GitHub PAT Access Revoked

Access to private GitHub organization resources was revoked for a PAT.

elastic low eql

GitHub User Blocked From Organization

A GitHub user was blocked from access to an organization.

elastic low eql

New User Added To GitHub Organization

A new user was added to a GitHub organization.

elastic low eql

GitHub App Deleted

Detects the deletion of a GitHub app either from a repo or an organization.

elastic low eql

Member Removed From GitHub Organization

A member was removed or their invitation to join was removed from a GitHub Organization.

elastic low kql

First Occurrence of GitHub User Interaction with Private Repo

Detects a new private repo interaction for a GitHub user not seen in the last 14 days.

elastic low kql

First Occurrence of IP Address For GitHub User

Detects a new IP address used for a GitHub user not previously seen in the last 14 days.

elastic low kql

First Occurrence of User-Agent For a GitHub User

Detects a new user agent used for a GitHub user not previously seen in the last 14 days.

elastic low kql

First Occurrence of Personal Access Token (PAT) Use For a GitHub User

A new PAT was used for a GitHub user not previously seen in the last 14 days.

elastic low kql

GitHub Repo Created

Identifies the creation of a GitHub repository by a non-bot actor. Unexpected repository creation can indicate unauthorized infrastructure setup, data staging, or misuse of a compromised GitHub account.

elastic low kql

First Occurrence of GitHub Repo Interaction From a New IP

Detects an interaction with a private GitHub repository from a new IP address not seen in the last 14 days.

elastic low kql

First Occurrence of IP Address For GitHub Personal Access Token (PAT)

Detects a new IP address used for a GitHub PAT not previously seen in the last 14 days.

elastic low kql

First Occurrence of Private Repo Event from Specific GitHub Personal Access Token (PAT)

Detects a new private repo interaction for a GitHub PAT not seen in the last 14 days.

elastic high kql

GitHub SSO Recovery Codes Activity

Detects viewing, downloading, printing, generating, or using GitHub enterprise or organization SSO recovery codes. These codes bypass the IdP and are break-glass credentials.

elastic low kql

First Occurrence of User Agent For a GitHub Personal Access Token (PAT)

Detects a new user agent used for a GitHub PAT not previously seen in the last 14 days.

elastic low kql

GitHub Actions Workflow Run Rapidly Deleted

Detects when a GitHub Actions workflow run is deleted within 30 minutes of its creation. Adversaries who abuse Actions for execution or secret theft may delete short-lived runs afterward to remove job logs that show the malicious steps.

elastic low kql

GitHub Webhook Created or Configuration Changed

Detects creation or configuration change of a GitHub webhook. Attackers can add a hook to copy push, pull request, and workflow payloads (including secrets that land in those events) to an external URL.

elastic low kql

GitHub OAuth Application Authorized

Detects when a user authorizes a GitHub OAuth application. Stolen OAuth grants persist after password changes until revoked and can clone or ZIP private repositories. This is not a GitHub App installation (integration_installation.create).

elastic low eql

GitHub Private Repository Turned Public

Detects when a private GitHub repository is changed to public visibility. Adversaries may change repository visibility to public in order to exfiltrate sensitive code or data, potentially indicating a compromise or unauthorized access.

elastic medium kql

GitHub Advanced Security Disabled

Detects GitHub Advanced Security being disabled for an enterprise, for all or new repositories in an organization, for existing or new user-namespace repositories, or for selected members via enterprise policy. Disabling GHAS removes secret scanning, code scanning, and related controls.

elastic low kql

High Number of Cloned GitHub Repos From PAT

Detects a high number of unique private repo clone events originating from a single personal access token within a short time period.

elastic low eql

New GitHub Personal Access Token (PAT) Added

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.

elastic low eql

GitHub Secret Scanning Disabled

Detects when GitHub Secret Scanning is disabled for a repository. Adversaries may disable secret scanning to evade detection of hardcoded secrets, such as API keys or credentials, that could be used for further compromise or data exfiltration.

elastic low kql

First Occurrence GitHub Event for a Personal Access Token (PAT)

Detects a first occurrence event for a personal access token (PAT) not seen in the last 14 days.

elastic medium kql

GitHub Private Repository Forking Enabled

Detects enabling of private repository forking on a GitHub organization. Allowing forks of private repositories lets code leave the organization into personal forks, which is a common collection path after an org-owner compromise.