2021-12-29 17:47:43 +01:00
title : Powershell LocalAccount Manipulation
id : 4fdc44df-bfe9-4fcc-b041-68f5a2d3031c
2023-01-27 06:48:34 +01:00
status : test
2021-12-29 17:47:43 +01:00
description : |
2022-07-11 14:11:53 +01:00
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
2021-12-29 17:47:43 +01:00
references :
2022-07-11 14:11:53 +01:00
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1098/T1098.md#atomic-test-1---admin-account-manipulate
2024-07-02 06:00:11 -04:00
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/?view=powershell-5.1
2021-12-29 17:47:43 +01:00
author : frack113
2024-08-12 12:02:50 +02:00
date : 2021-12-28
2022-10-26 09:43:39 +02:00
tags :
- attack.persistence
- attack.t1098
2021-12-29 17:47:43 +01:00
logsource :
product : windows
category : ps_script
2023-01-04 17:49:32 +01:00
definition: 'Requirements : Script Block Logging must be enabled'
2021-12-29 17:47:43 +01:00
detection :
selection :
ScriptBlockText|contains :
- 'Disable-LocalUser'
- 'Enable-LocalUser'
- 'Get-LocalUser'
- 'Set-LocalUser'
- 'New-LocalUser'
- 'Rename-LocalUser'
- 'Remove-LocalUser'
condition : selection
falsepositives :
2022-07-11 14:11:53 +01:00
- Legitimate administrative script
2021-12-29 17:47:43 +01:00
level : medium