Entra ID Device Registration with Phishing Kit Default OS Build
editEntra ID Device Registration with Phishing Kit Default OS Build
editIdentifies a Microsoft Entra ID device registration where the recorded cloud device operating system build is "10.0.19045.2006" and the device display name follows the default "DESKTOP-" pattern. This is the frozen default device profile observed when adversary-in-the-middle (AiTM) phishing kits such as Tycoon2FA and Kali365 register Azure AD-joined devices after capturing a victim session, in order to acquire a Primary Refresh Token (PRT) and establish persistence. The build is hardcoded by the tooling and it is uncommon for the OS build to match this exact value across an environment of otherwise patched hosts, where a current Windows 10 22H2 device reports a far higher "10.0.19045.<revision>" value.
Rule type: query
Rule indices:
- logs-azure.auditlogs-*
Severity: medium
Risk score: 47
Runs every: 5m
Searches indices from: now-9m (Date Math format, see also Additional look-back time)
Maximum alerts per execution: 100
References:
Tags:
- Domain: Cloud
- Domain: Identity
- Data Source: Azure
- Data Source: Microsoft Entra ID
- Data Source: Microsoft Entra ID Audit Logs
- Use Case: Identity and Access Audit
- Use Case: Threat Detection
- Threat: Tycoon2FA
- Threat: Kali365
- Tactic: Persistence
- Resources: Investigation Guide
Version: 1
Rule authors:
- Elastic
Rule license: Elastic License v2
Investigation guide
editTriage and analysis
Investigating Entra ID Device Registration with Phishing Kit Default OS Build
AiTM phishing kits including Tycoon2FA and Kali365 register a device in Entra ID with a frozen default cloud device OS build of 10.0.19045.2006 and a default display name of DESKTOP-<random characters>. This build is hardcoded by the tooling and differs from the OS version of legitimate, patched hosts (a current Windows 10 22H2 device reports a much higher 10.0.19045.<revision> value), making the build a useful indicator of kit-driven device registration. Rogue device registration is typically a precursor to Primary Refresh Token (PRT) acquisition, MFA/Conditional Access bypass, and persistent token-based access.
The matching Entra ID audit event is an Add device operation initiated by the Device Registration Service, where the modified properties record the registered device characteristics:
-
azure.auditlogs.properties.target_resources.0.modified_properties.3(CloudDeviceOSVersion) =10.0.19045.2006 -
azure.auditlogs.properties.target_resources.0.modified_properties.4(CloudDisplayName) =DESKTOP-*
Possible investigation steps
-
Confirm the registering identity via
azure.auditlogs.properties.initiated_by.user.userPrincipalNameand determine whether that user is expected to register a new device. -
Review
azure.auditlogs.identityto confirm theDevice Registration Serviceinitiated the request, and useazure.correlation_idto pivot across the full registration flow (Add device,Add registered users to device,Add registered owner to device). -
Inspect the device name in
azure.auditlogs.properties.target_resources.0.display_name; kit-registered names are commonlyDESKTOP-followed by 6 alphanumeric (Tycoon2FA) or 6 hexadecimal (Kali365) characters. -
Inspect the registration user agent on the paired
Register deviceevent (azure.auditlogs.properties.userAgent), which is frequently a spoofedDsreg/10.0 (Windows 10.0.19045.2006)string or a raw HTTP client such asaxios/*orpython-requests/*. - Check whether the same user registered multiple devices in a short window (a single piece of kit infrastructure registering several devices is common for PRT persistence at scale).
-
Review
azure.auditlogs.properties.initiated_by.user.ipAddressand geolocation for the registration source. Flag unexpected IPs, hosting/VPS ASNs (for example Tencent or Alibaba), or impossible-travel relative to the user’s normal activity. -
Pivot to
azure.signinlogsfor the same user and timeframe and look for follow-on sign-ins where the incoming token type is aprimaryRefreshToken, for AiTM sign-ins immediately preceding the registration, or for the broker subsequently minting tokens for other resources such as Microsoft Graph.
False positive analysis
-
Unmanaged or never-patched Windows 10 22H2 hosts may legitimately present the
10.0.19045.2006build with a defaultDESKTOP-hostname. Validate against device inventory and known provisioning programs. - Authorized security assessments that register devices with this OS profile will match. Document the engagement and add scoped exceptions.
Response and remediation
-
If confirmed malicious, remove the registered device from Entra ID and revoke the user’s refresh tokens and primary refresh tokens. Remove the device BEFORE revoking sessions, because device-bound PRTs survive
revokeSignInSessions. - Disable the account or reset credentials per policy and review for additional persistence (attacker-registered MFA methods, added owners, app registrations, or service principal credentials).
-
Conduct historical analysis using
azure.correlation_idand the registering user to determine scope of access. - Tighten device registration and join controls via Conditional Access (restrict who can register/join devices and require MFA for registration).
Rule query
editdata_stream.dataset:"azure.auditlogs" and event.action:"Add device" and
azure.auditlogs.properties.target_resources.0.modified_properties.3.new_value:*10.0.19045.2006* and
azure.auditlogs.properties.target_resources.0.modified_properties.4.new_value:*DESKTOP-*
Framework: MITRE ATT&CKTM
-
Tactic:
- Name: Persistence
- ID: TA0003
- Reference URL: https://attack.mitre.org/tactics/TA0003/
-
Technique:
- Name: Account Manipulation
- ID: T1098
- Reference URL: https://attack.mitre.org/techniques/T1098/
-
Sub-technique:
- Name: Device Registration
- ID: T1098.005
- Reference URL: https://attack.mitre.org/techniques/T1098/005/