Skip to content

rules/azure: End-user consent to app with mailbox + offline_access delegated scopes - #6277

Open
earbona23 wants to merge 5 commits into
SigmaHQ:masterfrom
earbona23:azure-consent-mailbox-offline
Open

earbona23 wants to merge 5 commits into
SigmaHQ:masterfrom
earbona23:azure-consent-mailbox-offline

Conversation

@earbona23

Copy link
Copy Markdown

New azure/auditlogs rule (T1528, Steal Application Access Token). Narrows the broad 'End User Consent' event to the high-fidelity combination: non-admin consent + a high-risk mailbox delegated scope (Mail.Read/ReadWrite/Send/MailboxSettings.ReadWrite) + offline_access. Validated: sigma check (0 issues), test_rules.py, test_logsource.py, official json-schema, yamllint --strict.

@github-actions github-actions Bot added Rules Review Needed The PR requires review labels Sep 3, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @earbona23 👋

It looks like this is your first pull request on the Sigma rules repository!

Please read the SigmaHQ conventions to ensure your contribution adheres to best practices and includes all the necessary elements for a successful review.

Also check CONTRIBUTING.md for more information on how to contribute to the Sigma rules repository, specifically proper testing and validation of your rules.

Thanks again, and welcome to the Sigma community! 😃

If you want to engage more with the community for official support, general discussions or announcements:

👉 Join our Discord server

@earbona23

Copy link
Copy Markdown
Author

Gentle nudge on this rule: it has carried Review Needed since it was opened on 2026-09-03 and has not had a reviewer look at it yet.

Short recap of what it detects: an end user consenting to an application that requests delegated scopes granting mailbox access together with offline_access, which turns a single consent into persistent mail access without any admin involvement. The equivalent analytic rule was merged into Azure/Azure-Sentinel as #15047 (EndUserConsentMailboxOfflineAccess.yaml) on 2026-09-11, so the detection logic has had an independent review pass in another project.

No rush, and no objection to changes - I would just rather know if something about the rule needs reworking than have it sit unreviewed. The branch is behind master, so I am glad to rebase whenever a reviewer picks it up.

@earbona23

Copy link
Copy Markdown
Author

Pushed 89f5831: removed the attack.mitre.org link from references, since the technique is already covered by the attack.t1528 tag. That is the one thing sigma check would have flagged here (SigmahqMitreLinkIssue) once the workflow runs on this PR.

Checked locally against the CI setup (pySigma-validators-sigmahq 0.21, tests/sigma_cli_conf.yml): yamllint, sigma check --fail-on-error --fail-on-issues, tests/test_rules.py and tests/test_logsource.py all pass.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Needed The PR requires review Rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants