Skip to content

Commit 1c8e193

Browse files
committed
fix: remove false negative when AllExtendedRights is granted on an ESC1 template
1 parent ae0a35c commit 1c8e193

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Invoke-Locksmith.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ function Find-ESC1 {
265265
}
266266
if (
267267
($SID -notmatch $SafeUsers) -and
268-
( ( ($entry.ActiveDirectoryRights -match 'ExtendedRight') -and ($entry.ObjectType -eq '0e10c968-78fb-11d2-90d4-00c04f79dc55') ) -or
268+
( ( ($entry.ActiveDirectoryRights -match 'ExtendedRight') -and
269+
( $entry.ObjectType -match '0e10c968-78fb-11d2-90d4-00c04f79dc55|00000000-0000-0000-0000-000000000000' ) ) -or
269270
($entry.ActiveDirectoryRights -match 'GenericAll') )
270271
) {
271272
$Issue = [pscustomobject]@{
@@ -4973,7 +4974,7 @@ function Invoke-Locksmith {
49734974
[System.Management.Automation.PSCredential]$Credential
49744975
)
49754976

4976-
$Version = '2025.9.7'
4977+
$Version = '2025.9.8'
49774978
$LogoPart1 = @'
49784979
_ _____ _______ _ _ _______ _______ _____ _______ _ _
49794980
| | | | |____/ |______ | | | | | |_____|

Locksmith.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
FunctionsToExport = 'Invoke-Locksmith'
99
GUID = 'b1325b42-8dc4-4f17-aa1f-dcb5984ca14a'
1010
HelpInfoURI = 'https://raw.githubusercontent.com/jakehildreth/Locksmith/main/en-US/'
11-
ModuleVersion = '2025.9.7'
11+
ModuleVersion = '2025.9.8'
1212
PowerShellVersion = '5.1'
1313
PrivateData = @{
1414
PSData = @{

Private/Find-ESC1.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
}
5959
if (
6060
($SID -notmatch $SafeUsers) -and
61-
( ( ($entry.ActiveDirectoryRights -match 'ExtendedRight') -and ($entry.ObjectType -eq '0e10c968-78fb-11d2-90d4-00c04f79dc55') ) -or
61+
( ( ($entry.ActiveDirectoryRights -match 'ExtendedRight') -and
62+
( $entry.ObjectType -match '0e10c968-78fb-11d2-90d4-00c04f79dc55|00000000-0000-0000-0000-000000000000' ) ) -or
6263
($entry.ActiveDirectoryRights -match 'GenericAll') )
6364
) {
6465
$Issue = [pscustomobject]@{

0 commit comments

Comments
 (0)