cyberark / CYBRHardeningCheck

A utility to check CyberArk component servers hardening status
GNU General Public License v3.0
53 stars 25 forks source link

Warning "Info: Builtin\administrators does not have required rights (allow - fullcontrol) #104

Open UnXQglez opened 2 years ago

UnXQglez commented 2 years ago

Summary

When executing the script in PVWA, one of the warnings you can get is: PVWA Warning BUILTIN\Administrators does not have required rights (Allow - FullControl) to HKLM:\System\CurrentControlSet\Control\SecurePipeServers\Winreg

Steps to Reproduce

It appears to be a "false positive". It is not possible to add the "builtin\administrator" group to give permissions on this registry key.

kaltokri commented 1 year ago

Running Main.ps1 -Verbose give this feedback in the log:

------------------------------------
[2023-03-13 04:36:57]   [INFO]  Start Step Registry Permissions
[2023-03-13 04:36:57]   [INFO]  Start validating Registry Permissions
[2023-03-13 04:36:57]   [VERBOSE]   Get Name value for SID: S-1-5-32-544
[2023-03-13 04:36:57]   [VERBOSE]   SID name is: BUILTIN\Administrators
[2023-03-13 04:36:57]   [DEBUG] Check user permissions: 'FullControl' on path: 'HKLM:\System\CurrentControlSet\Control\SecurePipeServers\Winreg' to user\group: 'BUILTIN\Administrators'
[2023-03-13 04:36:57]   [VERBOSE]   Current permissions on path: 'HKLM:\System\CurrentControlSet\Control\SecurePipeServers\Winreg': 

Path   : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SecurePipeServers\Winr
         eg
Owner  : NT AUTHORITY\SYSTEM
Group  : NT AUTHORITY\SYSTEM
Access : CREATOR OWNER Allow  FullControl
         NT AUTHORITY\SYSTEM Allow  FullControl
         BUILTIN\Administrators Allow  FullControl
Audit  : 
Sddl   : O:SYG:SYD:PAI(A;CIIO;KA;;;CO)(A;CI;KA;;;SY)(A;CI;KA;;;BA)

[2023-03-13 04:36:57]   [INFO]  Finish validating Registry Permissions
[2023-03-13 04:36:57]   [INFO]  Finished Step Registry Permissions
[2023-03-13 04:36:57]   [DEBUG] Registry Permissions (Warning)

So the Script is not able to check it the right way. It still give the warning from UnXQglez's comment.