Set Up the Cloud Agent
Prepare a cloud VM and attached identity, install the Pentest Copilot agent, and grant the required provider role.
Complete Cloud Assessment Prerequisites before preparing the agent VM.
1. Prepare the VM and Identity
You can use an existing VM and attached cloud identity or create them for the assessment. Existing infrastructure must be inside the approved cloud scope and meet the same identity, metadata, network, and operating system requirements.
AWS
Use an EC2 instance in the approved account and region. Verify its instance profile contains the approved IAM role, attaching one if needed, and require IMDSv2.
Azure
Use an Azure VM in the approved subscription and resource group. Verify its system-assigned or approved user-assigned managed identity, enabling or attaching one if needed.
Google Cloud
Use a Compute Engine VM in the approved project. Verify its approved service account, attaching one if needed, and use the cloud-platform VM access scope when active testing is planned.
Confirm the VM can reach Pentest Copilot, cloud provider APIs, and the provider metadata service.
The agent uses only the identity supplied through native VM metadata. Do not configure static cloud credentials or local CLI profiles for the agent.
2. Install the Agent
Open Settings -> Agent in Pentest Copilot.
Generate the launcher for the VM operating system.
Run the launcher on the cloud VM.
Confirm the new agent appears as connected in Dashboard -> Agents or Settings -> Agent.
Confirm the displayed host and network details match the VM.
Keep the launcher and bootstrap token out of shell history, tickets, and shared documents. Do not assign an agent ID manually.
3. Grant Cloud Permissions
Use a standard provider role for the simplest setup:
Administrator-equivalent roles are not required for installation or discovery. Use them only when broad active testing is authorized in an isolated environment, and remove them after cleanup. With narrower permissions, the assessment still runs but only authorized checks supported by the attached identity can complete.
For custom roles, provider data-plane access, and the exact discovery actions, see Cloud Permissions.
4. Verify the Setup
Before discovery, confirm:
the agent is connected;
the attached identity matches the approved identity;
the discovery role is assigned;
AWS prefixes, Azure resource group, or Google Cloud project match the approved scope;
required provider APIs are enabled.
Return to Run a Cloud Assessment and start cloud discovery.
Last updated