Suspicious OAuth Sign-In Using Visual Studio Code Client and Auth Broker

PremiumReviewedSigma · Medium · v1
Product
azure
Service
signinlogs
Author
HuntRule
Published
2026-09-16
Updated
2026-09-16

ATT&CK techniques

Initial Access → Cred Access
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects Entra ID non-interactive sign-ins where the Visual Studio Code first-party application requests a token through the Microsoft Authentication Broker resource, the exact combination abused in an OAuth phishing campaign. Attackers lure victims into authorizing this trusted client to mint refresh tokens and register rogue devices for persistent access to Microsoft Graph.

Related detections9 linkedT1528 — drag to rearrange
Suspicious Microsoft Entra Device Code Authentication Flow
Suspicious Google Workspace OAuth Authorization for Chrome Web Store Scope via Token Audit
Suspicious OAuth Application Consent Grant via Azure Audit Logs
Suspicious OAuth Application Consent Granted High Privilege Mail Scopes (via m365)
Suspicious Token Request Using Microsoft Authentication Broker Client to Obtain Primary Refresh Token (via azure)
Suspicious Salesforce Connected App OAuth Authorization from VPN Egress
Suspicious Gammadyne Mailer Execution for Direct-to-MX Spam
Suspicious M365 Device Code Authentication Flow via m365
Possible Illicit Consent Grant to OAuth Application via Azure AD
Suspicious OAuth Sign-In Using Visual Studio Code Client and Auth Broker
Pivot detection · T1528 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.