Listvero
HardeningKitty Review: Windows Hardening Audits in the Domain — HardeningKitty review for Windows domain administrators

Updated · 8 min read

HardeningKitty Review: Windows Hardening Audits in the Domain

HardeningKitty checks registry and policy settings against hardening guides—fast evidence before CIS benchmarks on member servers.

scipag/HardeningKitty · BSD-3-Clause

What it does

HardeningKitty from scipag/HardeningKitty runs PowerShell checks against published hardening catalogs.

Run it on domain-joined servers after suspect GPO changes or before audits.

Findings are point-in-time—schedule alongside PingCastle for structure versus configuration.

Requirements and permissions needed in an AD domain

PowerShell 5.1+; Administrator rights on the machine under test for complete results.

Corporate Active Directory forests are rarely homogeneous. Acquisitions bring legacy trusts, conflicting GPO precedence, and service accounts that outlast the vendors who created them. Before any assessment or automation tool touches production, document the target naming contexts, site topology, and which domain controllers are writable for your region. Change advisory boards appreciate a one-page scope: forest name, OU list, maintenance window, and rollback contacts.

Tiered administration matters when you run security utilities. Domain controllers and certificate authorities sit in tier zero; jump servers for administration sit in tier one; general member servers and workstations sit lower. Tools that query LDAP should execute from tier-one privileged access workstations with credential guard enabled where possible. Avoid storing reusable passwords in scheduled tasks; managed service accounts or gMSAs are preferable when the vendor supports Kerberos authentication to SQL or SMB backends.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Installation and deployment

Clone repository to C:\Tools\HardeningKitty; import included modules.

Package the tool through the same supply chain you use for other admin utilities: verify checksums, store binaries on a read-only tools share, and reference versions in CMDB. If you deploy via Intune Win32 packages, test detection rules on a pilot ring before broad assignment. Software restriction policies or AppLocker should allow signed paths explicitly.

Group Policy can distribute preferences—environment variables pointing to install roots, shortcuts on admin workstations—but avoid publishing powerful audit tools to every desktop. Limit exposure to privileged access workspaces. Document uninstall steps in the same ticket as install so quarterly access reviews stay accurate.

Logging complements point-in-time assessments. Enable advanced audit policy via GPO for directory service changes, account logon, and privileged use categories your SIEM expects. Forward events with agents or Windows Event Forwarding before you claim a tool replaces monitoring. Assessors often ask for sample exports proving who ran an audit utility and where reports were stored.

Delegation models should align with least privilege. Helpdesk teams receive password reset rights on specific OUs, not forest-wide read access to privileged groups. Security teams may receive read-only rights to security descriptors without reset rights. When a GitHub tool requests Domain Admin in its readme, treat that as documentation laziness—design a narrower role and test whether the vendor supports it.

git clone https://github.com/scipag/HardeningKitty.git C:\Tools\HardeningKitty

Hands-on usage

Invoke audit mode, export results to CSV, attach to change ticket.

Tiered administration matters when you run security utilities. Domain controllers and certificate authorities sit in tier zero; jump servers for administration sit in tier one; general member servers and workstations sit lower. Tools that query LDAP should execute from tier-one privileged access workstations with credential guard enabled where possible. Avoid storing reusable passwords in scheduled tasks; managed service accounts or gMSAs are preferable when the vendor supports Kerberos authentication to SQL or SMB backends.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Logging complements point-in-time assessments. Enable advanced audit policy via GPO for directory service changes, account logon, and privileged use categories your SIEM expects. Forward events with agents or Windows Event Forwarding before you claim a tool replaces monitoring. Assessors often ask for sample exports proving who ran an audit utility and where reports were stored.

Import-Module .\HardeningKitty.psd1
Invoke-HardeningKitty -Mode Audit

Security considerations

Results may expose sensitive paths—protect exports.

