This is the stable version of HardeningKitty from the Windows Hardening Project by Michael Schneider. The stable version of HardeningKitty is signed with the code signing certificate of scip AG.
HardeningKitty supports hardening of a Windows system. The configuration of the system is retrieved and assessed using a finding list. In addition, the system can be hardened according to predefined values. HardeningKitty reads settings from the registry and uses other modules to read configurations outside the registry.
The script was developed for English systems. It is possible that in other languages the analysis is incorrect. Please create an issue if this occurs.
Run the script with administrative privileges to access machine settings. For the user settings it is better to execute them with a normal user account. Ideally, the user account is used for daily work.
Download HardeningKitty and copy it to the target system (script and lists). After that HardeningKitty can be imported and executed:
PS C:\> Import-Module Invoke-HardeningKitty.ps1
PS C:\> Invoke-HardeningKitty -EmojiSupport
=^._.^=
_( )/ HardeningKitty
[*] 5/28/2020 4:39:16 PM - Starting HardeningKitty
[*] 5/28/2020 4:39:16 PM - Getting machine information
[*] Hostname: w10
[*] Domain: WORKGROUP
...
[*] 5/28/2020 4:39:21 PM - Starting Category Account Policies
[😺] ID 1100, Account lockout duration, Result=30, Severity=Passed
[😺] ID 1101, Account lockout threshold, Result=5, Severity=Passed
[😺] ID 1102, Reset account lockout counter, Result=30, Severity=Passed
...
[*] 5/28/2020 4:39:23 PM - Starting Category Advanced Audit Policy Configuration
[😼] ID 1513, Kernel Object, Result=, Recommended=Success and Failure, Severity=Low
...
[*] 5/28/2020 4:39:24 PM - Starting Category System
[😿] ID 1614, Device Guard: Virtualization Based Security Status, Result=Not available, Recommended=2, Severity=Medium
...
[*] 5/28/2020 4:39:25 PM - Starting Category Windows Components
[🙀] ID 1708, BitLocker Drive Encryption: Volume status, Result=FullyDecrypted, Recommended=FullyEncrypted, Severity=High
...
[*] 5/28/2020 4:39:34 PM - HardeningKitty is done
HardeningKitty performs an audit, saves the results in a CSV file and creates a log file. The files are automatically named and receive a timestamp. Using the parameters ReportFile or LogFile, it is also possible to assign your own name and path.
Invoke-HardeningKitty -Mode Audit -Log -Report
HardeningKitty can be executed with a specific list defined by the parameter FileFindingList. If HardeningKitty is run several times on the same system, it may be useful to hide the machine information. The parameter SkipMachineInformation is used for this purpose.
Invoke-HardeningKitty -FileFindingList .\lists\finding_list_0x6d69636b_user.csv -SkipMachineInformation
HardeningKitty ready only the setting with the default list, and saves the results in a specific file
Invoke-HardeningKitty -Mode Config -Report -ReportFile C:\tmp\my_hardeningkitty_report.log
Backups are important. Really important. Therefore, HardeningKitty also has a function to retrieve the current configuration and save it in a form that can be easily restored. The Backup switch specifies that the file is written in form of a finding list and can thus be used for the HailMary mode. The name and path of the backup can be specified with the parameter BackupFile.
Invoke-HardeningKitty -Mode Config -Backup
Please test this function to see if it really works properly on the target system before making any serious changes. A Schrödinger's backup is dangerous.
The HailMary method is very powerful. It can be used to deploy a finding list on a system. All findings are set on this system as recommended in the list. With power comes responsibility. Please use this mode only if you know what you are doing. Be sure to have a backup of the system.
Invoke-HardeningKitty -Mode HailMary -Log -Report -FileFindingList .\lists\finding_list_0x6d69636b_machine.csv
Each Passed finding gives 4 points, a Low finding gives 2 points, a Medium finding gives 1 point and a High Finding gives 0 points.
The formula for the HardeningKitty Score is (Points achieved / Maximum points) * 5 + 1.
Score | Rating Casual | Rating Professional |
---|---|---|
6 | 😹 Excellent | Excellent |
5 | 😺 Well done | Good |
4 | 😼 Sufficient | Sufficient |
3 | 😿 You should do better | Insufficient |
2 | 🙀 Weak | Insufficient |
1 | 😾 Bogus | Insufficient |
ataumo build a web based interface for HardeningKitty. The tool can be used to create your own lists and provides additional information on the hardening settings. The source code is under AGPL license and there is a demo site.
HardeningKitty can be used to audit systems against the following baselines / benchmarks:
Name | System Version | Version |
---|---|---|
0x6d69636b (Machine) | 20H2, 21H1 | |
0x6d69636b (User) | 20H2, 21H1 | |
BSI SiSyPHuS Windows 10 hoher Schutzbedarf Domänenmitglied (Machine) | 1809 | 1.0 |
BSI SiSyPHuS Windows 10 hoher Schutzbedarf Domänenmitglied (User) | 1809 | 1.0 |
BSI SiSyPHuS Windows 10 normaler Schutzbedarf Domänenmitglied (Machine) | 1809 | 1.0 |
BSI SiSyPHuS Windows 10 normaler Schutzbedarf Domänenmitglied (User) | 1809 | 1.0 |
BSI SiSyPHuS Windows 10 normaler Schutzbedarf Einzelrechner (Machine) | 1809 | 1.0 |
BSI SiSyPHuS Windows 10 normaler Schutzbedarf Einzelrechner (User) | 1809 | 1.0 |
CIS Microsoft Windows 10 Enterprise (Machine) | 1809 | 1.6.1 |
CIS Microsoft Windows 10 Enterprise (User) | 1809 | 1.6.1 |
CIS Microsoft Windows 10 Enterprise (Machine) | 1903 | 1.7.1 |
CIS Microsoft Windows 10 Enterprise (User) | 1903 | 1.7.1 |
CIS Microsoft Windows 10 Enterprise (Machine) | 1909 | 1.8.1 |
CIS Microsoft Windows 10 Enterprise (User) | 1909 | 1.8.1 |
CIS Microsoft Windows 10 Enterprise (Machine) | 2004 | 1.9.1 |
CIS Microsoft Windows 10 Enterprise (User) | 2004 | 1.9.1 |
CIS Microsoft Windows 10 Enterprise (Machine) | 20H2 | 1.10.1 |
CIS Microsoft Windows 10 Enterprise (User) | 20H2 | 1.10.1 |
CIS Microsoft Windows Server 2012 R2 (Machine) | R2 | 2.4.0 |
CIS Microsoft Windows Server 2012 R2 (User) | R2 | 2.4.0 |
CIS Microsoft Windows Server 2016 (Machine) | 1607 | 1.2.0 |
CIS Microsoft Windows Server 2016 (User) | 1607 | 1.2.0 |
CIS Microsoft Windows Server 2019 (Machine) | 1809 | 1.1.0 |
CIS Microsoft Windows Server 2019 (User) | 1809 | 1.1.0 |
CIS Microsoft Windows Server 2019 (Machine) | 1809 | 1.2.0 |
CIS Microsoft Windows Server 2019 (User) | 1809 | 1.2.0 |
DoD Microsoft Windows 10 STIG (Machine) | 20H2 | v2r1 |
DoD Microsoft Windows 10 STIG (User) | 20H2 | v2r1 |
DoD Windows Server 2019 Domain Controller STIG (Machine) | 20H2 | v2r1 |
DoD Windows Server 2019 Domain Controller STIG (User) | 20H2 | v2r1 |
DoD Windows Server 2019 Member Server STIG (Machine) | 20H2 | v2r1 |
DoD Windows Server 2019 Member Server STIG (User) | 20H2 | v2r1 |
DoD Windows Defender Antivirus STIG | 20H2 | v2r1 |
DoD Windows Firewall STIG | 20H2 | v1r7 |
Microsoft Security baseline for Microsoft Edge | 87 | Final |
Microsoft Security baseline for Microsoft Edge | 88, 89, 90, 91 | Final |
Microsoft Security baseline for Microsoft Edge | 92 | Final |
Microsoft Security baseline for Windows 10 | 2004 | Final |
Microsoft Security baseline for Windows 10 | 20H2, 21H1 | Final |
Microsoft Security baseline for Windows Server (DC) | 2004 | Final |
Microsoft Security baseline for Windows Server (Member) | 2004 | Final |
Microsoft Security baseline for Windows Server (DC) | 20H2 | Final |
Microsoft Security baseline for Windows Server (Member) | 20H2 | Final |
Microsoft Security baseline for Office 365 ProPlus (Machine) | Sept 2019 | Final |
Microsoft Security baseline for Office 365 ProPlus (User) | Sept 2019 | Final |
Microsoft Security Baseline for Microsoft 365 Apps for enterprise (Machine) | v2104, v2106 | Final |
Microsoft Security Baseline for Microsoft 365 Apps for enterprise (User) | v2104, v2106 | Final |
Microsoft Windows Server TLS Settings | 1809 | 1.0 |
Microsoft Windows Server TLS Settings (Future Use with TLSv1.3) | 1903 | 1.0 |