Showing posts with label Hardening. Show all posts
Showing posts with label Hardening. Show all posts

Monday, February 9, 2026

Windows 10 hardening by HardeningKitty - CIS Benchmarks

 






Reference:

BEST WINDOWS HARDENING TOOLS | ConfigureDefender, HotCakeX, HardeningKitty - Setup Guides
Print Friendly and PDF
Share/Bookmark

自動化工具與指令碼 - 加固與稽核

  • 如果您要加固 Windows 伺服器:首選 PowerSTIG (免費/開源) 或 ConfigOS (商業)。
  • 如果您要進行掃描與稽核:首選 DISA SCC 或 OpenSCAP。
  • 如果您在 Azure 雲端:直接使用 Microsoft Defender for Cloud,它內建了 NIST 與 STIG 的自動化監控儀表板。
核心自動化方案
  • 針對 STIG/NIST:強烈建議使用 PowerSTIG (GitHub)。這是 Microsoft 工程師開發的 PowerShell 模組,能將複雜的 STIG 文件直接轉換為可執行的 DSC 代碼,非常適合大規模部署。
  • 針對 CIS:可利用 Ansible Lockdown。它提供現成的 Playbooks,能自動將 Windows 或 Linux 加固至符合 CIS Benchmark 的狀態。
  • 針對 PCI DSS/HIPAA:這兩者多為「合規框架」。建議使用 Microsoft Purview 合規性管理員,它會自動掃描您的 M365 與 Azure 設定,並根據 PCI/HIPAA 要求提供一鍵式的改善建議。

如果您追求最高安全性(政府級),請選擇 DISA STIG + PowerSTIG;如果您追求業界通用性(商用級),請選擇 CIS + Ansible。



中國的標準更強調「合規性」與「管理+技術」的雙重考核。
等級保護 2.0 (MLPS 2.0)

  • 阿里雲加固基準:各大雲平台提供符合 MLPS 2.0 的自動化加固指南,例如「ACK 等保加固」會自動執行密碼複雜度、限制 root 權限、審計開啟等操作。
  • OpenSCAP (中國適配):在國產作業系統(如 Kylin 麒麟、UnionTech UOS)中,常用 OpenSCAP 載入針對等級保護或行業標準的 XML 設定檔來進行自動化加固。

中國標準 (GB/T)
對應國際/美國標準
加固範圍
GB/T 22239 (等保 2.0)
NIST SP 800-53
系統、網絡、雲、IoT 等全維度加固
GB/T 18336 (CC)
ISO 15408 / Common Criteria
產品安全性設計認證
GB/T 35273 (隱私規範)
GDPR / NIST Privacy Framework
個人敏感數據保護與加密

Print Friendly and PDF
Share/Bookmark

Security Hardening Standard - 安全性加固標準對比摘要

 
標準名稱
適用對象
優點
缺點
Microsoft Baseline
一般企業
最佳的應用程式相容性,與 Windows 更新同步,易於部署。
安全性相對較寬鬆,僅涵蓋微軟產品。
CIS Benchmarks
金融、醫療、合規企業
業界公認中立且細緻,提供 L1/L2 分層,平衡安全與營運。
規則較多,可能需要針對特定業務軟體進行排除設定。
DISA STIG
政府、軍方、國防承包商
極致的安全性,針對國家級攻擊設計,強制執行高強度稽核。
設定極其繁雜,極易造成系統功能失效或應用程式崩潰。
NIST SP 800-53
美國聯邦機構、FedRAMP
全球最權威的安全性控制框架,邏輯嚴密,適合大型合規架構。
主要是「準則」而非「設定值」,需轉譯為具體指令。
PCI DSS
支付卡產業、電商、零售
專為保護持卡人數據設計,對防火牆與數據加密有明確要求。
範疇較窄(僅限支付環境),每年需進行嚴格的合規審查。
HIPAA
醫療保健、健康保險業
核心在於保護受保護健康資訊 (PHI) 的隱私與完整性。
規範較為籠統(如「合理防護」),需要配合技術標準實施。
USGCB
美國政府低風險設備
曾是聯邦桌面設備的統一基準,由 NIST、DISA 及微軟協作。
已逐漸被 DISA STIG 取代,部分較新版本系統已停止更新。


Print Friendly and PDF
Share/Bookmark

Microsoft Defender Hardening for Windows 11

Microsoft Defender Hardening:

Home:
PS C:\Windows\system32> Set-MpPreference -SignatureUpdateInterval 1

PS C:\Windows\system32> Set-MpPreference -CheckForSignaturesBeforeRunningScan 1

PS C:\Windows\system32> Set-MpPreference -MAPSReporting Advanced -SubmitSamplesConsent SendSafeSamples -CloudBlockLevel High -CloudExtendedTimeout 50
PS C:\Windows\system32> Set-MpPreference -PUAProtection Enabled
PS C:\Windows\system32> Set-MpPreference -EnableNetworkProtection Enabled


MAPS、Cloud Protection 和 PUA 在家用版上是完全有效

Pro/Enterprise:
Able to add ASR Rule:
系統限制:ASR 規則在 Windows 10/11 專業版 (Pro) 上可部分運行,但官方正式支援為 企業版 (Enterprise)。
前置要求:必須將 Microsoft Defender 設為主要防毒軟體,且開啟即時防護與雲端傳送防護。

Reference:

Print Friendly and PDF
Share/Bookmark

Monday, October 27, 2025

Windows 10 using HardeningKitty to harden it

When you click Windows update on Windows 10 you will receive the following message:


As a short term solution for end of support Windows 10, using HardeningKitty to harden it will reduce the risk.












Reference:

https://www.youtube.com/watch?v=SoceWcFh4z0



Print Friendly and PDF
Share/Bookmark

Thursday, November 7, 2024

Windows 11 hardening by hotcakex.github.io



Print Friendly and PDF
Share/Bookmark

Saturday, December 16, 2023

A very good security feature on Fortinet Fortigate you should enable to protect your firewall against vulnerability

Virtual patching on the local-in management interface

Virtual patching is a method of mitigating vulnerability exploits by using the FortiGate's IPS engine to block known vulnerabilities. Virtual patching can be applied to traffic destined to the FortiGate by applying the FMWP (Firmware Virtual Patch) database to the local-in interface using local-in policies. Attacks geared towards GUI and SSH management access, for example, can be mitigated using the FMWP database pushed from FortiGuard, thereby virtually patching these vulnerabilities.


Print Friendly and PDF
Share/Bookmark

Sunday, April 9, 2023

Windows 10 Hardening and audit tool (HardeningKitty)

 

You can use HardeningKitty to check your configuration and also it will provide a scoring for your reference:

HardeningKitty and Windows 10 Hardening

https://github.com/0x6d69636b/windows_hardening

 

There are TWO items you should disable : PowerShell v2 and SMB v1

Disable PowerShell v2

Disable-WindowsOptionalFeature -Online -FeatureName MicrosoftWindowsPowerShellV2Root

https://www.thewindowsclub.com/disable-powershell-v2-windows

 

 

Disable SMB v1

Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3?tabs=server

 

The following website provide you some advice configuration about hardening and also you can import some attack surface reduction rules:

Configure Attack Surface Reduction rules

https://www.cyber.gov.au/acsc/view-all-content/publications/hardening-microsoft-windows-10-version-21h1-workstations

 

Print Friendly and PDF
Share/Bookmark