
title: Abusing Azure Browser SSO
author: Den Iuzvyk
date: 2020/07/15
description: Detects abusing Azure Browser SSO by requesting OAuth 2.0 refresh tokens
  for an Azure-AD-authenticated Windows user (i.e. the machine is joined to Azure
  AD and a user logs in with their Azure AD account) wanting to perform SSO authentication
  in the browser. An attacker can use this to authenticate to Azure AD in a browser
  as that user.
detection:
  SELECTION_1:
    EventID: 7
  SELECTION_2:
    ImageLoaded: '*MicrosoftAccountTokenProvider.dll'
  SELECTION_3:
    Image:
    - '*BackgroundTaskHost.exe'
    - '*devenv.exe'
    - '*iexplore.exe'
    - '*MicrosoftEdge.exe'
  condition: (SELECTION_1 and SELECTION_2 and  not (SELECTION_3))
falsepositives:
- unknown
id: 50f852e6-af22-4c78-9ede-42ef36aa3453
level: high
logsource:
  category: image_load
  product: windows
modified: 2020/12/23
references:
- https://posts.specterops.io/requesting-azure-ad-request-tokens-on-azure-ad-joined-machines-for-browser-sso-2b0409caad30
status: experimental
tags:
- attack.defense_evasion
- attack.privilege_escalation
- attack.t1073
- attack.t1574.002
ruletype: SIGMA
