Permalink
Cannot retrieve contributors at this time
14 lines (14 sloc)
587 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Azure-Sentinel/Hunting Queries/Microsoft 365 Defender/Ransomware/DEV-0270/Add malicious user to Admins and RDP users group via PowerShell.yaml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| id: 44a201c4-502a-4b75-871e-a2dc7f6d2e98 | |
| name: Add malicious user to Admins and RDP users group via PowerShell | |
| description: | | |
| Look for adding a user to Administrators in remote desktop users via PowerShell. | |
| requiredDataConnectors: | |
| - connectorId: MicrosoftThreatProtection | |
| dataTypes: | |
| - DeviceProcessEvents | |
| tactics: | |
| - Persistence | |
| query: | | |
| DeviceProcessEvents | |
| | where InitiatingProcessFileName =~ 'powershell.exe' | |
| | where InitiatingProcessCommandLine has_all('$admins=', 'System.Security.Principal.SecurityIdentifier', 'Translate', '-split', 'localgroup', '/add', '$rdp=') |