Reports and databases generated by admin tools often exceed the sensitivity of normal file shares. Encrypt data at rest, restrict NTFS permissions to role groups, and integrate DLP scanning if exports contain account lists. Consider watermarking HTML reports with runner identity and timestamp for leak tracing.

Attackers hunt for security tooling on compromised admin hosts. Protect install directories with tamper-resistant monitoring and alert on unexpected new scheduled tasks. Rotate service account passwords after contractor engagements end.

Delegation models should align with least privilege. Helpdesk teams receive password reset rights on specific OUs, not forest-wide read access to privileged groups. Security teams may receive read-only rights to security descriptors without reset rights. When a GitHub tool requests Domain Admin in its readme, treat that as documentation laziness—design a narrower role and test whether the vendor supports it.

Segmented networks challenge installers that assume flat RFC1918 routing. If domain controllers are reachable only through management VLANs, run utilities from jump hosts in that VLAN rather than developer laptops on guest Wi-Fi. Document firewall rules needed for LDAP, LDAPS, SMB, RPC, and any application-specific ports before the first production run.

How to roll back or uninstall

Remove tool folder; remediation rollback uses GPO version restore.

Group Policy can distribute preferences—environment variables pointing to install roots, shortcuts on admin workstations—but avoid publishing powerful audit tools to every desktop. Limit exposure to privileged access workspaces. Document uninstall steps in the same ticket as install so quarterly access reviews stay accurate.

Segmented networks challenge installers that assume flat RFC1918 routing. If domain controllers are reachable only through management VLANs, run utilities from jump hosts in that VLAN rather than developer laptops on guest Wi-Fi. Document firewall rules needed for LDAP, LDAPS, SMB, RPC, and any application-specific ports before the first production run.

Corporate Active Directory forests are rarely homogeneous. Acquisitions bring legacy trusts, conflicting GPO precedence, and service accounts that outlast the vendors who created them. Before any assessment or automation tool touches production, document the target naming contexts, site topology, and which domain controllers are writable for your region. Change advisory boards appreciate a one-page scope: forest name, OU list, maintenance window, and rollback contacts.

Pros and cons

Pros: PowerShell-native; Multiple benchmarks; Clear findings list; No install agent.

Cons: Not continuous compliance; Some checks OS-version specific; Remediation scripts need testing.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Alternatives

ToolBest forTrade-off
PingCastleAD-wide postureNot per-host registry

FAQ

Is it free to deploy?

Yes—open source; see license in frontmatter.

Does it require cloud SaaS?

Self-hosted paths avoid SaaS when documented.

Can we pilot first?

Always pilot on a narrow OU or ring before estate-wide rollout.

Segmented networks challenge installers that assume flat RFC1918 routing. If domain controllers are reachable only through management VLANs, run utilities from jump hosts in that VLAN rather than developer laptops on guest Wi-Fi. Document firewall rules needed for LDAP, LDAPS, SMB, RPC, and any application-specific ports before the first production run.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Segmented networks challenge installers that assume flat RFC1918 routing. If domain controllers are reachable only through management VLANs, run utilities from jump hosts in that VLAN rather than developer laptops on guest Wi-Fi. Document firewall rules needed for LDAP, LDAPS, SMB, RPC, and any application-specific ports before the first production run.

Replication health influences every directory-linked report. If SYSVOL is inconsistent or the USN stamp is suspect after improper restore, pause broad audits until repadmin and dcdiag show convergence. DNS SRV records must resolve to live hosts; stale records produce false negatives in inventory and security tools alike. Time synchronization within five minutes of UTC prevents Kerberos skew that looks like sporadic authentication failure.

Segmented networks challenge installers that assume flat RFC1918 routing. If domain controllers are reachable only through management VLANs, run utilities from jump hosts in that VLAN rather than developer laptops on guest Wi-Fi. Document firewall rules needed for LDAP, LDAPS, SMB, RPC, and any application-specific ports before the first production run.