Github Activity on a Private Repository from an Unusual IP

Last updated a month ago on 2025-12-16
Created a month ago on 2025-12-16

About

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.
Tags
Domain: CloudUse Case: Threat DetectionTactic: ImpactTactic: Initial AccessTactic: PersistenceData Source: GithubLanguage: kuery
Severity
low
Risk Score
21
MITRE ATT&CK™

Impact (TA0040)(external, opens in a new tab or window)

Initial Access (TA0001)(external, opens in a new tab or window)

Execution (TA0002)(external, opens in a new tab or window)

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

Definition

Rule Type
New Terms 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:
event.dataset:"github.audit" and event.action:("git.push" or "git.clone") and github.repository_public:false

Install detection rules in Elastic Security

Detect Github Activity on a Private Repository from an Unusual IP 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).