diff --git a/CHANGELOG.md b/CHANGELOG.md index 24d1c86..fd4e54f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,9 +12,11 @@ Releases are tagged `vX.Y.Z` and published with a zip and a SHA256 checksum. - 🛡️ **Advanced audit policy can't be silently overridden.** A new Core setting turns on "Audit: Force audit policy subcategory settings to override audit policy category settings" (`SCENoApplyLegacyAuditPolicy`). It's Windows' default, but a policy that turns it off lets legacy category-level audit policy override every subcategory the kit applies; now Enable sets it, Test verifies it, and the Settings catalog and Group Policy pages map it. The role presets include it; ASD stays faithful to its script. [#71](https://github.com/spydisec/WinLogKit/issues/71) - 🚨 **Test checks that CrashOnAuditFail is off.** It's on the never-do list and the kit never sets it, but another policy might; Test now fails if it's on, since a full Security log would then halt the host. [#75](https://github.com/spydisec/WinLogKit/issues/75) +- 👤 **Insecure SMB guest logons are audited.** A new Core SMB setting makes the SMB client log when a share logs it on as the Guest account, an unauthenticated logon (event 31997 in SmbClient/Audit, Windows 11 24H2 / Server 2025 and later). Mapped on the Settings catalog and Group Policy pages and carried in the GPO pack. The server-side switch isn't included: it writes to SMBServer/Operational, a log the kit doesn't collect. [#72](https://github.com/spydisec/WinLogKit/issues/72) ### Fixed +- 🔢 **SMB audit event numbers corrected.** The settings table had signing and encryption swapped: per the SMB providers' own event definitions, 3021 / 31998 are signing and 3022 / 31999 encryption. The Reference page and the Safety FAQ now match, and the SMB settings are described as Windows 11 24H2 / Server 2025 and later rather than Server 2025 only. [#72](https://github.com/spydisec/WinLogKit/issues/72) - 🧯 **Failed log changes are reported as failures.** Enable sent `wevtutil` output to nowhere and never checked its exit code, so a log resize or enable that failed was reported as Changed (and `-Rollback` had the same gap). It now reports an Error with `wevtutil`'s own message and exits non-zero. [#70](https://github.com/spydisec/WinLogKit/issues/70) ## [2.1.0] - 2026-09-24 diff --git a/Enable-LoggingBaseline.ps1 b/Enable-LoggingBaseline.ps1 index 8be6502..27bbefa 100644 --- a/Enable-LoggingBaseline.ps1 +++ b/Enable-LoggingBaseline.ps1 @@ -550,9 +550,9 @@ try { } } - # --------------------- SMB signing/encryption auditing (Server 2025+) --- + # ------------------- SMB auditing (Windows 11 24H2 / Server 2025+) --- Write-Host '' - Write-Host '=== SMB signing/encryption auditing (Windows Server 2025+) ===' -ForegroundColor White + Write-Host '=== SMB auditing (Windows 11 24H2 / Server 2025+) ===' -ForegroundColor White $smbState = Get-SmbAuditState foreach ($sa in $script:BaselineSmbAuditSettings) { $decision = Get-ItemDecision $sa.Tier 'SmbAudit' $sa.Id diff --git a/New-LoggingBaseline.ps1 b/New-LoggingBaseline.ps1 index 7bf698d..9ce58cd 100644 --- a/New-LoggingBaseline.ps1 +++ b/New-LoggingBaseline.ps1 @@ -158,14 +158,14 @@ foreach ($rs in $script:BaselineRegistrySettings) { } foreach ($sa in $script:BaselineSmbAuditSettings) { $items.Add([pscustomobject]@{ - Section = 'SMB audit settings (Windows Server 2025+)' + Section = 'SMB audit settings (Windows 11 24H2 / Server 2025+)' ItemType = 'SmbAudit' Id = $sa.Id Name = "$($sa.Side): $($sa.Id) = $($sa.Value)" Tier = $sa.Tier Scope = $sa.Scope Purpose = $sa.Purpose - Risk = 'No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.' + Risk = 'No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.' Categories = ($sa.Categories -join '; ') }) } @@ -258,7 +258,7 @@ if ($AcceptRecommended) { Write-Host 'Keys: [Enter]=default [y]=include [n]=exclude [a]=defaults for rest of section [t]=show tree [q]=abort' Write-Host '' - foreach ($section in @('Event log channels', 'Advanced audit policy subcategories', 'Registry settings', 'SMB audit settings (Windows Server 2025+)')) { + foreach ($section in @('Event log channels', 'Advanced audit policy subcategories', 'Registry settings', 'SMB audit settings (Windows 11 24H2 / Server 2025+)')) { $sectionItems = @($items | Where-Object { $_.Section -eq $section }) Write-Host "=== $section ($($sectionItems.Count) items) ===" -ForegroundColor White $acceptRest = $false diff --git a/Test-LoggingBaseline.ps1 b/Test-LoggingBaseline.ps1 index a0b118c..ada5211 100644 --- a/Test-LoggingBaseline.ps1 +++ b/Test-LoggingBaseline.ps1 @@ -238,7 +238,7 @@ if ($null -eq $crash -or "$crash" -eq '0') { Add-Row @('Logging tampered with') 'Safety' $crashLabel '0 or absent' "$crash" 'FAIL' 'CrashOnAuditFail is on: the host halts when the Security log fills. Set by another policy; the kit never changes it. See Safety (never-do list).' } -# ------------------- SMB signing/encryption auditing (Server 2025+) --------- +# ----------------------- SMB auditing (Windows 11 24H2 / Server 2025+) ------ $smbState = Get-SmbAuditState foreach ($sa in $script:BaselineSmbAuditSettings) { diff --git a/WinLogKit.Common.ps1 b/WinLogKit.Common.ps1 index 55635c3..e919c83 100644 --- a/WinLogKit.Common.ps1 +++ b/WinLogKit.Common.ps1 @@ -124,7 +124,7 @@ function Format-AuditSetting { # ------------------------------------------------------------ SMB auditing --- -# Current state of the Server 2025+ SMB signing/encryption audit settings. +# Current state of the SMB audit settings (Windows 11 24H2 / Server 2025+). # Returns a hashtable Id -> current bool; items missing from the hashtable are # unsupported on this OS (the properties only exist on Server 2025 / Win11 24H2+). function Get-SmbAuditState { diff --git a/WinLogKit.Settings.ps1 b/WinLogKit.Settings.ps1 index 9c93622..63c0568 100644 --- a/WinLogKit.Settings.ps1 +++ b/WinLogKit.Settings.ps1 @@ -203,11 +203,11 @@ $script:BaselineChannels = @( @{ Name = 'Microsoft-Windows-SMBServer/Audit'; TargetBytes = $mb128; MustEnable = $false; Tier = 'Core'; DefaultSize = '8 MB'; MayBeAbsent = $true Categories = @('Remote access','Network flow and sessions') - Purpose = 'SMB server audit events, including Windows Server 2025 signing/encryption capability auditing (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.' } + Purpose = 'SMB server audit events, including signing/encryption capability auditing on Windows 11 24H2 / Server 2025 and later (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.' } @{ Name = 'Microsoft-Windows-SmbClient/Audit'; TargetBytes = $mb128; MustEnable = $false; Tier = 'Core'; DefaultSize = '8 MB'; MayBeAbsent = $true Categories = @('Remote access','Network flow and sessions') - Purpose = 'SMB client audit events, including Windows Server 2025 signing/encryption capability auditing (31998/31999) and NTLM-blocking diagnostics.' } + Purpose = 'SMB client audit events, including signing/encryption capability auditing (31998/31999) and insecure guest logons (31997) on Windows 11 24H2 / Server 2025 and later, and NTLM-blocking diagnostics.' } @{ Name = 'Microsoft-Windows-Crypto-DPAPI/Debug'; TargetBytes = $mb128; MustEnable = $true; Tier = 'HighVolume'; DefaultSize = '1 MB'; MayBeAbsent = $true; Situational = $true Categories = @('Certificates and keys') @@ -499,11 +499,12 @@ $script:BaselineRegistrySettings = @( ) # ----------------------------------------------------------------------------- -# 3b. SMB SIGNING/ENCRYPTION AUDITING (Windows Server 2025 / Win 11 24H2+) +# 3b. SMB AUDITING (Windows 11 24H2 / Windows Server 2025 and later) # -# New in Windows Server 2025: audit which peers cannot do SMB signing or -# encryption, so enforcement can be planned on evidence instead of breaking -# file shares. Configured via Set-SmbServerConfiguration / +# Audit which peers cannot do SMB signing or encryption, so enforcement can +# be planned on evidence instead of breaking file shares, and when the SMB +# client logs on as Guest (insecure guest logons, #72). Event IDs as the +# SMBServer / SMBClient providers define them. Configured via Set-SmbServerConfiguration / # Set-SmbClientConfiguration (documented by Microsoft in "What's new in # Windows Server 2025"), not registry or auditpol, so these have their own # item type. On older OSes the properties do not exist and the scripts report @@ -513,19 +514,25 @@ $script:BaselineRegistrySettings = @( $script:BaselineSmbAuditSettings = @( @{ Id = 'AuditClientDoesNotSupportEncryption'; Side = 'Server'; Value = $true; Tier = 'Core'; Scope = 'All' Categories = @('Remote access','Network flow and sessions') - Purpose = 'SMB server logs clients that cannot do SMB encryption (event 3021 in SMBServer/Audit). Windows Server 2025+ only.' } + Purpose = 'SMB server logs clients that cannot do SMB encryption (event 3022 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.' } @{ Id = 'AuditClientDoesNotSupportSigning'; Side = 'Server'; Value = $true; Tier = 'Core'; Scope = 'All' Categories = @('Remote access','Network flow and sessions') - Purpose = 'SMB server logs clients that cannot do SMB signing (event 3022 in SMBServer/Audit). Windows Server 2025+ only.' } + Purpose = 'SMB server logs clients that cannot do SMB signing (event 3021 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.' } @{ Id = 'AuditServerDoesNotSupportEncryption'; Side = 'Client'; Value = $true; Tier = 'Core'; Scope = 'All' Categories = @('Remote access','Network flow and sessions') - Purpose = 'SMB client logs servers that cannot do SMB encryption (event 31998 in SmbClient/Audit). Windows Server 2025+ only.' } + Purpose = 'SMB client logs servers that cannot do SMB encryption (event 31999 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.' } @{ Id = 'AuditServerDoesNotSupportSigning'; Side = 'Client'; Value = $true; Tier = 'Core'; Scope = 'All' Categories = @('Remote access','Network flow and sessions') - Purpose = 'SMB client logs servers that cannot do SMB signing (event 31999 in SmbClient/Audit). Windows Server 2025+ only.' } + Purpose = 'SMB client logs servers that cannot do SMB signing (event 31998 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.' } + + # Client side only: the server-side switch writes its event (3023) to + # SMBServer/Operational, a log the kit doesn't collect. + @{ Id = 'AuditInsecureGuestLogon'; Side = 'Client'; Value = $true; Tier = 'Core'; Scope = 'All' + Categories = @('Remote access','Authentication') + Purpose = 'SMB client logs when a share logs it on as the Guest account, an unauthenticated insecure guest logon (event 31997 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.' } ) # ----------------------------------------------------------------------------- diff --git a/docs/gpo-paths.md b/docs/gpo-paths.md index c732270..f83fd10 100644 --- a/docs/gpo-paths.md +++ b/docs/gpo-paths.md @@ -89,6 +89,7 @@ Things to know before you start: | AuditClientDoesNotSupportSigning | SMB audit | Core | Administrative Templates > Network > Lanman Server > Audit client does not support signing | Enabled | | AuditServerDoesNotSupportEncryption | SMB audit | Core | Administrative Templates > Network > Lanman Workstation > Audit server does not support encryption | Enabled | | AuditServerDoesNotSupportSigning | SMB audit | Core | Administrative Templates > Network > Lanman Workstation > Audit server does not support signing | Enabled | +| AuditInsecureGuestLogon | SMB audit | Core | Administrative Templates > Network > Lanman Workstation > Audit insecure guest logon | Enabled | | Security | Log size | Core | Administrative Templates > Windows Components > Event Log Service > Security > Specify the maximum log file size (KB) | Enabled, 1048576 KB | | System | Log size | Core | Administrative Templates > Windows Components > Event Log Service > System > Specify the maximum log file size (KB) | Enabled, 131072 KB | | Application | Log size | Core | Administrative Templates > Windows Components > Event Log Service > Application > Specify the maximum log file size (KB) | Enabled, 131072 KB | diff --git a/docs/intune-csp.md b/docs/intune-csp.md index 99b2f62..66add21 100644 --- a/docs/intune-csp.md +++ b/docs/intune-csp.md @@ -85,6 +85,7 @@ Things to know before you start: | AuditClientDoesNotSupportSigning | SMB audit | Core | `LanmanServer/AuditClientDoesNotSupportSigning` | 1 (Enabled) | [LanmanServer](https://learn.microsoft.com/windows/client-management/mdm/policy-csp-lanmanserver) | | AuditServerDoesNotSupportEncryption | SMB audit | Core | `LanmanWorkstation/AuditServerDoesNotSupportEncryption` | 1 (Enabled) | [LanmanWorkstation](https://learn.microsoft.com/windows/client-management/mdm/policy-csp-lanmanworkstation) | | AuditServerDoesNotSupportSigning | SMB audit | Core | `LanmanWorkstation/AuditServerDoesNotSupportSigning` | 1 (Enabled) | [LanmanWorkstation](https://learn.microsoft.com/windows/client-management/mdm/policy-csp-lanmanworkstation) | +| AuditInsecureGuestLogon | SMB audit | Core | `LanmanWorkstation/AuditInsecureGuestLogon` | 1 (Enabled) | [LanmanWorkstation](https://learn.microsoft.com/windows/client-management/mdm/policy-csp-lanmanworkstation) | | Security | Log size | Core | `EventLogService/SpecifyMaximumFileSizeSecurityLog` | Enabled, 1048576 KB | [EventLogService](https://learn.microsoft.com/windows/client-management/mdm/policy-csp-eventlogservice) | | System | Log size | Core | `EventLogService/SpecifyMaximumFileSizeSystemLog` | Enabled, 131072 KB | [EventLogService](https://learn.microsoft.com/windows/client-management/mdm/policy-csp-eventlogservice) | | Application | Log size | Core | `EventLogService/SpecifyMaximumFileSizeApplicationLog` | Enabled, 131072 KB | [EventLogService](https://learn.microsoft.com/windows/client-management/mdm/policy-csp-eventlogservice) | diff --git a/docs/reference.md b/docs/reference.md index d163543..ec1666e 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -56,7 +56,7 @@ Reading the columns: | Microsoft-Windows-TerminalServices-LocalSessionManager/Operational | Channel | - | 1 MB -> 128 MB | Low | Y | :material-check: | :material-check: | :material-check: | | Microsoft-Windows-TaskScheduler/Operational | Channel | - | 1 MB -> 128 MB | Low | Y | :material-check: | :material-check: | :material-check: | | Microsoft-Windows-SMBServer/Audit | Channel | 3021, 3022 | 8 MB -> 128 MB | Low | - | :material-check: | :material-check: | :material-check: | -| Microsoft-Windows-SmbClient/Audit | Channel | 31998, 31999 | 8 MB -> 128 MB | Low | - | :material-check: | :material-check: | :material-check: | +| Microsoft-Windows-SmbClient/Audit | Channel | 31998, 31999, 31997 | 8 MB -> 128 MB | Low | - | :material-check: | :material-check: | :material-check: | | Microsoft-Windows-Crypto-DPAPI/Debug | Channel | - | 1 MB -> 128 MB | Watch | - | - | - | - | | Credential Validation | Audit subcategory | 4776 | - | Low | C S Y | :material-check: | :material-check: | :material-check: | | Kerberos Authentication Service (DC) | Audit subcategory | 4768, 4771 | - | Low | Y | - | - | :material-check: | @@ -107,7 +107,8 @@ Reading the columns: | `CurrentControlSet\Services\Netlogon\Parameters\AuditNTLMInDomain (DC)` | Registry | - | - | Low | - | - | - | :material-check: | | `CurrentControlSet\Control\Lsa\SCENoApplyLegacyAuditPolicy` | Registry | - | - | Low | - | :material-check: | :material-check: | :material-check: | | AD CS AuditFilter (needs CertSvc restart) | Registry | 4886-4899 | - | Low | Y | :material-check: | :material-check: | :material-check: | -| Server: AuditClientDoesNotSupportEncryption | SMB audit (2025+) | 3021 | - | Low | - | :material-check: | :material-check: | :material-check: | -| Server: AuditClientDoesNotSupportSigning | SMB audit (2025+) | 3022 | - | Low | - | :material-check: | :material-check: | :material-check: | -| Client: AuditServerDoesNotSupportEncryption | SMB audit (2025+) | 31998 | - | Low | - | :material-check: | :material-check: | :material-check: | -| Client: AuditServerDoesNotSupportSigning | SMB audit (2025+) | 31999 | - | Low | - | :material-check: | :material-check: | :material-check: | +| Server: AuditClientDoesNotSupportEncryption | SMB audit (24H2+) | 3022 | - | Low | - | :material-check: | :material-check: | :material-check: | +| Server: AuditClientDoesNotSupportSigning | SMB audit (24H2+) | 3021 | - | Low | - | :material-check: | :material-check: | :material-check: | +| Client: AuditServerDoesNotSupportEncryption | SMB audit (24H2+) | 31999 | - | Low | - | :material-check: | :material-check: | :material-check: | +| Client: AuditServerDoesNotSupportSigning | SMB audit (24H2+) | 31998 | - | Low | - | :material-check: | :material-check: | :material-check: | +| Client: AuditInsecureGuestLogon | SMB audit (24H2+) | 31997 | - | Low | - | :material-check: | :material-check: | :material-check: | diff --git a/docs/safety.md b/docs/safety.md index ea39666..0236f77 100644 --- a/docs/safety.md +++ b/docs/safety.md @@ -153,7 +153,9 @@ categories PASS) and rollback. ### What's special on Server 2025 and Windows 11 24H2? Both can audit which SMB peers cannot do signing or encryption (events -3021/3022 server-side, 31998/31999 client-side; availability per +3021 signing / 3022 encryption server-side, 31998 signing / 31999 +encryption client-side) and when the SMB client logs on as Guest (31997); +availability per Microsoft's [SMB feature descriptions](https://learn.microsoft.com/windows-server/storage/file-server/smb-feature-descriptions)). The kit enables these audit-only settings and sizes both Audit channels; diff --git a/fleet/New-GpoPack.ps1 b/fleet/New-GpoPack.ps1 index 47ba2f3..b0b9731 100644 --- a/fleet/New-GpoPack.ps1 +++ b/fleet/New-GpoPack.ps1 @@ -14,8 +14,8 @@ GUIDs; the name column is informational. registry.txt LGPO.exe text format for the policy-key registry values (PowerShell logging, process command line capture, and - SMB signing/encryption auditing through its Lanman - Server / Lanman Workstation policies). + SMB auditing through its Lanman Server / Lanman + Workstation policies). Applying: Local / image builds (LGPO.exe from Microsoft's Security Compliance @@ -117,7 +117,7 @@ foreach ($rs in $script:BaselineRegistrySettings) { $regEntries.Add("Computer`r`n$keyPath`r`n$($rs.Name)`r`n$typeData") $regCount++ } -# SMB signing/encryption auditing has Group Policy (Network > Lanman Server +# SMB auditing has Group Policy (Network > Lanman Server # / Lanman Workstation, Windows 11 24H2 and Server 2025 onwards; older # versions ignore the values). Same value names as the Set-Smb*Configuration # parameters. diff --git a/presets/ASD.csv b/presets/ASD.csv index bd9d561..f08e351 100644 --- a/presets/ASD.csv +++ b/presets/ASD.csv @@ -24,8 +24,8 @@ "Channel","Microsoft-Windows-WMI-Activity/Operational","Microsoft-Windows-WMI-Activity/Operational","Core","All","Y","N","","WMI operations. WMI event subscriptions are a common fileless persistence mechanism.","Execution; Persistence; Scheduled and automated tasks" "Channel","Microsoft-Windows-TerminalServices-LocalSessionManager/Operational","Microsoft-Windows-TerminalServices-LocalSessionManager/Operational","Core","All","Y","N","","RDP session connect/disconnect/reconnect (21/24/25) with source address - survives Security log clearing.","Remote access" "Channel","Microsoft-Windows-TaskScheduler/Operational","Microsoft-Windows-TaskScheduler/Operational","Core","All","Y","N","","Task registration, updates and execution. DISABLED by default so must be enabled. Tasks are a top persistence mechanism.","Scheduled and automated tasks; Persistence" -"Channel","Microsoft-Windows-SMBServer/Audit","Microsoft-Windows-SMBServer/Audit","Core","All","Y","N","","SMB server audit events, including Windows Server 2025 signing/encryption capability auditing (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.","Remote access; Network flow and sessions" -"Channel","Microsoft-Windows-SmbClient/Audit","Microsoft-Windows-SmbClient/Audit","Core","All","Y","N","","SMB client audit events, including Windows Server 2025 signing/encryption capability auditing (31998/31999) and NTLM-blocking diagnostics.","Remote access; Network flow and sessions" +"Channel","Microsoft-Windows-SMBServer/Audit","Microsoft-Windows-SMBServer/Audit","Core","All","Y","N","","SMB server audit events, including signing/encryption capability auditing on Windows 11 24H2 / Server 2025 and later (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.","Remote access; Network flow and sessions" +"Channel","Microsoft-Windows-SmbClient/Audit","Microsoft-Windows-SmbClient/Audit","Core","All","Y","N","","SMB client audit events, including signing/encryption capability auditing (31998/31999) and insecure guest logons (31997) on Windows 11 24H2 / Server 2025 and later, and NTLM-blocking diagnostics.","Remote access; Network flow and sessions" "Channel","Microsoft-Windows-Crypto-DPAPI/Debug","Microsoft-Windows-Crypto-DPAPI/Debug","HighVolume","All","N","N","Debug-class channels carry a small constant tracing overhead and are not designed for always-on production use. Enable deliberately, not by default.","DPAPI key operations. Added by WELA v2.1 configure. A debug-class channel, so opt-in: enable only if DPAPI theft (e.g. Mimikatz backup key export) is a monitored scenario.","Certificates and keys" "AuditPolicy","0CCE923F-69AE-11D9-BED3-505054503030","Credential Validation","Core","All","Y","N","","NTLM authentication results (4776). Catches password spraying and username guessing over NTLM.","Authentication" "AuditPolicy","0CCE9242-69AE-11D9-BED3-505054503030","Kerberos Authentication Service","Core","DomainController","Y","N","","Kerberos TGT requests (4768) and pre-auth failures (4771). Only generated on domain controllers.","Authentication; Directory and identity store" @@ -75,8 +75,9 @@ "Registry","NtlmInboundAudit","HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\AuditReceivingNTLMTraffic = 2","Core","All","Y","N","","Audit incoming NTLM authentication for all accounts (2 = all accounts). Audit-only, nothing blocked.","Authentication" "Registry","NtlmDomainAudit","HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\AuditNTLMInDomain = 7","Core","DomainController","Y","N","","Audit all NTLM authentication passing through this domain controller (7 = all). Audit-only.","Authentication" "Registry","ForceSubcategoryAudit","HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\SCENoApplyLegacyAuditPolicy = 1","Core","All","Y","N","","""Audit: Force audit policy subcategory settings to override audit policy category settings"". Stops a category-level (legacy) audit policy, from Group Policy or Local Security Policy, overriding the advanced subcategory settings this kit applies. On by default in Windows; set explicitly so a policy that turns it off is caught.","Logging tampered with" -"SmbAudit","AuditClientDoesNotSupportEncryption","Server: AuditClientDoesNotSupportEncryption = True","Core","All","Y","N","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB encryption (event 3021 in SMBServer/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditClientDoesNotSupportSigning","Server: AuditClientDoesNotSupportSigning = True","Core","All","Y","N","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB signing (event 3022 in SMBServer/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditServerDoesNotSupportEncryption","Client: AuditServerDoesNotSupportEncryption = True","Core","All","Y","N","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB encryption (event 31998 in SmbClient/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditServerDoesNotSupportSigning","Client: AuditServerDoesNotSupportSigning = True","Core","All","Y","N","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB signing (event 31999 in SmbClient/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" +"SmbAudit","AuditClientDoesNotSupportEncryption","Server: AuditClientDoesNotSupportEncryption = True","Core","All","Y","N","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB encryption (event 3022 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditClientDoesNotSupportSigning","Server: AuditClientDoesNotSupportSigning = True","Core","All","Y","N","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB signing (event 3021 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditServerDoesNotSupportEncryption","Client: AuditServerDoesNotSupportEncryption = True","Core","All","Y","N","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB encryption (event 31999 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditServerDoesNotSupportSigning","Client: AuditServerDoesNotSupportSigning = True","Core","All","Y","N","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB signing (event 31998 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditInsecureGuestLogon","Client: AuditInsecureGuestLogon = True","Core","All","Y","N","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs when a share logs it on as the Guest account, an unauthenticated insecure guest logon (event 31997 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Authentication" "Registry","AdcsAuditFilter","AD CS AuditFilter = 127 (only applies when Certificate Services is installed; needs CertSvc restart)","Core","All","Y","N","Takes effect only after a CertSvc service restart, which the kit never performs itself - plan a change window.","Turns on all seven AD CS audit event groups (127 = full bitmask) so certificate issuance, template changes and CA configuration changes are logged (4886-4899). REQUIRES a CertSvc service restart to take effect.","Certificates and keys" diff --git a/presets/DomainController.csv b/presets/DomainController.csv index f6f8847..1d3535b 100644 --- a/presets/DomainController.csv +++ b/presets/DomainController.csv @@ -24,8 +24,8 @@ "Channel","Microsoft-Windows-WMI-Activity/Operational","Microsoft-Windows-WMI-Activity/Operational","Core","All","Y","Y","","WMI operations. WMI event subscriptions are a common fileless persistence mechanism.","Execution; Persistence; Scheduled and automated tasks" "Channel","Microsoft-Windows-TerminalServices-LocalSessionManager/Operational","Microsoft-Windows-TerminalServices-LocalSessionManager/Operational","Core","All","Y","Y","","RDP session connect/disconnect/reconnect (21/24/25) with source address - survives Security log clearing.","Remote access" "Channel","Microsoft-Windows-TaskScheduler/Operational","Microsoft-Windows-TaskScheduler/Operational","Core","All","Y","Y","","Task registration, updates and execution. DISABLED by default so must be enabled. Tasks are a top persistence mechanism.","Scheduled and automated tasks; Persistence" -"Channel","Microsoft-Windows-SMBServer/Audit","Microsoft-Windows-SMBServer/Audit","Core","All","Y","Y","","SMB server audit events, including Windows Server 2025 signing/encryption capability auditing (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.","Remote access; Network flow and sessions" -"Channel","Microsoft-Windows-SmbClient/Audit","Microsoft-Windows-SmbClient/Audit","Core","All","Y","Y","","SMB client audit events, including Windows Server 2025 signing/encryption capability auditing (31998/31999) and NTLM-blocking diagnostics.","Remote access; Network flow and sessions" +"Channel","Microsoft-Windows-SMBServer/Audit","Microsoft-Windows-SMBServer/Audit","Core","All","Y","Y","","SMB server audit events, including signing/encryption capability auditing on Windows 11 24H2 / Server 2025 and later (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.","Remote access; Network flow and sessions" +"Channel","Microsoft-Windows-SmbClient/Audit","Microsoft-Windows-SmbClient/Audit","Core","All","Y","Y","","SMB client audit events, including signing/encryption capability auditing (31998/31999) and insecure guest logons (31997) on Windows 11 24H2 / Server 2025 and later, and NTLM-blocking diagnostics.","Remote access; Network flow and sessions" "Channel","Microsoft-Windows-Crypto-DPAPI/Debug","Microsoft-Windows-Crypto-DPAPI/Debug","HighVolume","All","N","N","Debug-class channels carry a small constant tracing overhead and are not designed for always-on production use. Enable deliberately, not by default.","DPAPI key operations. Added by WELA v2.1 configure. A debug-class channel, so opt-in: enable only if DPAPI theft (e.g. Mimikatz backup key export) is a monitored scenario.","Certificates and keys" "AuditPolicy","0CCE923F-69AE-11D9-BED3-505054503030","Credential Validation","Core","All","Y","Y","","NTLM authentication results (4776). Catches password spraying and username guessing over NTLM.","Authentication" "AuditPolicy","0CCE9242-69AE-11D9-BED3-505054503030","Kerberos Authentication Service","Core","DomainController","Y","Y","","Kerberos TGT requests (4768) and pre-auth failures (4771). Only generated on domain controllers.","Authentication; Directory and identity store" @@ -75,8 +75,9 @@ "Registry","NtlmInboundAudit","HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\AuditReceivingNTLMTraffic = 2","Core","All","Y","Y","","Audit incoming NTLM authentication for all accounts (2 = all accounts). Audit-only, nothing blocked.","Authentication" "Registry","NtlmDomainAudit","HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\AuditNTLMInDomain = 7","Core","DomainController","Y","Y","","Audit all NTLM authentication passing through this domain controller (7 = all). Audit-only.","Authentication" "Registry","ForceSubcategoryAudit","HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\SCENoApplyLegacyAuditPolicy = 1","Core","All","Y","Y","","""Audit: Force audit policy subcategory settings to override audit policy category settings"". Stops a category-level (legacy) audit policy, from Group Policy or Local Security Policy, overriding the advanced subcategory settings this kit applies. On by default in Windows; set explicitly so a policy that turns it off is caught.","Logging tampered with" -"SmbAudit","AuditClientDoesNotSupportEncryption","Server: AuditClientDoesNotSupportEncryption = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB encryption (event 3021 in SMBServer/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditClientDoesNotSupportSigning","Server: AuditClientDoesNotSupportSigning = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB signing (event 3022 in SMBServer/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditServerDoesNotSupportEncryption","Client: AuditServerDoesNotSupportEncryption = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB encryption (event 31998 in SmbClient/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditServerDoesNotSupportSigning","Client: AuditServerDoesNotSupportSigning = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB signing (event 31999 in SmbClient/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" +"SmbAudit","AuditClientDoesNotSupportEncryption","Server: AuditClientDoesNotSupportEncryption = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB encryption (event 3022 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditClientDoesNotSupportSigning","Server: AuditClientDoesNotSupportSigning = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB signing (event 3021 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditServerDoesNotSupportEncryption","Client: AuditServerDoesNotSupportEncryption = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB encryption (event 31999 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditServerDoesNotSupportSigning","Client: AuditServerDoesNotSupportSigning = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB signing (event 31998 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditInsecureGuestLogon","Client: AuditInsecureGuestLogon = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs when a share logs it on as the Guest account, an unauthenticated insecure guest logon (event 31997 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Authentication" "Registry","AdcsAuditFilter","AD CS AuditFilter = 127 (only applies when Certificate Services is installed; needs CertSvc restart)","Core","All","Y","Y","Takes effect only after a CertSvc service restart, which the kit never performs itself - plan a change window.","Turns on all seven AD CS audit event groups (127 = full bitmask) so certificate issuance, template changes and CA configuration changes are logged (4886-4899). REQUIRES a CertSvc service restart to take effect.","Certificates and keys" diff --git a/presets/MemberServer.csv b/presets/MemberServer.csv index 59b26f4..75e5a0e 100644 --- a/presets/MemberServer.csv +++ b/presets/MemberServer.csv @@ -24,8 +24,8 @@ "Channel","Microsoft-Windows-WMI-Activity/Operational","Microsoft-Windows-WMI-Activity/Operational","Core","All","Y","Y","","WMI operations. WMI event subscriptions are a common fileless persistence mechanism.","Execution; Persistence; Scheduled and automated tasks" "Channel","Microsoft-Windows-TerminalServices-LocalSessionManager/Operational","Microsoft-Windows-TerminalServices-LocalSessionManager/Operational","Core","All","Y","Y","","RDP session connect/disconnect/reconnect (21/24/25) with source address - survives Security log clearing.","Remote access" "Channel","Microsoft-Windows-TaskScheduler/Operational","Microsoft-Windows-TaskScheduler/Operational","Core","All","Y","Y","","Task registration, updates and execution. DISABLED by default so must be enabled. Tasks are a top persistence mechanism.","Scheduled and automated tasks; Persistence" -"Channel","Microsoft-Windows-SMBServer/Audit","Microsoft-Windows-SMBServer/Audit","Core","All","Y","Y","","SMB server audit events, including Windows Server 2025 signing/encryption capability auditing (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.","Remote access; Network flow and sessions" -"Channel","Microsoft-Windows-SmbClient/Audit","Microsoft-Windows-SmbClient/Audit","Core","All","Y","Y","","SMB client audit events, including Windows Server 2025 signing/encryption capability auditing (31998/31999) and NTLM-blocking diagnostics.","Remote access; Network flow and sessions" +"Channel","Microsoft-Windows-SMBServer/Audit","Microsoft-Windows-SMBServer/Audit","Core","All","Y","Y","","SMB server audit events, including signing/encryption capability auditing on Windows 11 24H2 / Server 2025 and later (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.","Remote access; Network flow and sessions" +"Channel","Microsoft-Windows-SmbClient/Audit","Microsoft-Windows-SmbClient/Audit","Core","All","Y","Y","","SMB client audit events, including signing/encryption capability auditing (31998/31999) and insecure guest logons (31997) on Windows 11 24H2 / Server 2025 and later, and NTLM-blocking diagnostics.","Remote access; Network flow and sessions" "Channel","Microsoft-Windows-Crypto-DPAPI/Debug","Microsoft-Windows-Crypto-DPAPI/Debug","HighVolume","All","N","N","Debug-class channels carry a small constant tracing overhead and are not designed for always-on production use. Enable deliberately, not by default.","DPAPI key operations. Added by WELA v2.1 configure. A debug-class channel, so opt-in: enable only if DPAPI theft (e.g. Mimikatz backup key export) is a monitored scenario.","Certificates and keys" "AuditPolicy","0CCE923F-69AE-11D9-BED3-505054503030","Credential Validation","Core","All","Y","Y","","NTLM authentication results (4776). Catches password spraying and username guessing over NTLM.","Authentication" "AuditPolicy","0CCE9242-69AE-11D9-BED3-505054503030","Kerberos Authentication Service","Core","DomainController","Y","N","","Kerberos TGT requests (4768) and pre-auth failures (4771). Only generated on domain controllers.","Authentication; Directory and identity store" @@ -75,8 +75,9 @@ "Registry","NtlmInboundAudit","HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\AuditReceivingNTLMTraffic = 2","Core","All","Y","Y","","Audit incoming NTLM authentication for all accounts (2 = all accounts). Audit-only, nothing blocked.","Authentication" "Registry","NtlmDomainAudit","HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\AuditNTLMInDomain = 7","Core","DomainController","Y","N","","Audit all NTLM authentication passing through this domain controller (7 = all). Audit-only.","Authentication" "Registry","ForceSubcategoryAudit","HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\SCENoApplyLegacyAuditPolicy = 1","Core","All","Y","Y","","""Audit: Force audit policy subcategory settings to override audit policy category settings"". Stops a category-level (legacy) audit policy, from Group Policy or Local Security Policy, overriding the advanced subcategory settings this kit applies. On by default in Windows; set explicitly so a policy that turns it off is caught.","Logging tampered with" -"SmbAudit","AuditClientDoesNotSupportEncryption","Server: AuditClientDoesNotSupportEncryption = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB encryption (event 3021 in SMBServer/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditClientDoesNotSupportSigning","Server: AuditClientDoesNotSupportSigning = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB signing (event 3022 in SMBServer/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditServerDoesNotSupportEncryption","Client: AuditServerDoesNotSupportEncryption = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB encryption (event 31998 in SmbClient/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditServerDoesNotSupportSigning","Client: AuditServerDoesNotSupportSigning = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB signing (event 31999 in SmbClient/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" +"SmbAudit","AuditClientDoesNotSupportEncryption","Server: AuditClientDoesNotSupportEncryption = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB encryption (event 3022 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditClientDoesNotSupportSigning","Server: AuditClientDoesNotSupportSigning = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB signing (event 3021 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditServerDoesNotSupportEncryption","Client: AuditServerDoesNotSupportEncryption = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB encryption (event 31999 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditServerDoesNotSupportSigning","Client: AuditServerDoesNotSupportSigning = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB signing (event 31998 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditInsecureGuestLogon","Client: AuditInsecureGuestLogon = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs when a share logs it on as the Guest account, an unauthenticated insecure guest logon (event 31997 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Authentication" "Registry","AdcsAuditFilter","AD CS AuditFilter = 127 (only applies when Certificate Services is installed; needs CertSvc restart)","Core","All","Y","Y","Takes effect only after a CertSvc service restart, which the kit never performs itself - plan a change window.","Turns on all seven AD CS audit event groups (127 = full bitmask) so certificate issuance, template changes and CA configuration changes are logged (4886-4899). REQUIRES a CertSvc service restart to take effect.","Certificates and keys" diff --git a/presets/Workstation.csv b/presets/Workstation.csv index bd0f30c..b7767aa 100644 --- a/presets/Workstation.csv +++ b/presets/Workstation.csv @@ -24,8 +24,8 @@ "Channel","Microsoft-Windows-WMI-Activity/Operational","Microsoft-Windows-WMI-Activity/Operational","Core","All","Y","Y","","WMI operations. WMI event subscriptions are a common fileless persistence mechanism.","Execution; Persistence; Scheduled and automated tasks" "Channel","Microsoft-Windows-TerminalServices-LocalSessionManager/Operational","Microsoft-Windows-TerminalServices-LocalSessionManager/Operational","Core","All","Y","Y","","RDP session connect/disconnect/reconnect (21/24/25) with source address - survives Security log clearing.","Remote access" "Channel","Microsoft-Windows-TaskScheduler/Operational","Microsoft-Windows-TaskScheduler/Operational","Core","All","Y","Y","","Task registration, updates and execution. DISABLED by default so must be enabled. Tasks are a top persistence mechanism.","Scheduled and automated tasks; Persistence" -"Channel","Microsoft-Windows-SMBServer/Audit","Microsoft-Windows-SMBServer/Audit","Core","All","Y","Y","","SMB server audit events, including Windows Server 2025 signing/encryption capability auditing (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.","Remote access; Network flow and sessions" -"Channel","Microsoft-Windows-SmbClient/Audit","Microsoft-Windows-SmbClient/Audit","Core","All","Y","Y","","SMB client audit events, including Windows Server 2025 signing/encryption capability auditing (31998/31999) and NTLM-blocking diagnostics.","Remote access; Network flow and sessions" +"Channel","Microsoft-Windows-SMBServer/Audit","Microsoft-Windows-SMBServer/Audit","Core","All","Y","Y","","SMB server audit events, including signing/encryption capability auditing on Windows 11 24H2 / Server 2025 and later (3021/3022) - identifies clients that cannot do SMB signing or encryption before you enforce it.","Remote access; Network flow and sessions" +"Channel","Microsoft-Windows-SmbClient/Audit","Microsoft-Windows-SmbClient/Audit","Core","All","Y","Y","","SMB client audit events, including signing/encryption capability auditing (31998/31999) and insecure guest logons (31997) on Windows 11 24H2 / Server 2025 and later, and NTLM-blocking diagnostics.","Remote access; Network flow and sessions" "Channel","Microsoft-Windows-Crypto-DPAPI/Debug","Microsoft-Windows-Crypto-DPAPI/Debug","HighVolume","All","N","N","Debug-class channels carry a small constant tracing overhead and are not designed for always-on production use. Enable deliberately, not by default.","DPAPI key operations. Added by WELA v2.1 configure. A debug-class channel, so opt-in: enable only if DPAPI theft (e.g. Mimikatz backup key export) is a monitored scenario.","Certificates and keys" "AuditPolicy","0CCE923F-69AE-11D9-BED3-505054503030","Credential Validation","Core","All","Y","Y","","NTLM authentication results (4776). Catches password spraying and username guessing over NTLM.","Authentication" "AuditPolicy","0CCE9242-69AE-11D9-BED3-505054503030","Kerberos Authentication Service","Core","DomainController","Y","N","","Kerberos TGT requests (4768) and pre-auth failures (4771). Only generated on domain controllers.","Authentication; Directory and identity store" @@ -75,8 +75,9 @@ "Registry","NtlmInboundAudit","HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0\AuditReceivingNTLMTraffic = 2","Core","All","Y","Y","","Audit incoming NTLM authentication for all accounts (2 = all accounts). Audit-only, nothing blocked.","Authentication" "Registry","NtlmDomainAudit","HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\AuditNTLMInDomain = 7","Core","DomainController","Y","N","","Audit all NTLM authentication passing through this domain controller (7 = all). Audit-only.","Authentication" "Registry","ForceSubcategoryAudit","HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\SCENoApplyLegacyAuditPolicy = 1","Core","All","Y","Y","","""Audit: Force audit policy subcategory settings to override audit policy category settings"". Stops a category-level (legacy) audit policy, from Group Policy or Local Security Policy, overriding the advanced subcategory settings this kit applies. On by default in Windows; set explicitly so a policy that turns it off is caught.","Logging tampered with" -"SmbAudit","AuditClientDoesNotSupportEncryption","Server: AuditClientDoesNotSupportEncryption = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB encryption (event 3021 in SMBServer/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditClientDoesNotSupportSigning","Server: AuditClientDoesNotSupportSigning = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB signing (event 3022 in SMBServer/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditServerDoesNotSupportEncryption","Client: AuditServerDoesNotSupportEncryption = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB encryption (event 31998 in SmbClient/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" -"SmbAudit","AuditServerDoesNotSupportSigning","Client: AuditServerDoesNotSupportSigning = True","Core","All","Y","Y","No effect on OSes before Windows Server 2025 / Windows 11 24H2 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB signing (event 31999 in SmbClient/Audit). Windows Server 2025+ only.","Remote access; Network flow and sessions" +"SmbAudit","AuditClientDoesNotSupportEncryption","Server: AuditClientDoesNotSupportEncryption = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB encryption (event 3022 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditClientDoesNotSupportSigning","Server: AuditClientDoesNotSupportSigning = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB server logs clients that cannot do SMB signing (event 3021 in SMBServer/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditServerDoesNotSupportEncryption","Client: AuditServerDoesNotSupportEncryption = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB encryption (event 31999 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditServerDoesNotSupportSigning","Client: AuditServerDoesNotSupportSigning = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs servers that cannot do SMB signing (event 31998 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Network flow and sessions" +"SmbAudit","AuditInsecureGuestLogon","Client: AuditInsecureGuestLogon = True","Core","All","Y","Y","No effect before Windows 11 24H2 / Windows Server 2025 (reported NOT APPLICABLE there). Audit-only; nothing is blocked.","SMB client logs when a share logs it on as the Guest account, an unauthenticated insecure guest logon (event 31997 in SmbClient/Audit). Windows 11 24H2 / Server 2025 and later.","Remote access; Authentication" "Registry","AdcsAuditFilter","AD CS AuditFilter = 127 (only applies when Certificate Services is installed; needs CertSvc restart)","Core","All","Y","Y","Takes effect only after a CertSvc service restart, which the kit never performs itself - plan a change window.","Turns on all seven AD CS audit event groups (127 = full bitmask) so certificate issuance, template changes and CA configuration changes are logged (4886-4899). REQUIRES a CertSvc service restart to take effect.","Certificates and keys" diff --git a/tools/Export-ReferenceTable.ps1 b/tools/Export-ReferenceTable.ps1 index fbc57bf..cb4623d 100644 --- a/tools/Export-ReferenceTable.ps1 +++ b/tools/Export-ReferenceTable.ps1 @@ -71,8 +71,8 @@ function Get-PurposeEventText { return @($ids) } -# Kit-added items that Yamato's own scripts do not contain: the Server 2025 -# SMB auditing (all SmbAudit rows plus its two channels), the NTLM audit +# Kit-added items that Yamato's own scripts do not contain: the SMB +# auditing (all SmbAudit rows plus its two channels), the NTLM audit # registry values, the PowerShell 7 policy fallbacks (#44) and the forced # subcategory audit setting (#71). They must not # carry the Y letter. Situational items (the old Optional tier: IPsec Driver, @@ -164,7 +164,7 @@ foreach ($rs in $script:BaselineRegistrySettings) { $af = $script:BaselineAdcsAuditFilter $rows.Add("| AD CS AuditFilter (needs CertSvc restart) | Registry | $((Get-PurposeEventText $af.Purpose) -join ', ') | - | $(Format-Volume $af) | $(Format-RefText 'Registry' $af.Id $af.Tier) | $(Format-RoleColumn 'Registry' $af.Id) |") foreach ($sa in $script:BaselineSmbAuditSettings) { - $rows.Add("| $($sa.Side): $($sa.Id) | SMB audit (2025+) | $((Get-PurposeEventText $sa.Purpose) -join ', ') | - | Low | $(Format-RefText 'SmbAudit' $sa.Id $sa.Tier) | $(Format-RoleColumn 'SmbAudit' $sa.Id) |") + $rows.Add("| $($sa.Side): $($sa.Id) | SMB audit (24H2+) | $((Get-PurposeEventText $sa.Purpose) -join ', ') | - | Low | $(Format-RefText 'SmbAudit' $sa.Id $sa.Tier) | $(Format-RoleColumn 'SmbAudit' $sa.Id) |") } # ---- write the page --------------------------------------------------------- diff --git a/tools/policy-map.psd1 b/tools/policy-map.psd1 index 6d8e654..344a214 100644 --- a/tools/policy-map.psd1 +++ b/tools/policy-map.psd1 @@ -104,6 +104,7 @@ AuditClientDoesNotSupportEncryption = @{ Csp = 'LanmanServer/AuditClientDoesNotSupportEncryption'; Doc = 'policy-csp-lanmanserver'; Gp = 'Administrative Templates > Network > Lanman Server > Audit client does not support encryption' } AuditClientDoesNotSupportSigning = @{ Csp = 'LanmanServer/AuditClientDoesNotSupportSigning'; Doc = 'policy-csp-lanmanserver'; Gp = 'Administrative Templates > Network > Lanman Server > Audit client does not support signing' } AuditServerDoesNotSupportEncryption = @{ Csp = 'LanmanWorkstation/AuditServerDoesNotSupportEncryption'; Doc = 'policy-csp-lanmanworkstation'; Gp = 'Administrative Templates > Network > Lanman Workstation > Audit server does not support encryption' } + AuditInsecureGuestLogon = @{ Csp = 'LanmanWorkstation/AuditInsecureGuestLogon'; Doc = 'policy-csp-lanmanworkstation'; Gp = 'Administrative Templates > Network > Lanman Workstation > Audit insecure guest logon' } AuditServerDoesNotSupportSigning = @{ Csp = 'LanmanWorkstation/AuditServerDoesNotSupportSigning'; Doc = 'policy-csp-lanmanworkstation'; Gp = 'Administrative Templates > Network > Lanman Workstation > Audit server does not support signing' } }