Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

ทำไมและวิธี Disable SMB1 ใน Windows 11/10

ปัญหา Security ไม่ใหม่ แต่วิกฤต WannaCrypt Ransomware กระตุ้นให้ Disable SMB1 ด่วน Ransomware โจมตีช่องโหว่ SMB Service เพื่อแพร่ระบาด

SMB (Server Message Block) Protocol แชร์ไฟล์/เครื่องพิมพ์ ระหว่างคอมพิวเตอร์ มี 3 Version: SMBv1, SMBv2, SMBv3 Microsoft แนะนำ Disable SMB1 เพื่อความปลอดภัย สำคัญมากหลัง WannaCrypt/NotPetya

Disable SMB1 ใน Windows 11/10

ป้องกัน WannaCrypt: Disable SMB1 และ ติดตั้ง Patch จาก Microsoft ดูวิธี Disable SMB1 บน Windows 11/10/8/7

ปิด SMB1 ผ่าน Control Panel

Control Panel → Programs & Features → Turn Windows features on or off

ในรายการ หา SMB 1.0/CIFS File Sharing Support → ยกเลิกถูก → OK

ทำไมและวิธี Disable SMB1 ใน Windows 11/10

Restart คอมพิวเตอร์

เกี่ยวข้อง: วิธี Enable/Disable SMBv2 ใน Windows 10

Disable SMBv1 ด้วย PowerShell

PowerShell Admin รัน:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 0 –Force

ทำไมและวิธี Disable SMB1 ใน Windows 11/10

หากต้อง Disable SMBv2 & v3 ชั่วคราว:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 0 –Force

แนะนำ Disable SMBv1 เพราะเก่า ใช้เทคโนโลยีเกือบ 30 ปี

Microsoft กล่าว SMB1 ขาดการป้องกันสำคัญของ SMB ใหม่:

  1. Pre-authentication Integrity (SMB 3.1.1+) – ป้องกัน Downgrade Attacks
  2. Insecure Guest Auth Blocking (SMB 3.0+ on Windows 10+) – ป้องกัน MiTM
  3. Secure Dialect Negotiation (SMB 3.0, 3.02) – ป้องกัน Downgrade
  4. Better Message Signing (SMB 2.02+) – HMAC SHA-256 แทน MD5, AES-CMAC ใน SMB 3.0+ Performance ดีกว่า
  5. Encryption (SMB 3.0+) – ป้องกัน Inspection/MiTM SMB 3.1.1 Encryption Performance ดีกว่า Signing

หากต้อง Enable ภายหลัง (ไม่แนะนำ SMB1):

Enable SMB1:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1 -Force

Enable SMB2 & SMB3:

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 1 –Force

Disable SMB1 ผ่าน Windows Registry

แก้ Registry: รัน regedit ไป:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

ขวา DWORD SMB1 ควรไม่มีหรือ = 0

  • 0 = Disabled
  • 1 = Enabled

รายละเอียดเพิ่มเติม Disable SMB Protocols บน SMB Server/Client ดูที่ Microsoft

อ่านต่อ: วิธี Disable NTLM Authentication ใน Windows Domain

ทำไมและวิธี Disable SMB1 ใน Windows 11/10