Powershell LocalAccount Manipulation
Adversaries may manipulate accounts to maintain access to victim systems. Account manipulation may consist of any action that preserves adversary access to a compromised account, such as modifying credentials or permission groups
Sigma rule (View on GitHub)
1title: Powershell LocalAccount Manipulation
2id: 4fdc44df-bfe9-4fcc-b041-68f5a2d3031c
3status: test
4description: |
5 Adversaries may manipulate accounts to maintain access to victim systems.
6 Account manipulation may consist of any action that preserves adversary access to a compromised account, such as modifying credentials or permission groups
7references:
8 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1098/T1098.md#atomic-test-1---admin-account-manipulate
9 - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/?view=powershell-5.1
10author: frack113
11date: 2021-12-28
12tags:
13 - attack.privilege-escalation
14 - attack.persistence
15 - attack.t1098
16logsource:
17 product: windows
18 category: ps_script
19 definition: 'Requirements: Script Block Logging must be enabled'
20detection:
21 selection:
22 ScriptBlockText|contains:
23 - 'Disable-LocalUser'
24 - 'Enable-LocalUser'
25 - 'Get-LocalUser'
26 - 'Set-LocalUser'
27 - 'New-LocalUser'
28 - 'Rename-LocalUser'
29 - 'Remove-LocalUser'
30 condition: selection
31falsepositives:
32 - Legitimate administrative script
33level: medium
References
Related rules
- A Member Was Added to a Security-Enabled Global Group
- A Member Was Removed From a Security-Enabled Global Group
- A New Trust Was Created To A Domain
- A Security-Enabled Global Group Was Deleted
- AWS IAM Backdoor Users Keys