Onboard GCP Accounts for Agentless Scanning
Prisma Cloud gives you the flexibility to choose between agentless security and agent-based security using Defenders. Agentless scanning lets you inspect the risks and vulnerabilities of a cloud workload without installing an agent or affecting the execution of the workload. Prisma Cloud supports agentless scanning for vulnerabilities and compliance on hosts, clusters, and containers. To learn more about how agentless scanning works, see the How Agentless Scanning Works?[How Agentless Scanning Works?]
Agentless scanning for GCP accounts can use one of the following scanning modes.
To onboard your GCP account for agentless scanning in same account mode you need to complete the following tasks.
- Onboard the GCP account you want to use for agentless scanning in Prisma Cloud.
- Configure the onboarded account in Prisma Cloud.
To use the hub account mode, you must complete the following steps.
- Onboard the GCP account to use as the hub account for agentless scanning to Prisma Cloud.
- Onboard the GCP account or accounts to Prisma Cloud that you want to scan using Prisma Cloud agentless scanning.
- Configure the onboarded target accounts to use the onboarded hub account.
Prerequisites
You need the following items to onboard a GCP account for agentless scanning.
- A GCP project with the permissions needed to create a service account and roles under this project.
- At least one Google Compute VM instance deployed with running containers to validate scanning.
- A working connection from your cloud account to Prisma Cloud.
Onboard your GCP Account to Prisma Cloud
- Log in to the Prisma Cloud administrative console.
- SelectSettings > Cloud Accounts > Add Cloud Account.
- Select GCP as the cloud provider.
- Provide the following information in theGet Startedpage.
- Enter an account name to identify the account in Prisma Cloud.
- ClickNext.
- Provide the following information in theAccount Detailspage.
- UnderOnboard, selectProject.
- Enter the ID of your GCP project.
- ClickNext.
- Select theSecurity Capabilitiesyou need. TheAgentless ScanningandServerless Function Scanningare enabled by default.
- ClickNext.
- In theConfigure Accountpage, selectService Account Key
- ClickDownload Terraform Script.
- Login to the Google Cloud shell.
- Upload the Terraform script you downloaded from Prisma Cloud.
- On the Google Cloud shell page, clickMore- the three dots on the upper right corner.
- ClickUpload.
- Select the downloaded Terraform script.
- ClickUpload.
- Initialize the Terraform script with the following command in the Google Cloud shell console.terraform initOnce initialization is complete, apply the Terraform script with the following command in the Google Cloud shell console.terraform apply
- If a popup to authorize appears, accept.
- Enter yes in the console when asked.
Once the Terraform script is applied, it created the service account file on the same folder using the project ID as prefix. Download the service account file.- On the Google Cloud shell page, clickMore- the three dots on the upper right corner.
- ClickDownload.
- Select the created service account file.
- ClickDownload.
In theConfigure Accountpage, drag and drop or upload the service account file.ClickNext.Select the account group in Prisma Cloud to associate with your GCP account in theAssign Account Groupspage.ClickNext.Review the status of each of the services and fix any issues.ClickSave. - Log in to the Prisma Cloud administrative console.
- SelectCompute > Manage > Cloud Accounts.
- Click the edit button of your cloud account.
- Go to theAgentless Scanningsection.
- Expand theAdvanced settingsand provide the following information.
- Enable Permissions check to verify that the permissions are correct before running a scan.
- Scanning type: For GCP accounts, you can decide between two scanning modes.
- Same Account: Scan hosts of your GCP account using that same account. Use this value for the account you want to use as the hub account.
- Hub Account: Scan hosts of your GCP account using a different account. Select another onboarded account from the list to scan the account you are configuring.
- Enter aProxyvalue if traffic leaving your GCP tenant uses a proxy.
- UnderScan scopeyou can chooseAll regionsto scan in all GCP regions. If you choose Custom regions, enter the AWS region in which you want Prisma Cloud to scan.
- Enter tags underExclude VMs by tagsto further limit the scope of the scan.
- Choose whether or not toScan non running hosts.
- Choose whether or not to enableAuto-scale scanning. If you disable auto-scale, specify number of scanners Prisma Cloud should employ.
- Click Next.
- Leave theDiscovery featuresunchanged.
- ClickSaveto return toCompute > Manage > Cloud accounts.
Configure Agentless Scanning for GCP Accounts
Start an Agentless Scan
Agentless scans start immediately after onboarding the cloud account.
By default, agentless scans are performed every 24 hours, but you can change the interval on the
Manage > System > Scan
page under Scheduling > Agentless
.
To manually start a scan, complete the following steps.