From f756a442c3ca53beddd3b2fc5c969dfa5c09e131 Mon Sep 17 00:00:00 2001 From: m4nbat Date: Tue, 28 Feb 2023 18:57:28 +0000 Subject: [PATCH] Update T1136.003.yaml Updated T1136.003 Create Account: Cloud Account and added a new atomic test for a user being created in azure --- atomics/T1136.003/T1136.003.yaml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/atomics/T1136.003/T1136.003.yaml b/atomics/T1136.003/T1136.003.yaml index 8c1ecee0..0f28d9ec 100644 --- a/atomics/T1136.003/T1136.003.yaml +++ b/atomics/T1136.003/T1136.003.yaml @@ -26,3 +26,38 @@ atomic_tests: aws iam delete-user --user-name #{username} name: sh elevation_required: false +- name: Azure - Create a new user + auto_generated_guid: # This key and/or it's value will be added by the CI build after submitting a Pull Request + description: | + Creates a new user in Azure. Upon successful creation, a new user will be created. Adversaries create new users so that their malicious activity does not interupt the normal functions of the compromised users and can remain undetected for a long time + supported_platforms: + - iaas:azure + - azure-ad + input_arguments: + username: + description: Username displayed for the user to create in Azure + type: string + default: "atomicredteam" + password: + description: Password for the new Azure user being created + type: string + default: "atomicredteam12345ART-" + id: + description: User principal name (UPN) for the new Azure user being created format email address + type: string + default: "atomicredteam@yourdomain.com" + dependencies: + - description: | + Check if az PowerShell module is installed and it is connected to the target Azure tenant using Connect-AzAccount + prereq_command: | + Get-InstalledModule -Name az + Connect-AzAccount + get_prereq_command: | + echo Please install the az PowerShell module using the following command: Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force. Then connect to your Azure tenant using: Connect-AzAccount + executor: + command: | + az ad user create --display-name #{username} --password #{password} --user-principal-name #{id} + cleanup_command: | + az ad user delete --id #{id} + name: powershell + elevation_required: false