| 端口 | 服務/協議 | 主要風險 | 建議 |
|---|---|---|---|
| 135 | RPC/DCOM (TCP) | 「衝擊波」蠕蟲利用 RPC 漏洞遠程執行代碼 | 非域環境強烈建議關閉 |
| 139 | NetBIOS Session (TCP) | 文件/印表機共享,易遭掃描爆破、IPC$ 空連接洩露資訊 | 不需共享時關閉 |
| 445 | SMB over TCP (Direct Hosting) | 永恆之藍(MS17-010)勒索病毒傳播通道,硬碟被遠程加密/格式化 | 除非必須跨子網 SMB,否則關閉 |
dcomcnfg → 開啟「元件服務」


regedit 開啟登錄編輯器HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters

netstat -an | findstr "135 139 445" 確認端口狀態為 LISTENING 消失