Encoded Powershell
Description
Manual generation of encoded powershell command
MITRE ATT&CK Techniques
| ID | Technique | Tactic |
|---|---|---|
| T1059.001 | PowerShell | Execution |
Environment Details
| Field | Value |
|---|---|
| Environment | attack_range |
| Directory | encoded_powershell |
| Test Date | 2021-01-19 |
Datasets
The following datasets were collected during this attack simulation:
Explorer_spawns_windows-Sysmon
- Path:
/datasets/attack_techniques/T1059.001/encoded_powershell/explorer_spawns_windows-sysmon.log - Sourcetype:
XmlWinEventLog - Source:
XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
Padded_windows-Sysmon
- Path:
/datasets/attack_techniques/T1059.001/encoded_powershell/padded_windows-sysmon.log - Sourcetype:
XmlWinEventLog - Source:
XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
Windows-Sysmon
- Path:
/datasets/attack_techniques/T1059.001/encoded_powershell/windows-sysmon.log - Sourcetype:
XmlWinEventLog - Source:
XmlWinEventLog:Microsoft-Windows-Sysmon/Operational
Windows-Security
- Path:
/datasets/attack_techniques/T1059.001/encoded_powershell/windows-security.log - Sourcetype:
XmlWinEventLog - Source:
XmlWinEventLog:Security
Related Detections
The following detections in our security content repository use this attack data for testing:
| Detection Name | Type | Source | MITRE ATT&CK | Analytic Story |
|---|---|---|---|---|
| Windows Explorer.exe Spawning PowerShell or Cmd | Hunting |
Endpoint | T1059.001, T1204.002 | ZDI-CAN-25373 Windows Shortcut Exploit Abused as Zero-Day |
| Malicious PowerShell Process - Execution Policy Bypass | Anomaly |
Endpoint | T1059.001 | DHS Report TA18-074A, Volt Typhoon, China-Nexus Threat Activity, AsyncRAT, HAFNIUM Group, Salt Typhoon, XWorm, DarkCrystal RAT, 0bj3ctivity Stealer, APT37 Rustonotto and FadeStealer |
| Windows Explorer LNK Exploit Process Launch With Padding | TTP |
Endpoint | T1059.001, T1204.002 | ZDI-CAN-25373 Windows Shortcut Exploit Abused as Zero-Day |
Usage Instructions
Replay with Splunk Attack Data
Replay attack data with replay.py from Splunk Attack Data.
1python replay.py --dataset /datasets/attack_techniques/T1059.001/encoded_powershell/explorer_spawns_windows-sysmon.log --index attack_data
Manual Import
- Download the dataset files from the paths listed above
- Configure your Splunk instance with the appropriate sourcetypes
- Import the logs using the Splunk Add Data wizard
Related Content
Find more detections and analytics for this attack technique in our security content repository.
Source: GitHub | Version: 1.0