GitHub Audit Log Streaming Configuration Modified or Deleted

Last updated a day ago on 2026-11-02
Created a day ago on 2026-11-02

About

Detects when a GitHub Enterprise audit log streaming destination is updated or deleted. Adversaries who gain enterprise admin access may change the stream sink or destroy it to stop security telemetry from reaching the SIEM, or to redirect audit events to attacker-controlled storage.
Tags
Domain: CloudDomain: SaaSPlatform: GitHubUse Case: Threat DetectionTactic: Defense EvasionData Source: GithubData Source: GitHub Audit LogsRule Type: ESQLLanguage: esql
Severity
high
Risk Score
73
MITRE ATT&CK™

Defense Evasion (TA0005)(external, opens in a new tab or window)

False Positive Examples
Planned stream rotation, sink migration, or pausing a misconfigured destination by an enterprise owner. Confirm the actor, change ticket, and that the production SIEM sink remains enabled.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

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

Query
text code block:
from logs-github.audit-* metadata _id, _index, _version | where event.module == "github" and data_stream.dataset == "github.audit" and event.action in ("audit_log_streaming.update", "audit_log_streaming.destroy") | keep _id, _index, _version, @timestamp, event.action, user.name, github.org, github.repo, github.actor_ip, github.hashed_token, github.programmatic_access_type, github.user_agent, github.business, github.audit_log_stream_id, github.audit_log_stream_sink, github.audit_log_stream_enabled

Install detection rules in Elastic Security

Detect GitHub Audit Log Streaming Configuration Modified or Deleted 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).