Detectionhightest

PowerShell Web Access Feature Enabled Via DISM

Detects the use of DISM to enable the PowerShell Web Access feature, which could be used for remote access and potential abuse

Open in Detection LabConvert ruleBuild Package
Michael HaagCreated 2024-09-037e8f2d3b-9c1a-4f67-b9e8-8d9006e0e51fwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith: '\dism.exe'
        - OriginalFileName: 'DISM.EXE'
    selection_cli:
        CommandLine|contains|all:
            - 'WindowsPowerShellWebAccess'
            - '/online'
            - '/enable-feature'
    condition: all of selection_*
False Positives

Legitimate PowerShell Web Access installations by administrators

Rule Metadata
Rule ID
7e8f2d3b-9c1a-4f67-b9e8-8d9006e0e51f
Status
test
Level
high
Type
Detection
Created
2024-09-03
Path
rules/windows/process_creation/proc_creation_win_dism_enable_powershell_web_access_feature.yml
Raw Tags
attack.privilege-escalationattack.persistenceattack.t1548.002
View on GitHub