{"id":"4fdc44df-bfe9-4fcc-b041-68f5a2d3031c","title":"Powershell LocalAccount Manipulation","description":"Adversaries may manipulate accounts to maintain access to victim systems.\nAccount manipulation may consist of any action that preserves adversary access to a compromised account, such as modifying credentials or permission groups\n","author":"frack113","status":"test","level":"medium","date":"2021-12-28","modified":"","tags":["attack.privilege-escalation","attack.persistence","attack.t1098"],"technique_ids":["T1098"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Legitimate administrative script"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1098/T1098.md#atomic-test-1---admin-account-manipulate","https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/?view=powershell-5.1"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_localuser.yml","source_sha256":"813cb90c7b2a544c424bbce9705723bcc6aa0d6ced2d0f49854ca83ebc9f5c75","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_localuser.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Powershell LocalAccount Manipulation\nid: 4fdc44df-bfe9-4fcc-b041-68f5a2d3031c\nstatus: test\ndescription: |\n    Adversaries may manipulate accounts to maintain access to victim systems.\n    Account manipulation may consist of any action that preserves adversary access to a compromised account, such as modifying credentials or permission groups\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1098/T1098.md#atomic-test-1---admin-account-manipulate\n    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.localaccounts/?view=powershell-5.1\nauthor: frack113\ndate: 2021-12-28\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.t1098\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection:\n        ScriptBlockText|contains:\n            - 'Disable-LocalUser'\n            - 'Enable-LocalUser'\n            - 'Get-LocalUser'\n            - 'Set-LocalUser'\n            - 'New-LocalUser'\n            - 'Rename-LocalUser'\n            - 'Remove-LocalUser'\n    condition: selection\nfalsepositives:\n    - Legitimate administrative script\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1098","id":"T1098","name":"Account Manipulation","page":"techniques/enterprise/T1098/"}],"data_path":"data/detection-rules/4fdc44df-bfe9-4fcc-b041-68f5a2d3031c.json","kind":"sigma"}
