Skip to content

Run individual configuration, compliance and security controls or full compliance benchmarks for CIS across all of your GCP projects using Steampipe.

License

Notifications You must be signed in to change notification settings

TheInverseKey/steampipe-mod-gcp-compliance-basline

 
 

Repository files navigation

GCP Compliance Mod for Steampipe

80+ checks covering industry defined security best practices for Google Cloud services.

Includes full support for v1.2.0 CIS, v1.3.0 CIS, v2.0.0 CIS, CFT Scorecard and Forseti Security benchmarks.

Run checks in a dashboard: image

Or in a terminal: image

Includes support for:

  1. Identity and Access Management
  2. Logging and Monitoring
  3. Networking
  4. Virtual Machines
  5. Storage
  6. Cloud SQL Database Services
  7. BigQuery

Getting started

Installation

Download and install Steampipe (https://steampipe.io/downloads). Or use Brew:

brew tap turbot/tap
brew install steampipe

Install the GCP plugin with Steampipe:

steampipe plugin install gcp

Clone:

git clone https://github.com/turbot/steampipe-mod-gcp-compliance.git
cd steampipe-mod-gcp-compliance

Usage

Start your dashboard server to get started:

steampipe dashboard

By default, the dashboard interface will then be launched in a new browser window at http:https://localhost:9194. From here, you can run benchmarks by selecting one or searching for a specific one.

Instead of running benchmarks in a dashboard, you can also run them within your terminal with the steampipe check command:

Run all benchmarks:

steampipe check all

Run a single benchmark:

steampipe check benchmark.cis_v130

Run a specific control:

steampipe check control.cis_v130_2_1

Different output formats are also available, for more information please see Output Formats.

Credentials

This mod uses the credentials configured in the Steampipe GCP plugin.

Configuration

No extra configuration is required.

Common and Tag Dimensions

The benchmark queries use common properties (like connection_name, location and project) and tags that are defined in the form of a default list of strings in the mod.sp file. These properties can be overwritten in several ways:

  • Copy and rename the steampipe.spvars.example file to steampipe.spvars, and then modify the variable values inside that file

  • Pass in a value on the command line:

    steampipe check benchmark.cis_v200 --var 'common_dimensions=["connection_name", "location", "project"]'
    steampipe check benchmark.cis_v200 --var 'tag_dimensions=["environment", "owner"]'
  • Set an environment variable:

    SP_VAR_common_dimensions='["connection_name", "location", "project"]' steampipe check control.cis_v120_6_2_4
    SP_VAR_tag_dimensions='["environment", "owner"]' steampipe check control.cis_v120_6_2_4

Contributing

If you have an idea for additional compliance controls, or just want to help maintain and extend this mod (or others) we would love you to join the community and start contributing. (Even if you just want to help with the docs.)

Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.

Want to help but not sure where to start? Pick up one of the help wanted issues:

About

Run individual configuration, compliance and security controls or full compliance benchmarks for CIS across all of your GCP projects using Steampipe.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • HCL 100.0%