{"id":"99c4658d-2c5e-4d87-828d-7c066ca537c3","title":"Disable-WindowsOptionalFeature Command PowerShell","description":"Detect built in PowerShell cmdlet Disable-WindowsOptionalFeature, Deployment Image Servicing and Management tool.\nSimilar to DISM.exe, this cmdlet is used to enumerate, install, uninstall, configure, and update features and packages in Windows images\n","author":"frack113","status":"test","level":"high","date":"2022-09-10","modified":"","tags":["attack.defense-impairment","attack.t1685"],"technique_ids":["T1685"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Unknown"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/5b67c9b141fa3918017f8fa44f2f88f0b1ecb9e1/atomics/T1562.001/T1562.001.md","https://learn.microsoft.com/en-us/powershell/module/dism/disable-windowsoptionalfeature?view=windowsserver2022-ps"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_disable_windows_optional_feature.yml","source_sha256":"bc254c9c01bd9f54d896ac5055bb96e52fbb0181e67dac9d8fc9e5c608ffbfca","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_disable_windows_optional_feature.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Disable-WindowsOptionalFeature Command PowerShell\nid: 99c4658d-2c5e-4d87-828d-7c066ca537c3\nstatus: test\ndescription: |\n    Detect built in PowerShell cmdlet Disable-WindowsOptionalFeature, Deployment Image Servicing and Management tool.\n    Similar to DISM.exe, this cmdlet is used to enumerate, install, uninstall, configure, and update features and packages in Windows images\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/5b67c9b141fa3918017f8fa44f2f88f0b1ecb9e1/atomics/T1562.001/T1562.001.md\n    - https://learn.microsoft.com/en-us/powershell/module/dism/disable-windowsoptionalfeature?view=windowsserver2022-ps\nauthor: frack113\ndate: 2022-09-10\ntags:\n    - attack.defense-impairment\n    - attack.t1685\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection_cmd:\n        ScriptBlockText|contains|all:\n            - 'Disable-WindowsOptionalFeature'\n            - '-Online'\n            - '-FeatureName'\n    selection_feature:\n        # Add any important windows features\n        ScriptBlockText|contains:\n            - 'Windows-Defender-Gui'\n            - 'Windows-Defender-Features'\n            - 'Windows-Defender'\n            - 'Windows-Defender-ApplicationGuard'\n            # - 'Containers-DisposableClientVM' # Windows Sandbox\n    condition: all of selection*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1685","id":"T1685","name":"Disable or Modify Tools","page":"techniques/enterprise/T1685/"}],"data_path":"data/detection-rules/99c4658d-2c5e-4d87-828d-7c066ca537c3.json","kind":"sigma"}
