This commit is contained in:
Pete Bryan 2021-03-05 15:34:10 -08:00
Родитель ab5b9808d3
Коммит d33fe20fcf
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -12,15 +12,15 @@ tactics:
relevantTechniques:
- T1011
query: |
SecurityEvent
| where EventID == 4688
| where Process in("powershell.exe","powershell_ise.exe") and CommandLine contains "-e"
| mvexpand SS = split(CommandLine, " ")
| where SS matches regex "[A-Za-z0-9+/]{50,}[=]{0,2}"
| extend DecodeString = base64_decodestring(tostring(SS))
| extend FinalString = replace("\\0", "", DecodeString)
| where FinalString has "tcpclient" and FinalString contains "$" and (FinalString contains "invoke" or FinalString contains "iex")
| extend timestamp = TimeGenerated, AccountCustomEntity = Account, HostCustomEntity = Computer
SecurityEvent
| where EventID == 4688
| where Process in("powershell.exe","powershell_ise.exe") and CommandLine contains "-e"
| mvexpand SS = split(CommandLine, " ")
| where SS matches regex "[A-Za-z0-9+/]{50,}[=]{0,2}"
| extend DecodeString = base64_decodestring(tostring(SS))
| extend FinalString = replace("\\0", "", DecodeString)
| where FinalString has "tcpclient" and FinalString contains "$" and (FinalString contains "invoke" or FinalString contains "iex")
| extend timestamp = TimeGenerated, AccountCustomEntity = Account, HostCustomEntity = Computer
entityMappings:
- entityType: Account
fieldMappings: