Credential Access (TA0006)(external, opens in a new tab or window)
text code block:from logs-github.audit-* metadata _id, _index, _version | where event.module == "github" and data_stream.dataset == "github.audit" and event.action == "secret_scanning_alert.create" and github.publicly_leaked == true | 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.secret_type, github.secret_type_display_name, github.publicly_leaked, github.multi_repo
Install detection rules in Elastic Security
Detect GitHub Secret Scanning Alert for a Publicly Leaked Secret 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).