2018-06-27 09:20:20 +02:00
|
|
|
title: Malicious PowerShell Keywords
|
2019-11-12 23:12:27 +01:00
|
|
|
id: f62176f3-8128-4faa-bf6c-83261322e5eb
|
2017-03-05 01:47:25 +01:00
|
|
|
status: experimental
|
2018-06-27 09:20:20 +02:00
|
|
|
description: Detects keywords from well-known PowerShell exploitation frameworks
|
2018-01-28 02:24:16 +03:00
|
|
|
references:
|
|
|
|
|
- https://adsecurity.org/?p=2921
|
2018-07-24 10:56:41 +02:00
|
|
|
tags:
|
|
|
|
|
- attack.execution
|
2020-06-16 14:46:08 -06:00
|
|
|
- attack.t1059.001
|
2020-08-24 00:01:50 +00:00
|
|
|
- attack.t1086 #an old one
|
2017-03-05 01:47:25 +01:00
|
|
|
author: Sean Metcalf (source), Florian Roth (rule)
|
2020-01-30 16:07:37 +01:00
|
|
|
date: 2017/03/05
|
2021-10-16 08:18:49 +02:00
|
|
|
modified: 2021/10/16
|
2017-03-05 01:47:25 +01:00
|
|
|
logsource:
|
2017-03-21 10:22:13 +01:00
|
|
|
product: windows
|
2021-10-16 08:18:49 +02:00
|
|
|
category: ps_script
|
2019-06-29 15:35:59 +03:00
|
|
|
definition: 'It is recommended to use the new "Script Block Logging" of PowerShell v5 https://adsecurity.org/?p=2277'
|
2017-03-05 01:47:25 +01:00
|
|
|
detection:
|
2021-08-21 09:08:38 +02:00
|
|
|
Malicious:
|
|
|
|
|
ScriptBlockText|contains:
|
|
|
|
|
- "AdjustTokenPrivileges"
|
|
|
|
|
- "IMAGE_NT_OPTIONAL_HDR64_MAGIC"
|
|
|
|
|
- "Microsoft.Win32.UnsafeNativeMethods"
|
|
|
|
|
- "ReadProcessMemory.Invoke"
|
|
|
|
|
- "SE_PRIVILEGE_ENABLED"
|
|
|
|
|
- "LSA_UNICODE_STRING"
|
|
|
|
|
- "MiniDumpWriteDump"
|
|
|
|
|
- "PAGE_EXECUTE_READ"
|
|
|
|
|
- "SECURITY_DELEGATION"
|
|
|
|
|
- "TOKEN_ADJUST_PRIVILEGES"
|
|
|
|
|
- "TOKEN_ALL_ACCESS"
|
|
|
|
|
- "TOKEN_ASSIGN_PRIMARY"
|
|
|
|
|
- "TOKEN_DUPLICATE"
|
|
|
|
|
- "TOKEN_ELEVATION"
|
|
|
|
|
- "TOKEN_IMPERSONATE"
|
|
|
|
|
- "TOKEN_INFORMATION_CLASS"
|
|
|
|
|
- "TOKEN_PRIVILEGES"
|
|
|
|
|
- "TOKEN_QUERY"
|
|
|
|
|
- "Metasploit"
|
|
|
|
|
- "Mimikatz"
|
|
|
|
|
condition: Malicious
|
2017-03-05 01:47:25 +01:00
|
|
|
falsepositives:
|
|
|
|
|
- Penetration tests
|
|
|
|
|
level: high
|