Repository navigation
[New Rule] GitHub OAuth Application Authorized - #6896
Merged
Merged
Conversation
bryans3c
requested review from
Samirbous,
eric-forte-elastic,
terrancedejesus and
w0rk3r
September 24, 2026 12:30
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved review findings must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (5)
What changed in this PR
Adds a GitHub EQL rule detecting oauth_authorization.create events.
Changes:
- Adds low-severity detection and ATT&CK mappings.
- Includes investigation guidance, references, and analyst fields.
- Configures GitHub audit-log ingestion handling.
| File | Summary |
|---|---|
rules/integrations/github/persistence_github_oauth_application_authorized.toml |
New GitHub OAuth authorization detection rule. |
Review findings require correcting OAuth application fields, adding them to investigation fields, and updating taxonomy and data-source tags.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| [[rule.threat.technique.subtechnique]] | ||
| id = "T1078.004" | ||
| name = "Cloud Accounts" | ||
| reference = "https://attack.mitre.org/techniques/T1078/004/" |
bryans3c
marked this pull request as draft
September 24, 2026 15:17
Samirbous
reviewed
Oct 1, 2026
bryans3c
marked this pull request as ready for review
October 1, 2026 14:17
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Samirbous
approved these changes
Oct 1, 2026
terrancedejesus
approved these changes
Oct 1, 2026
…_authorized.toml Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Pull Request
Issue link(s):
Summary - What I changed
Added
persistence_github_oauth_application_authorized, an ES|QL rule foroauth_authorization.create. Severity is low (Login-with-GitHub is routine). On non-EMU GHEC this user-security-log action often does not stream to enterprise audit.Why it matters
Authorizing an OAuth app grants a token that can clone and ZIP private repos (Heroku/Travis 2022). The audit action is also everyday developer behavior, so severity is low. EMU is required for reliable enterprise-stream coverage.
How To Test
Authorize a lab OAuth App (localhost callback is expected). On non-EMU, check the user security log; enterprise
logs-github.audit-*may not containoauth_authorization.create.Checklist
Rule: Newqueryis inclusive, not overly exclusivenameanddescriptionare descriptive and free of typos