Chuyển đến nội dung
Skillpedia
Bảo mật35k · #8092

implementing-passwordless-auth-with-microsoft-entra

Skill này làm gì

Công cụ này giúp thiết lập hệ thống để bạn không cần dùng mật khẩu nữa. Thay vào đó, bạn sẽ dùng các phương thức an toàn hơn như khóa bảo mật vật lý, nhận diện khuôn mặt hoặc vân tay (Windows Hello), hoặc ứng dụng Microsoft Authenticator.

Khi nào nên dùng

  • ✓Khi bạn muốn loại bỏ rủi ro mật khẩu bị đánh cắp.
  • ✓Khi công ty cần một phương thức đăng nhập an toàn hơn trước các cuộc tấn công.
  • ✓Khi triển khai khóa bảo mật mới hoặc các phương thức đăng nhập hiện đại.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-passwordless-auth-with-microsoft-entra/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-passwordless-auth-with-microsoft-entra/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy thiết lập đăng nhập không cần mật khẩu cho tất cả người dùng bằng khóa FIDO2 và ứng dụng Microsoft Authenticator.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Trước tiên, bạn bật các phương thức đăng nhập không cần mật khẩu trong hệ thống quản lý của Microsoft. Sau đó, bạn tạo quy tắc để bảo đảm chỉ những phương thức an toàn này được dùng để truy cập ứng dụng và dữ liệu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Implementing Passwordless Auth with Microsoft Entra

When to Use

  • Organization wants to eliminate password-based attacks (phishing, credential stuffing, brute force)
  • Regulatory or internal mandate requires phishing-resistant MFA (Executive Order 14028, CISA guidance)
  • Deploying FIDO2 security keys or Windows Hello for Business across the enterprise
  • Migrating from legacy MFA (SMS, phone call) to phishing-resistant authentication methods
  • Implementing passkey support for hybrid or cloud-joined Windows devices
  • Reducing helpdesk costs from password reset requests

Do not use for environments that cannot support modern authentication protocols; legacy applications using NTLM or basic authentication must be migrated first.

Prerequisites

  • Microsoft Entra ID P1 or P2 license (Azure AD Premium)
  • Windows 10/11 22H2+ for Windows Hello for Business deployment
  • FIDO2-compliant security keys (YubiKey 5 Series, Feitian BioPass, Google Titan)
  • Microsoft Authenticator app 6.8+ for passkey support on iOS 16+/Android 14+
  • Hybrid Azure AD join or Azure AD join configured for Windows devices
  • Conditional Access policies configured for authentication strength

Workflow

Step 1: Configure Authentication Methods Policy

Enable passwordless authentication methods in Microsoft Entra:

# Connect to Microsoft Graph
Connect-MgGraph -Scopes "Policy.ReadWrite.AuthenticationMethod", "User.ReadWrite.All"

# Enable FIDO2 Security Key authentication method
$fido2Policy = @{
    "@odata.type" = "#microsoft.graph.fido2AuthenticationMethodConfiguration"
    state = "enabled"
    isAttestationEnforced = $true
    isSelfServiceRegistrationAllowed = $true
    keyRestrictions = @{
        isEnforced = $true
        enforcementType = "allow"
        aaGuids = @(
            "cb69481e-8ff7-4039-93ec-0a2729a154a8",  # YubiKey 5 Series
            "ee882879-721c-4913-9775-3dfcce97072a",  # YubiKey 5 NFC
            "fa2b99dc-9e39-4257-8f92-4a30d23c4118",  # YubiKey 5C NFC
            "2fc0579f-8113-47ea-b116-bb5a8db9202a",  # YubiKey Bio
            "73bb0cd4-e502-49b8-9c6f-b59445bf720b"   # Google Titan
        )
    }
    includeTargets = @(
        @{
            targetType = "group"
            id = "all_users"  # Or specific security group ID
        }
    )
}
Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration `
    -AuthenticationMethodConfigurationId "fido2" `
    -BodyParameter $fido2Policy

# Enable Microsoft Authenticator with passkey support
$authenticatorPolicy = @{
    "@odata.type" = "#microsoft.graph.microsoftAuthenticatorAuthenticationMethodConfiguration"
    state = "enabled"
    featureSettings = @{
        displayAppInformationRequiredState = @{
            state = "enabled"
            includeTarget = @{
                targetType = "group"
                id = "all_users"
            }
        }
        displayLocationInformationRequiredState = @{
            state = "enabled"
            includeTarget = @{
                targetType = "group"
                id = "all_users"
            }
        }
        companionAppAllowedState = @{
            state = "enabled"
        }
    }
    includeTargets = @(
        @{
            targetType = "group"
            id = "all_users"
            authenticationMode = "any"
        }
    )
}
Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration `
    -AuthenticationMethodConfigurationId "microsoftAuthenticator" `
    -BodyParameter $authenticatorPolicy

# Enable Windows Hello for Business
$whfbPolicy = @{
    "@odata.type" = "#microsoft.graph.windowsHelloForBusinessAuthenticationMethodConfiguration"
    state = "enabled"
    pinMinimumLength = 6
    pinMaximumLength = 127
    pinLowercaseCharactersUsage = "allowed"
    pinUppercaseCharactersUsage = "allowed"
    pinSpecialCharactersUsage = "allowed"
    securityKeyForSignIn = "enabled"
    includeTargets = @(
        @{
            targetType = "group"
            id = "all_users"
        }
    )
}
Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration `
    -AuthenticationMethodConfigurationId "windowsHelloForBusiness" `
    -BodyParameter $whfbPolicy

Write-Host "Passwordless authentication methods enabled successfully"

Step 2: Configure Authentication Strength Conditional Access

Create Conditional Access policies requiring phishing-resistant authentication:


…
Câu hỏi thường gặp

Vì sao không dùng mật khẩu?

Mật khẩu có thể dễ bị đánh cắp qua lừa đảo hoặc các cuộc tấn công khác, nên đăng nhập không cần mật khẩu an toàn hơn nhiều.

Những phương thức không cần mật khẩu nào được hỗ trợ?

Khóa bảo mật FIDO2 (như YubiKey), Windows Hello for Business (nhận diện khuôn mặt, vân tay hoặc mã PIN), và ứng dụng Microsoft Authenticator với passkeys.

Tôi có cần giấy phép đặc biệt không?

Có. Thường cần giấy phép Microsoft Entra ID P1 hoặc P2 (trước đây là Azure AD Premium).

Chi tiết

Mô tả gốc của tác giả

Implements passwordless authentication using Microsoft Entra ID with FIDO2 security keys, Windows Hello for Business, Microsoft Authenticator passkeys, and certificate-based authentication to eliminate password-based attacks. Use when deploying passwordless sign-in, configuring FIDO2 passkeys, enforcing phishing-resistant MFA, or setting Microsoft Entra authentication method policies. '

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#8092
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự