Skip to content

Commit 865c4a0

Browse files
committed
new: MFA Bypass via registry tampering and PowerShell requirement tampering rules
1 parent 8eaafff commit 865c4a0

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
title: PowerShell MFA Requirement Tampering On Entra ID Or AD User Object
2+
id: c10c6c11-0f72-4025-82ea-6e121ba1ffed
3+
status: experimental
4+
description: |
5+
Detects PowerShell script blocks that clear or weaken a user's Strong Authentication (MFA) requirements
6+
via the legacy MSOnline or AzureAD modules, which can be used to bypass MFA enforcement for a targeted account.
7+
references:
8+
- https://learn.microsoft.com/en-us/powershell/module/msonline/set-msoluser
9+
author: Krishna Gupta
10+
date: 2026-08-08
11+
tags:
12+
- attack.defense-evasion
13+
- attack.t1556.006
14+
logsource:
15+
product: windows
16+
category: ps_script
17+
definition: 'Requirements: Script Block Logging must be enabled'
18+
detection:
19+
selection_cmdlet:
20+
ScriptBlockText|contains:
21+
- 'Set-MsolUser'
22+
- 'Set-AzureADUser'
23+
selection_param:
24+
ScriptBlockText|contains: 'StrongAuthenticationRequirements'
25+
selection_clear:
26+
ScriptBlockText|contains:
27+
- '= $null'
28+
- '= @()'
29+
- '.Clear()'
30+
condition: all of selection_*
31+
falsepositives:
32+
- Legitimate administration scripts resetting a user's MFA methods at their request
33+
level: high
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
title: MFA Bypass Via Windows Hello PIN Or Credential Provider Registry Tampering
2+
id: f514d72b-9c1c-4109-bc9f-1674486af72f
3+
status: experimental
4+
description: |
5+
Detects registry modifications that disable domain PIN sign-in (AllowDomainPINLogon) or disable a Credential Provider,
6+
both of which can be used to weaken or bypass multi-factor authentication enforcement on a Windows host.
7+
references:
8+
- https://gpedit.tplant.com.au/en-us/policy/CredentialProviders/AllowDomainPINLogon/
9+
- https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-credentialproviders
10+
author: Krishna Gupta
11+
date: 2026-08-08
12+
tags:
13+
- attack.defense-evasion
14+
- attack.t1556.006
15+
logsource:
16+
category: registry_set
17+
product: windows
18+
detection:
19+
selection_pin_disable:
20+
TargetObject|endswith: '\Policies\Microsoft\Windows\System\AllowDomainPINLogon'
21+
Details: 'DWORD (0x00000000)'
22+
selection_cred_provider_disable:
23+
TargetObject|contains: '\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\'
24+
TargetObject|endswith: '\Disabled'
25+
Details: 'DWORD (0x00000001)'
26+
condition: 1 of selection_*
27+
falsepositives:
28+
- Administrators deliberately disabling convenience PIN sign-in or a specific credential provider as part of a hardening baseline
29+
level: medium

0 commit comments

Comments
 (0)