LoFP LoFP / legitimate powershell web access installations by administrators

Techniques

Sample rules

PowerShell Web Access Feature Enabled Via DISM

Description

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

Detection logic

condition: all of selection_*
selection_cli:
  CommandLine|contains|all:
  - WindowsPowerShellWebAccess
  - /online
  - /enable-feature
selection_img:
- Image|endswith: \dism.exe
- OriginalFileName: DISM.EXE

PowerShell Web Access Installation - PsScript

Description

Detects the installation and configuration of PowerShell Web Access, which could be used for remote access and potential abuse

Detection logic

condition: 1 of selection_*
selection_auth:
  ScriptBlockText|contains|all:
  - Add-PswaAuthorizationRule
  - -UserName *
  - -ComputerName *
selection_config:
  ScriptBlockText|contains: Install-PswaWebApplication
selection_install:
  ScriptBlockText|contains: Install-WindowsFeature WindowsPowerShellWebAccess