Follow these steps to create a Storage Account and SAS Token via the Azure Portal.
- Go to the Azure Portal.
- Navigate to Storage accounts and click Create.
- Configure the following:
- Subscription: Select your subscription.
- Resource Group: Click Create new or select an existing one.
- Storage Account Name: Enter a unique name (e.g., 7200727c985343598e3646).
- Redundancy: Locally Redundant Storage (LRS).
- Click Review + Create, then Create.
- Go to Storage accounts in the Azure Portal.
- Click on your storage account (mystorageaccount12345).
- In the left menu, select Shared Access Signature.
- Configure:
- Permissions: Check all (Read, Write, Delete, List, Add, Create, Update, Process).
- Allowed Services: Select Blob, Queue, Table.
- Allowed Resource Types: Select Service, Container, Object.
- Expiry Date: Set to 3 months from today.
- Protocol: Choose HTTPS only.
- Click Generate SAS and connection string.
- Copy the SAS Token and Blob Service SAS URL.
- Copy your storage bin domain and SAS token value.
- Modify
/agent/config.jsand/client/config.jsto have the storage domain and SAS token.
- The SAS token provides full access to the storage account.
- If your payload is reversed they will be able to use the SAS token to read the C2 channels, provided they also have the AES key.