Browse Rules

Search and filter across all detection sources

45 rules

elastic low eql

GitHub Repo Created

A new GitHub repository was created.

elastic medium eql

Remote GitHub Actions Runner Registration

This rule detects the configuration of a GitHub Actions self-hosted runner using the Runner.Listener binary. When a machine is registered to a remote repository, its owner gains the ability to execute arbitrary workflow commands on that host. Unexpected or unauthorized runner registration may indicate adversarial activity aimed at establishing remote code execution via malicious GitHub workflows.

elastic medium eql

Execution via GitHub Actions Runner

This rule detects potentially dangerous commands spawned by the GitHub Actions Runner.Worker process or by shell interpreters launched via a runner entrypoint script on self-hosted runner machines. Adversaries who gain the ability to modify or trigger workflows in a linked GitHub repository can execute arbitrary commands on the runner host. This behavior may indicate malicious or unexpected workflow activity, including code execution, reconnaissance, credential harvesting, or network exfiltratio

elastic low eql

GitHub App Deleted

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

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 high kql

AWS Credentials Used from GitHub Actions and Non-CI/CD Infrastructure

Detects AWS access keys that are used from both GitHub Actions CI/CD infrastructure and non-CI/CD infrastructure. This pattern indicates potential credential theft where an attacker who has stolen AWS credentials configured as GitHub Actions secrets and is using them from their own infrastructure.

elastic medium eql

Attempt to Establish VScode Remote Tunnel

Detects the execution of the VScode portable binary with the tunnel command line option indicating an attempt to establish a remote tunnel session to Github or a remote VScode instance.

elastic low eql

Member Removed From GitHub Organization

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

elastic medium eql

GitHub Authentication Token Access via Node.js

This rule detects when the Node.js runtime spawns a shell to execute the GitHub CLI (gh) command to retrieve a GitHub authentication token. The GitHub CLI is a command-line tool that allows users to interact with GitHub from the terminal. The "gh auth token" command is used to retrieve an authentication token for GitHub, which can be used to authenticate API requests and perform actions on behalf of the user. Adversaries may use this technique to access GitHub repositories and potentially exfilt

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 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 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 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

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 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 medium kql

GitHub Exfiltration via High Number of Repository Clones by User

Detects a high number of repository cloning actions by a single user within a short time frame. Adversaries may clone multiple repositories to exfiltrate sensitive data.

elastic low kql

Github Activity on a Private Repository from an Unusual IP

Detects when there is activity on a private GitHub repository from an unusual IP address. Adversaries may access private repositories from unfamiliar IPs to exfiltrate sensitive code or data, potentially indicating a compromise or unauthorized access.

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 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.