Skip to content

v1.6.0 — Locale-Invariant Auditing (Full Non-English Windows Support)

Choose a tag to compare

@okanyildiz okanyildiz released this 26 Oct 22:39
· 54 commits to main since this release

Highlights

Every check that parsed localized console output (auditpol, net accounts, netsh, fsutil, SFC/DISM) or matched localized identity names (Administrators, Guest, Everyone) now uses APIs, GUIDs and SIDs — correct results on Turkish, German, French and any other Windows display language, with honest unable to determine states instead of silent wrong PASSes.

New internal helpers (Private/)

  • Get-AuditPolicyTable — AuditQuerySystemPolicy P/Invoke → auditpol /backup fixed-header CSV fallback (numeric Setting Value) → GUID-addressed /get with honest unknowns; 59-subcategory GUID map (MS-GPAC)
  • Get-LocalPasswordPolicy — NetUserModalsGet (non-admin) + elevated secedit fallback
  • Get-WlanProfileList — wlanapi.dll P/Invoke
  • Identity helpers — SID-first group/user/ACL resolution with ADSI fallback (32-bit PowerShell & AzureAD-safe)

Security fixes

  • Memory-dump and scheduled-scan ACL lockdowns silently failed on non-English Windows (IdentityNotMappedException) leaving credential-bearing files world-readable — now SID-based with post-write verification
  • Enable-AuditPolicies /set now uses GUIDs (was English-only); 'Everyone' SACLs use S-1-1-0
  • 13 High / 4 Medium / 3 Low locale bugs fixed across 16 files (27 call sites)

Regression armor

  • tests/Locale.Regression.Tests.ps1: EN/DE(cp1252) auditpol fixture equivalence + static 'no text readers' CI guard

Tests: 448 passed / 0 failed. Full details in CHANGELOG.md