Bật/tắt Credential Guard trong Windows 10: Windows Credential Guard dùng bảo mật dựa trên ảo hóa (virtualization-based security) để tách biệt bí mật (secrets) – chỉ phần mềm hệ thống đặc quyền mới truy cập được. Truy cập trái phép các bí mật này dẫn đến tấn công đánh cắp thông tin đăng nhập như Pass-the-Hash hoặc Pass-The-Ticket. Credential Guard bảo vệ hash mật khẩu NTLM, Kerberos Ticket Granting Tickets và thông tin đăng nhập miền do ứng dụng lưu trữ.
Khi bật Windows Credential Guard, bạn được:
- Bảo mật phần cứng (Hardware security)
- Bảo mật dựa trên ảo hóa (Virtualization-based security)
- Bảo vệ tốt hơn chống lại các mối đe dọa bền bỉ nâng cao (Advanced persistent threats)
Hãy bật tính năng này cho hệ thống của bạn. Xem hướng dẫn chi tiết bên dưới.
Bật hoặc tắt Credential Guard trong Windows 10
Lưu ý: Nên tạo điểm khôi phục hệ thống trước khi thực hiện.
Phương pháp 1: Bật/tắt Credential Guard qua Group Policy Editor
Lưu ý: Chỉ hoạt động trên Windows Pro, Education, Enterprise. Người dùng Windows Home bỏ qua phương pháp này.
- Nhấn Win + R, gõ
gpedit.mscnhấn Enter mở Group Policy Editor. - Đến đường dẫn:
Computer Configuration > Administrative Templates > System > Device Guard
- Chọn Device Guard, phải bên nhấp đúp “Turn On Virtualization Based Security”.
- Chọn Enabled (Bật).
- Trong Select Platform Security Level, chọn Secure Boot hoặc Secure Boot and DMA Protection.
- Trong Credential Guard Configuration, chọn Enabled with UEFI lock. Nếu muốn tắt Credential Guard từ xa sau này, chọn Enabled without lock.
- Nhấn Apply, OK.
- Khởi động lại máy.
Phương pháp 2: Bật/tắt Credential Guard qua Registry Editor
Credential Guard dùng tính năng ảo hóa – phải bật trước từ Windows Features trước khi dùng Registry. Chỉ dùng một trong các cách dưới để bật tính năng ảo hóa.
Cách 1: Thêm tính năng ảo hóa qua Programs and Features
- Nhấn Win + R, gõ
appwiz.cplnhấn Enter mở Programs and Features. - Trái chọn “Turn Windows Features on or off”.
- Mở rộng Hyper-V → Hyper-V Platform.
- Tích Hyper-V Hypervisor.
- Kéo xuống, tích Isolated User Mode, nhấn OK.
Cách 2: Thêm tính năng ảo hóa cho offline image bằng DISM
- Nhấn Win + X, chọn Command Prompt (Admin).
- Thêm Hyper-V Hypervisor:
dism /image:<tên_file_WIM> /Enable-Feature /FeatureName:Microsoft-Hyper-V-Hypervisor /all HOẶC dism /Online /Enable-Feature:Microsoft-Hyper-V /All
- Thêm Isolated User Mode:
dism /image:<tên_file_WIM> /Enable-Feature /FeatureName:IsolatedUserMode HOẶC dism /Online /Enable-Feature /FeatureName:IsolatedUserMode
- Đóng Command Prompt khi xong.
Bật/tắt Credential Guard trong Registry
- Nhấn Win + R, gõ
regeditnhấn Enter mở Registry Editor. - Đến khóa:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceGuard
- Nhấp chuột phải DeviceGuard, chọn New > DWORD (32-bit) Value, đặt tên EnableVirtualizationBasedSecurity.
- Nhấp đúp EnableVirtualizationBasedSecurity, đổi giá trị:
- Bật Virtualization-based Security: 1
- Tắt Virtualization-based Security: 0
- Tạo DWORD mới RequirePlatformSecurityFeatures.
- Nhấp đúp RequirePlatformSecurityFeatures, đổi giá trị:
- 1 = Chỉ dùng Secure Boot
- 3 = Dùng Secure Boot và DMA protection
- Đến khóa:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA
- Tạo DWORD LsaCfgFlags.
- Nhấp đúp LsaCfgFlags, đổi giá trị:
- Tắt Credential Guard: 0
- Bật Credential Guard với UEFI lock: 1
- Bật Credential Guard không lock: 2
- Đóng Registry Editor.
Tắt Credential Guard trong Windows 10
Nếu Credential Guard được bật không có UEFI Lock, bạn có thể tắt bằng công cụ Device Guard and Credential Guard hardware readiness tool hoặc cách sau:
- Mở Registry Editor (Win + R →
regedit). - Xóa các khóa registry sau:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA\LsaCfgFlags HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\EnableVirtualizationBasedSecurity HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\RequirePlatformSecurityFeatures
- Xóa biến EFI của Windows Credential Guard bằng
bcdedit. Mở Command Prompt (Admin) (Win + X). - Chạy lần lượt các lệnh:
mountvol X: /s copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi" bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215} bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X: mountvol X: /d - Đóng Command Prompt, khởi động lại máy.
- Chấp nhận lời nhắc để tắt Windows Credential Guard.
Bài viết liên quan:
- Cho phép hoặc ngăn chặn Theme Windows 10 thay đổi biểu tượng Desktop
- Bật thông báo trạng thái chi tiết (Verbose) trong Windows 10
- Bật hoặc tắt Developer Mode trong Windows 10
- Tắt giảm chất lượng JPEG hình nền Desktop trong Windows 10
Bạn đã học thành công cách bật hoặc tắt Credential Guard trong Windows 10. Thắc mắc hãy bình luận bên dưới.