@@ -26,18 +26,25 @@ public RegistryProcessor(ILogger log, string domain) {
2626 ] ;
2727
2828 _queries = [
29- RegistryQuery . ForKey ( RegistryHive . LocalMachine , @"System \CurrentControlSet\Control\Lsa\MSV1_0" )
29+ RegistryQuery . ForKey ( RegistryHive . LocalMachine , @"SYSTEM \CurrentControlSet\Control\Lsa\MSV1_0" )
3030 . WithValues ( [
31- "NtlmMinClientSec" ,
32- "NtlmMinServerSec" ,
33- "RestrictReceivingNTLMTraffic" ,
34- "RestrictSendingNTLMTraffic" ,
31+ "ClientAllowedNTLMServers" , // Network security: Restrict NTLM: Add remote server exceptions for NTLM authentication
32+ "NtlmMinClientSec" , // Network security: Minimum session security for NTLM SSP based (including secure RPC) clients
33+ "NtlmMinServerSec" , // Network security: Minimum session security for NTLM SSP based (including secure RPC) servers
34+ "RestrictReceivingNTLMTraffic" , // Network security: Restrict NTLM: Incoming NTLM traffic
35+ "RestrictSendingNTLMTraffic" , // Network security: Restrict NTLM: Outgoing NTLM traffic to remote servers
3536 ] ) ,
3637
37- RegistryQuery . ForKey ( RegistryHive . LocalMachine , @"System \CurrentControlSet\Control\Lsa\" )
38+ RegistryQuery . ForKey ( RegistryHive . LocalMachine , @"SYSTEM \CurrentControlSet\Control\Lsa\" )
3839 . WithValues ( [
39- "LMCompatibilityLevel" ,
40- "UseMachineId"
40+ "LMCompatibilityLevel" , // Network security: LAN Manager authentication level
41+ "UseMachineId" // Network security: Allow Local System to use computer identity for NTLM
42+ ] ) ,
43+
44+ RegistryQuery . ForKey ( RegistryHive . LocalMachine , @"SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" )
45+ . WithValues ( [
46+ "EnableSecuritySignature" , // Microsoft network client: Digitally sign communications (if server agrees)
47+ "RequireSecuritySignature" , // Microsoft network client: Digitally sign communications (always)
4148 ] )
4249 ] ;
4350 }
@@ -57,6 +64,9 @@ public async Task<APIResult<RegistryData>> ReadRegistrySettings(string targetMac
5764
5865 var name = key . ValueName ;
5966 switch ( name ) {
67+ case "ClientAllowedNTLMServers" :
68+ output . ClientAllowedNTLMServers = ( string [ ] ) key . Value ;
69+ break ;
6070 case "NtlmMinClientSec" :
6171 output . NtlmMinClientSec = Convert . ToUInt32 ( key . Value ) ;
6272 break ;
@@ -73,7 +83,13 @@ public async Task<APIResult<RegistryData>> ReadRegistrySettings(string targetMac
7383 output . LmCompatibilityLevel = Convert . ToUInt32 ( key . Value ) ;
7484 break ;
7585 case "UseMachineId" :
76- output . UseMachine = Convert . ToUInt32 ( key . Value ) ;
86+ output . UseMachineId = Convert . ToUInt32 ( key . Value ) ;
87+ break ;
88+ case "RequireSecuritySignature" :
89+ output . RequireSecuritySignature = Convert . ToUInt32 ( key . Value ) ;
90+ break ;
91+ case "EnableSecuritySignature" :
92+ output . EnableSecuritySignature = Convert . ToUInt32 ( key . Value ) ;
7793 break ;
7894 }
7995 }
0 commit comments