{
  "schemaVersion": "1.0",
  "code": "53001",
  "name": "DeviceNotDomainJoined",
  "title": "AADSTS53001: Device not domain joined",
  "url": "https://brambrinkmeier.com/entra/aadsts/53001/",
  "alternates": {
    "markdown": "https://brambrinkmeier.com/entra/aadsts/53001.md",
    "json": "https://brambrinkmeier.com/api/aadsts/53001.json",
    "html": "https://brambrinkmeier.com/entra/aadsts/53001/"
  },
  "description": "AADSTS53001: Conditional Access requires a hybrid joined device and this one isn't. From an unknown IP, check whether a valid password is in use. KQL.",
  "summary": "AADSTS53001 means a Conditional Access policy requires a domain-joined (hybrid joined) device and the device signing in isn't one. The password was already accepted. Usually it is a user on a personal or cloud-only device. From an unknown device on an unfamiliar IP, it means a working credential is being used outside your estate.",
  "inMicrosoftReference": true,
  "unlistedChecked": null,
  "meaningText": "Microsoft's description:\n\n> **DeviceNotDomainJoined**: Conditional Access policy requires a domain joined device, and the device isn't domain joined. Have the user use a domain joined device.\n\nMost likely (interpretation) this is the Conditional Access grant control that requires a hybrid joined device (on-premises domain joined and registered in Entra ID). Conditional Access only runs after the first factor succeeds, so the credential was accepted before this block. `ConditionalAccessStatus` on these rows is `failure`.",
  "sections": [
    {
      "heading": "What does AADSTS53001 mean?",
      "text": "Microsoft's description:\n\n> **DeviceNotDomainJoined**: Conditional Access policy requires a domain joined device, and the device isn't domain joined. Have the user use a domain joined device.\n\nMost likely (interpretation) this is the Conditional Access grant control that requires a hybrid joined device (on-premises domain joined and registered in Entra ID). Conditional Access only runs after the first factor succeeds, so the credential was accepted before this block. `ConditionalAccessStatus` on these rows is `failure`."
    },
    {
      "heading": "Is it an attack?",
      "text": "Usually not. Typical causes are a user on a home PC or phone, an Entra-joined (cloud-only) laptop hitting a policy written for hybrid-joined machines, or a hybrid join that hasn't finished syncing.\n\nThe security reading is the same as 53000 (non-compliant device): the code proves **a working credential was used from a device that isn't one of yours.**\n\n| Pattern | Likely meaning |\n|---|---|\n| Known user, Entra-joined corporate device | Benign. Policy expects hybrid join; device is cloud-joined. |\n| New device, hybrid join pending | Benign. Wait for sync or check the join state. |\n| Unregistered device (empty device ID), unfamiliar IP or country | **Investigate.** Someone has the password and is using it off-estate. |\n| 53001 after a 50126 run from the same IP | **The spray found a correct password.** The device policy is the only thing that stopped it. |\n\nA device-based grant is a strong control against stolen credentials and against adversary-in-the-middle phishing, because the attacker's machine is not joined to your domain. When a 53001 row shows `AuthenticationRequirement` as `multiFactorAuthentication` and the MFA step as satisfied, the password and MFA layers were already passed and the device requirement was the only layer that held. For a legitimate user on a personal device that is friction; for an unknown device on an unfamiliar IP it means the earlier layers didn't stop whoever holds the credential."
    },
    {
      "heading": "How do I find it in my logs (KQL)?",
      "text": "53001 from devices that aren't registered in Entra at all:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"53001\"\n| extend DeviceId   = tostring(DeviceDetail.deviceId),\n         TrustType  = tostring(DeviceDetail.trustType),\n         OS         = tostring(DeviceDetail.operatingSystem),\n         Country    = tostring(LocationDetails.countryOrRegion)\n| summarize Attempts = count(),\n            IPs = make_set(IPAddress, 10),\n            Countries = make_set(Country, 5),\n            Apps = make_set(AppDisplayName, 5),\n            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)\n          by UserPrincipalName, DeviceId, TrustType, OS\n| extend Unregistered = isempty(DeviceId)\n| sort by Unregistered desc, Attempts desc\n```\n\nDid the same IP fail passwords first? That pattern means a spray succeeded:\n\n```kusto\nlet deviceBlocked =\n    SigninLogs\n    | where TimeGenerated > ago(1d)\n    | where ResultType in (\"53001\", \"53000\")\n    | distinct IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where IPAddress in (deviceBlocked)\n| where ResultType in (\"50126\", \"50053\", \"53000\", \"53001\", \"0\")\n| summarize Users = dcount(UserPrincipalName),\n            Results = make_set(ResultType)\n          by IPAddress\n| where Users > 1\n| sort by Users desc\n```\n\nFor `AADNonInteractiveUserSignInLogs`, `DeviceDetail` and `LocationDetails` are **string** columns: use `parse_json(DeviceDetail).trustType`. The property names used here follow the Microsoft Graph `signIn` device detail object; check them against one row in your own workspace before building a rule on them."
    },
    {
      "heading": "How does Conditional Access affect it?",
      "text": "- 53001 is produced **by** Conditional Access. The **Conditional Access** tab on the sign-in shows which policy blocked it.\n- If your fleet is moving to Entra-joined devices, a hybrid-join-only policy will produce 53001 for legitimate corporate devices. Combining \"hybrid joined\" with \"compliant device\" as alternatives is the common fix.\n- As with 53000, pairing the device control with MFA as \"require one of\" lets a phished MFA result through. Keep a device requirement on its own for admin roles."
    },
    {
      "heading": "How do I fix AADSTS53001?",
      "text": "**For the user:** sign in from your corporate, domain-joined computer. If you are already on one, ask IT to check that its join to Entra ID has completed.\n\n**For admins:**\n1. Open the sign-in, note the policy and the device. An empty device ID means an unregistered device.\n2. If the device is unknown and the IP unfamiliar, treat the password as compromised: reset it, revoke sessions, and check the same IP for other users.\n3. If it is a legitimate cloud-joined device, adjust the policy to accept compliant devices too, rather than excluding the user."
    }
  ],
  "microsoftWording": {
    "text": "**DeviceNotDomainJoined**: Conditional Access policy requires a domain joined device, and the device isn't domain joined. Have the user use a domain joined device.",
    "source": "Microsoft's error code reference, as quoted on the page",
    "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes"
  },
  "securityReading": {
    "category": {
      "id": "device",
      "label": "Devices"
    },
    "kind": {
      "id": "failure",
      "label": "Failure"
    },
    "attackSignal": {
      "level": "medium",
      "label": "Medium: worth a look in context"
    },
    "mitre": [
      {
        "id": "T1078.004",
        "name": "Valid Accounts: Cloud Accounts",
        "url": "https://attack.mitre.org/techniques/T1078/004/"
      }
    ],
    "tables": [
      "SigninLogs",
      "AADNonInteractiveUserSignInLogs"
    ],
    "isItAnAttack": "Usually not. Typical causes are a user on a home PC or phone, an Entra-joined (cloud-only) laptop hitting a policy written for hybrid-joined machines, or a hybrid join that hasn't finished syncing.\n\nThe security reading is the same as 53000 (non-compliant device): the code proves **a working credential was used from a device that isn't one of yours.**\n\n| Pattern | Likely meaning |\n|---|---|\n| Known user, Entra-joined corporate device | Benign. Policy expects hybrid join; device is cloud-joined. |\n| New device, hybrid join pending | Benign. Wait for sync or check the join state. |\n| Unregistered device (empty device ID), unfamiliar IP or country | **Investigate.** Someone has the password and is using it off-estate. |\n| 53001 after a 50126 run from the same IP | **The spray found a correct password.** The device policy is the only thing that stopped it. |\n\nA device-based grant is a strong control against stolen credentials and against adversary-in-the-middle phishing, because the attacker's machine is not joined to your domain. When a 53001 row shows `AuthenticationRequirement` as `multiFactorAuthentication` and the MFA step as satisfied, the password and MFA layers were already passed and the device requirement was the only layer that held. For a legitimate user on a personal device that is friction; for an unknown device on an unfamiliar IP it means the earlier layers didn't stop whoever holds the credential.",
    "conditionalAccess": {
      "heading": "How does Conditional Access affect it?",
      "text": "- 53001 is produced **by** Conditional Access. The **Conditional Access** tab on the sign-in shows which policy blocked it.\n- If your fleet is moving to Entra-joined devices, a hybrid-join-only policy will produce 53001 for legitimate corporate devices. Combining \"hybrid joined\" with \"compliant device\" as alternatives is the common fix.\n- As with 53000, pairing the device control with MFA as \"require one of\" lets a phished MFA result through. Keep a device requirement on its own for admin roles."
    }
  },
  "kql": [
    {
      "title": null,
      "leadIn": "53001 from devices that aren't registered in Entra at all:",
      "query": "SigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"53001\"\n| extend DeviceId   = tostring(DeviceDetail.deviceId),\n         TrustType  = tostring(DeviceDetail.trustType),\n         OS         = tostring(DeviceDetail.operatingSystem),\n         Country    = tostring(LocationDetails.countryOrRegion)\n| summarize Attempts = count(),\n            IPs = make_set(IPAddress, 10),\n            Countries = make_set(Country, 5),\n            Apps = make_set(AppDisplayName, 5),\n            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)\n          by UserPrincipalName, DeviceId, TrustType, OS\n| extend Unregistered = isempty(DeviceId)\n| sort by Unregistered desc, Attempts desc"
    },
    {
      "title": null,
      "leadIn": "Did the same IP fail passwords first? That pattern means a spray succeeded:",
      "query": "let deviceBlocked =\n    SigninLogs\n    | where TimeGenerated > ago(1d)\n    | where ResultType in (\"53001\", \"53000\")\n    | distinct IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where IPAddress in (deviceBlocked)\n| where ResultType in (\"50126\", \"50053\", \"53000\", \"53001\", \"0\")\n| summarize Users = dcount(UserPrincipalName),\n            Results = make_set(ResultType)\n          by IPAddress\n| where Users > 1\n| sort by Users desc"
    }
  ],
  "kqlSectionText": "53001 from devices that aren't registered in Entra at all:\n\n```kusto\nSigninLogs\n| where TimeGenerated > ago(7d)\n| where ResultType == \"53001\"\n| extend DeviceId   = tostring(DeviceDetail.deviceId),\n         TrustType  = tostring(DeviceDetail.trustType),\n         OS         = tostring(DeviceDetail.operatingSystem),\n         Country    = tostring(LocationDetails.countryOrRegion)\n| summarize Attempts = count(),\n            IPs = make_set(IPAddress, 10),\n            Countries = make_set(Country, 5),\n            Apps = make_set(AppDisplayName, 5),\n            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)\n          by UserPrincipalName, DeviceId, TrustType, OS\n| extend Unregistered = isempty(DeviceId)\n| sort by Unregistered desc, Attempts desc\n```\n\nDid the same IP fail passwords first? That pattern means a spray succeeded:\n\n```kusto\nlet deviceBlocked =\n    SigninLogs\n    | where TimeGenerated > ago(1d)\n    | where ResultType in (\"53001\", \"53000\")\n    | distinct IPAddress;\nSigninLogs\n| where TimeGenerated > ago(1d)\n| where IPAddress in (deviceBlocked)\n| where ResultType in (\"50126\", \"50053\", \"53000\", \"53001\", \"0\")\n| summarize Users = dcount(UserPrincipalName),\n            Results = make_set(ResultType)\n          by IPAddress\n| where Users > 1\n| sort by Users desc\n```\n\nFor `AADNonInteractiveUserSignInLogs`, `DeviceDetail` and `LocationDetails` are **string** columns: use `parse_json(DeviceDetail).trustType`. The property names used here follow the Microsoft Graph `signIn` device detail object; check them against one row in your own workspace before building a rule on them.",
  "fix": {
    "short": "User: sign in from your corporate, domain-joined computer. If you're already on one, ask IT to check its join to Entra ID has completed. Admin: for a legitimate cloud-joined device, let the policy accept compliant devices too. Unknown device and unfamiliar IP: reset the password, revoke sessions.",
    "steps": "**For the user:** sign in from your corporate, domain-joined computer. If you are already on one, ask IT to check that its join to Entra ID has completed.\n\n**For admins:**\n1. Open the sign-in, note the policy and the device. An empty device ID means an unregistered device.\n2. If the device is unknown and the IP unfamiliar, treat the password as compromised: reset it, revoke sessions, and check the same IP for other users.\n3. If it is a legitimate cloud-joined device, adjust the policy to accept compliant devices too, rather than excluding the user."
  },
  "labReproduced": null,
  "labSectionText": null,
  "labRuns": [],
  "verification": "documentation",
  "related": [
    "53000",
    "50097",
    "53003",
    "135011",
    "50155",
    "530003",
    "530004",
    "530031"
  ],
  "coveredBy": [
    {
      "title": "How to detect password spraying in Microsoft Entra ID (with KQL)",
      "url": "https://brambrinkmeier.com/guides/detect-password-spray-entra-id/"
    }
  ],
  "sources": [
    {
      "title": "Microsoft Entra authentication and authorization error codes",
      "url": "https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes"
    },
    {
      "title": "Troubleshoot sign-in problems with Conditional Access",
      "url": "https://learn.microsoft.com/en-us/entra/identity/conditional-access/troubleshoot-conditional-access"
    },
    {
      "title": "Sign-in log activity details",
      "url": "https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-sign-in-log-activity-details"
    },
    {
      "title": "signIn resource type (Microsoft Graph)",
      "url": "https://learn.microsoft.com/en-us/graph/api/resources/signin"
    },
    {
      "title": "SigninLogs table reference (Azure Monitor)",
      "url": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/signinlogs"
    }
  ],
  "published": null,
  "lastUpdated": "2026-10-11",
  "lastVerified": null,
  "license": "CC BY 4.0",
  "licenseUrl": "https://creativecommons.org/licenses/by/4.0/",
  "licenseNote": "CC BY 4.0 covers the author's own text and classification fields. Quoted Microsoft error wording belongs to Microsoft, is quoted with its source and can change.",
  "attribution": "Bram Brinkmeier, \"AADSTS53001: Device not domain joined\", https://brambrinkmeier.com/entra/aadsts/53001/ (CC BY 4.0)",
  "microsoftErrorLookup": "https://login.microsoftonline.com/error?code=53001"
}
