Skip to content

[New Rule] Entra ID Potential Conditional Access MFA Bypass via First-Party Microsoft Graph Access#6325

Open
terrancedejesus wants to merge 5 commits into
mainfrom
new-rule/azure-entra-id-foci-ca-bypass
Open

[New Rule] Entra ID Potential Conditional Access MFA Bypass via First-Party Microsoft Graph Access#6325
terrancedejesus wants to merge 5 commits into
mainfrom
new-rule/azure-entra-id-foci-ca-bypass

Conversation

@terrancedejesus

@terrancedejesus terrancedejesus commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Pull Request

Issue link(s):

Summary - What I changed

Identifies the first observed instance of a Microsoft first-party public client application acquiring a Microsoft Graph
token using single-factor (password-only) authentication while an MFA Conditional Access grant control went unenforced, for a given user, application, and source autonomous system (ASN). This pattern is associated with the Conditional Access "resource exclusion" bypass: when a tenant's "all resources" Conditional Access policy contains at least one application exclusion, Entra ID issues tokens for low-privilege baseline scopes (User.Read, openid, profile, email) to any resource, including Microsoft Graph, without enforcing the policy's grant controls (such as MFA). An adversary holding only a stolen password can therefore obtain a Graph token through a trusted first-party public client (for example, Microsoft Bing Search) and enumerate directory objects, even though the tenant requires MFA. Critically, the overall conditional_access_status is never "failure" for this technique (the sign-in is not blocked); it is reported as "success" or "notApplied" depending on what other policies exist in the tenant, so detections that key on Conditional Access failures will not observe it.

Screenshot 2026-06-22 at 2 57 20 PM

How To Test

Checklist

  • Added a label for the type of pr: bug, enhancement, schema, maintenance, Rule: New, Rule: Deprecation, Rule: Tuning, Hunt: New, or Hunt: Tuning so guidelines can be generated
  • Added the meta:rapid-merge label if planning to merge within 24 hours
  • Secret and sensitive material has been managed correctly
  • Automated testing was updated or added to match the most common scenarios
  • Documentation and comments were added for features that require explanation

Contributor checklist

@terrancedejesus terrancedejesus self-assigned this Jun 22, 2026
@terrancedejesus terrancedejesus added the Rule: New Proposal for new rule label Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Rule: New - Guidelines

These guidelines serve as a reminder set of considerations when proposing a new rule.

Documentation and Context

  • Detailed description of the rule.
  • List any new fields required in ECS/data sources.
  • Link related issues or PRs.
  • Include references.

Rule Metadata Checks

  • creation_date matches the date of creation PR initially merged.
  • min_stack_version should support the widest stack versions.
  • name and description should be descriptive and not include typos.
  • query should be inclusive, not overly exclusive, considering performance for diverse environments. Non ecs fields should be added to non-ecs-schema.json if not available in an integration.
  • min_stack_comments and min_stack_version should be included if the rule is only compatible starting from a specific stack version.
  • index pattern should be neither too specific nor too vague, ensuring it accurately matches the relevant data stream (e.g., use logs-endpoint.process-* for process data).
  • integration should align with the index. If the integration is newly introduced, ensure the manifest, schemas, and new_rule.yaml template are updated.
  • setup should include the necessary steps to configure the integration.
  • note should include any additional information (e.g. Triage and analysis investigation guides, timeline templates).
  • tags should be relevant to the threat and align/added to the EXPECTED_RULE_TAGS in the definitions.py file.
  • threat, techniques, and subtechniques should map to ATT&CK always if possible.

New BBR Rules

  • building_block_type should be included if the rule is a building block and the rule should be located in the rules_building_block folder.
  • bypass_bbr_timing should be included if adding custom lookback timing to the rule.

Testing and Validation

  • Provide evidence of testing and detecting the expected threat.
  • Check for existence of coverage to prevent duplication.

Copilot AI review requested due to automatic review settings June 23, 2026 12:39
@botelastic botelastic Bot added the Integration: Azure azure related rules label Jun 23, 2026

Copilot AI 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.

Pull request overview

Adds a new Microsoft Entra ID (Azure sign-in logs) New Terms detection rule to identify likely Conditional Access “resource exclusion” MFA bypass behavior when a Microsoft first-party public client obtains a Microsoft Graph token via password-only auth, plus supporting schema updates.

Changes:

  • Introduces a new new_terms rule targeting first-seen (user, app, source ASN) sign-ins to Microsoft Graph via first-party Microsoft apps where MFA grant controls were not applied.
  • Extends non-ecs-schema.json to include additional azure.signinlogs.properties.applied_conditional_access_policies.* fields used by the rule.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
rules/integrations/azure/defense_evasion_entra_id_ca_mfa_bypass_first_party_graph.toml New Entra ID sign-in logs New Terms rule for potential CA MFA bypass via first-party Graph access.
detection_rules/etc/non-ecs-schema.json Adds missing schema entries for Conditional Access per-policy fields referenced by the new rule.

Comment on lines +88 to +93
data_stream.dataset: "azure.signinlogs" and
event.outcome: "success" and
azure.signinlogs.properties.user_type: "Member" and
azure.signinlogs.properties.authentication_requirement: "singleFactorAuthentication" and
azure.signinlogs.properties.conditional_access_status: ("success" or "notApplied") and
azure.signinlogs.properties.authentication_details.authentication_method: "Password" and
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants