Powershell
Description
Using PowerShell to manually update the Kerberos Pre Authentication flag on a domain account using Set-ADAccountControl.
MITRE ATT&CK Techniques
| ID | Technique | Tactic |
|---|---|---|
| T1558.004 | AS-REP Roasting | Credential Access |
Environment Details
| Field | Value |
|---|---|
| Environment | attack_range |
| Directory | powershell |
| Test Date | 2022-02-22 |
Datasets
The following datasets were collected during this attack simulation:
Windows-Powershell-Xml
- Path:
/datasets/attack_techniques/T1558.004/powershell/windows-powershell-xml.log - Sourcetype:
XmlWinEventLog - Source:
XmlWinEventLog:Microsoft-Windows-PowerShell/Operational
Windows-Security-Xml
- Path:
/datasets/attack_techniques/T1558.004/powershell/windows-security-xml.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 |
|---|---|---|---|---|
| Kerberos Pre-Authentication Flag Disabled with PowerShell | TTP |
Endpoint | T1558.004 | Active Directory Kerberos Attacks |
| Kerberos Pre-Authentication Flag Disabled in UserAccountControl | TTP |
Endpoint | T1558.004 | Active Directory Kerberos Attacks, BlackSuit Ransomware |
Usage Instructions
Replay with Splunk Attack Data
Replay attack data with replay.py from Splunk Attack Data.
1python replay.py --dataset /datasets/attack_techniques/T1558.004/powershell/windows-powershell-xml.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