Skip to content

Give ScaleSec limited access to your GCP organization for a security assessment.

License

Notifications You must be signed in to change notification settings

rolyv/gcp-assessment-setup

Repository files navigation

gcp-assessment-setup

Give ScaleSec limited access to your GCP organization for a security assessment.

scalesec-security-assessment@scalesec-dev.iam.gserviceaccount.com will be added with minimal privliges into your GCP organization.

Prerequisites

The following items are required for a successful setup.

Setup instructions

  1. Open your Google Cloud console.
  2. Open Cloud Shell

Alt Text

  1. Clone this repositry and switch to its directory:
git clone https://github.com/ScaleSec/gcp-assessment-setup.git
cd gcp-assessment-setup/
  1. Edit the manage_security_assessment_role.sh and set the organization name:
ORG_NAME="example.com"

Note: other variables including the ROLE_ID, YAML_PATH, and SERVICE_ACCOUNT should not be changed.

  1. Run the script to set permissions:
bash manage_security_assessment_role.sh create
  1. Run the script to enable APIs:
bash enable_service_apis.sh

From the Admin Console (https://admin.google.com):

The Service Account is required to have permission to impersonate a Super Admin in order to use the Directory API to test if all users have MFA enabled (CIS 1.2). This Service Account will have minimal permission scopes as laid out in Step 9.

Google Documentation around this subject is located here. The Customer will also need to provide the email address of the Super Admin to impersonate.

  1. Sign into the Admin Console with a Super User Account:

drawing

  1. Select Security --> Advanced Settings --> Manage API Client Access

drawing

  1. Input 101372154367894419728 into the Client Name Field. Add https://www.googleapis.com/auth/admin.directory.user.readonly,https://www.googleapis.com/auth/admin.directory.domain.readonlyto the API Scopes Field

drawing

About

Give ScaleSec limited access to your GCP organization for a security assessment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages