-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…cess new: PowerShell Web Access Feature Enabled Via DISM new: PowerShell Web Access Installation - PsScript --------- Co-authored-by: nasbench <[email protected]>
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
rules/windows/powershell/powershell_script/posh_ps_powershell_web_access_installation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
title: PowerShell Web Access Installation - PsScript | ||
id: 5f9c7f1a-7c21-4c39-b2f3-8d8006e0e51f | ||
status: test | ||
description: Detects the installation and configuration of PowerShell Web Access, which could be used for remote access and potential abuse | ||
references: | ||
- https://docs.microsoft.com/en-us/powershell/module/powershellwebaccess/install-pswawebapplication | ||
- https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-241a | ||
- https://gist.github.com/MHaggis/7e67b659af9148fa593cf2402edebb41 | ||
author: Michael Haag | ||
date: 2024-09-03 | ||
tags: | ||
- attack.persistence | ||
- attack.t1059.001 | ||
logsource: | ||
product: windows | ||
category: ps_script | ||
definition: 'Requirements: Script Block Logging must be enabled' | ||
detection: | ||
selection_install: | ||
ScriptBlockText|contains: 'Install-WindowsFeature WindowsPowerShellWebAccess' | ||
selection_config: | ||
ScriptBlockText|contains: 'Install-PswaWebApplication' | ||
selection_auth: | ||
ScriptBlockText|contains|all: | ||
- 'Add-PswaAuthorizationRule' | ||
- '-UserName *' | ||
- '-ComputerName *' | ||
condition: 1 of selection_* | ||
falsepositives: | ||
- Legitimate PowerShell Web Access installations by administrators | ||
level: high |
29 changes: 29 additions & 0 deletions
29
.../windows/process_creation/proc_creation_win_dism_enable_powershell_web_access_feature.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
title: PowerShell Web Access Feature Enabled Via DISM | ||
id: 7e8f2d3b-9c1a-4f67-b9e8-8d9006e0e51f | ||
status: test | ||
description: Detects the use of DISM to enable the PowerShell Web Access feature, which could be used for remote access and potential abuse | ||
references: | ||
- https://docs.microsoft.com/en-us/powershell/module/dism/enable-windowsoptionalfeature | ||
- https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-241a | ||
- https://gist.github.com/MHaggis/7e67b659af9148fa593cf2402edebb41 | ||
author: Michael Haag | ||
date: 2024-09-03 | ||
tags: | ||
- attack.persistence | ||
- attack.t1548.002 | ||
logsource: | ||
category: process_creation | ||
product: windows | ||
detection: | ||
selection_img: | ||
- Image|endswith: '\dism.exe' | ||
- OriginalFileName: 'DISM.EXE' | ||
selection_cli: | ||
CommandLine|contains|all: | ||
- 'WindowsPowerShellWebAccess' | ||
- '/online' | ||
- '/enable-feature' | ||
condition: all of selection_* | ||
falsepositives: | ||
- Legitimate PowerShell Web Access installations by administrators | ||
level: high |
File renamed without changes.