Skip to content

ESC5 Scan Ignoring Deny Permissions #268

@MNTech68

Description

@MNTech68

Describe the Bug

When scanning, it appears the scans are only reading applied permissions to the server. They do not take into account the effective permissions (such as DENY being added at the computer level in AD).

Steps To Reproduce

Add permissions to a ADCS server that would be flagged by ESC5 scan such as "WriteProperty" . Scan and find that this will be reported in Locksmith (as it should be). Then go into AD and explicitly DENY the "WriteProperty" for the same user account. Deny always takes precedence. Scan again, and find that even though the effective access for this use is now deny, it is still reported that this account presents a risk.

Expected Behavior

Effective permissions should be taken into account.

Environment

Version Name Repository Description


2026.1.... Locksmith PSGallery
Server 2022
Local PowerShell
Major Minor Build Revision


5 1 20348 4294

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions