Google Cloud¶
Google Cloud is a public cloud; a service account reads one project (and the extra projects you list for logs).
- What DRACO uses: Project configuration for posture scans and Cloud Audit Logs.
- What for: Compliance and attack paths, detections on audit logs, IP blocks in VPC firewall rules, service account and key disabling, Cloud Armor blocklists.
Add it in Connectors > Add connector: pick Google Cloud, then choose what DRACO collects and what it may change. Add more later with Add a part on its connector page. See Connectors for how connectors, sign-in and tags work.
Parts¶
| Part | What DRACO uses | Access | Permissions |
|---|---|---|---|
| Posture | GCP | read | Viewer (roles/viewer) and Service Usage Consumer (roles/serviceusage.serviceUsageConsumer) on the project, folder or organization to scan. |
| Logs | GCP Cloud Audit Logs | read | Logs Viewer (roles/logging.viewer) on each project (the provider's Viewer role includes it). Data Access logs: Private Logs Viewer (roles/logging.privateLogViewer), with the logs turned on in IAM & Admin > Audit Logs. |
| Response | Block IP (Google Cloud VPC firewall), Disable service account key, Disable service account | write | The permissions of each action below, on a separate service account |
| Enforcement | GCP Cloud Armor | write | Compute.securityPolicies.get and compute.securityPolicies.update (Compute Security Admin) |
Posture¶
Connect the provider in DRACO¶
Step 1: Get the GCP Project ID¶
- Go to the GCP Console
- Locate the Project ID on the welcome screen

Step 2: Access DRACO¶
- Sign in to DRACO, open Connectors, click Add connector and pick Google Cloud: the wizard opens at Link a Provider.
- Add the Project ID and an optional alias (the connector's name), then click Next.
Step 3: Set Up GCP Authentication¶
Select the authentication method you want to use:
- Connect via Service Account Key (Recommended)
- Authenticates as a service identity
- Stable and auditable
- Recommended for production
- Connect via Application Default Credentials
- Scans as your own Google user
- Uses Google Cloud CLI authentication
- Stops working when the user loses access or the refresh token is revoked
Service Account Authentication is the recommended authentication method for automated systems and machine-to-machine interactions, like DRACO. For detailed information about this, refer to the Google Cloud documentation.
First of all, in the same project that you selected in the previous step, you need to create a service account and then generate a key in JSON format for it. For more information about this, you can follow the next Google Cloud documentation tutorials:
For detailed instructions on how to setup Service Account authentication, see the Authentication page.
Paste the whole JSON key file into the Service Account Key field.
- Run the following command in your terminal to authenticate with GCP:
gcloud auth application-default login
-
Once authenticated, get the
Client ID,Client SecretandRefresh Tokenfrom~/.config/gcloud/application_default_credentials.json. -
Paste the
Client ID,Client SecretandRefresh Tokeninto DRACO.
Click Authenticate, then Check connection. When the connection works, launch the first scan (Run now or On a schedule). After Launch Scan, the wizard goes on with Collectors (tick Logs for Cloud Audit Logs) and Responders (tick Enforcement for the Cloud Armor blocklist) on the same connector. Tick nothing more to keep scans only; anything else can be added later with Add a part on the connector page.
Every authentication option, with the exact roles: Google Cloud authentication.
Logs¶
The Google Cloud audit logs data source reads the Admin Activity, System Event and Policy logs (Data Access optional) of the project and of extra projects you list, with the sign-in of the posture part.
- The provider's service account needs Logs Viewer (
roles/logging.viewer, included in Viewer) and, for Data Access logs, Private Logs Viewer with the logs turned on in IAM & Admin > Audit Logs. Data Access logs are off by default in most services and are high volume. - List extra projects, pick the provider and test.
Response¶
Runs response actions in the project from incidents and workflows:
| Action | What it does | Undo | Permissions |
|---|---|---|---|
| Block IP (Google Cloud VPC firewall) | Adds the IP address or range to the firewall rule draco-block-ip, which denies all protocols from it (ingress) or to it (egress) on a VPC network. The rule is created once with the priority you set; give it a lower number than your allow rules. |
Removes the address, and deletes the rule when it holds nothing else. | compute.firewalls.get, compute.firewalls.create, compute.firewalls.update, compute.firewalls.delete, compute.networks.updatePolicy (in Compute Security Admin) |
| Disable service account key | Disables a user-managed key of a service account. The target is the key's resource name as audit logs give it (//iam.googleapis.com/projects/<project>/serviceAccounts/<email>/keys/<key id>), or <email>/keys/<key id>. |
Enables the key. | iam.serviceAccountKeys.get, iam.serviceAccountKeys.disable, iam.serviceAccountKeys.enable (in Service Account Key Admin) |
| Disable service account | Disables a service account by email or unique ID: its keys and tokens stop working. | Enables the account. | iam.serviceAccounts.get, iam.serviceAccounts.disable, iam.serviceAccounts.enable (in Service Account Admin) |
Setup: a second service account, separate from the read-only one of posture and logs.
- In IAM & Admin > Roles create a custom role DracoResponse with only the permissions of the actions you want (and
compute.securityPolicies.getandupdatefor the Cloud Armor blocklist). - In IAM & Admin > Service accounts create draco-response, grant it DracoResponse on the project, and create a JSON key.
- In DRACO, at the Write access step, create a Generic JSON credential with the whole key file. Leave Project id empty in the actions to act in the connected project.
Test asks Google which of the action's permissions the service account holds (testIamPermissions, with the Cloud Resource Manager API on) and names a missing one; it changes nothing.
More: Response actions.
Enforcement¶
Keeps blocklists of threat intel indicators up to date: GCP Cloud Armor.
Setup: Push targets, Setting up the permissions.
If you turn on several parts¶
When you connect Google Cloud once and tick several parts, the wizard shows one guide for all of them: what to check first, the access to create once, one list of permissions that names the part each one is for, the extra steps of each part, and one test that checks every part on its own. Turning a part on later shows only what it adds.
Posture and the audit logs use the same service account (Viewer includes Logs Viewer; Data Access logs add Private Logs Viewer). Response actions and the Cloud Armor blocklist need a separate service account with only the permissions of the parts you turn on, pasted once at the Write access step.
Any part can be skipped (Skip for now) and finished later: the connection is saved with what is done, and its page lists what is not set up yet with a Set up button that opens the wizard at that step.