Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Mondoo GCP security policy and gitignore #19

Merged
merged 4 commits into from
Oct 5, 2022

Conversation

scottford-io
Copy link
Contributor

This PR adds an initial default policy for GCP by Mondoo. It also adds a .gitignore to the project.

Each control has severity, audit, and remediation steps.

cnspec scan gcp --policy-bundle core/mondoo-gcp-security.mql.yaml 
→ loaded configuration from /Users/scottford/.config/mondoo/edge.yaml using source $MONDOO_CONFIG_PATH
! Scanning with local policy bundles will switch into --incognito mode by default. Your results will not be sent upstream.
! invalid github token via environment variable, ignoring it
→ discover related assets for 1 asset(s)
→ resolved assets resolved-assets=1
→ connecting to asset GCP project mondoo-dev-262313 (api)
→ client> send all results asset=//policy.api.mondoo.com/assets/blahblahblah
█████████████████████████████░░░░░░  83% GCP project mondoo-dev-foo
Data queries:

Controls:
✕ Fail:  Ensure that instances are not configured to use the default service account D 20
✕ Fail:  Ensure instances are not configured to use the default service account with full access to all Cloud APIs D 10
✕ Fail:  Ensure oslogin is enabled for compute instances C 30
✕ Fail:  Ensure "Block Project-wide SSH keys" is enabled for VM instances C 30
✕ Fail:  Ensure that Cloud Storage buckets are not anonymously or publicly accessible D 10
✕ Fail:  Ensure that Cloud Storage buckets have uniform bucket-level access enabled C 40


Summary
========================

Target:     GCP project mondoo-dev-262313
Score:      D    10/100     (100% completed)
✓ Passed:   0% (0)
✕ Failed:   ███████████████ 100% (6)
! Errors:   0% (0)
» Skipped:  0% (0)

Policies:
D  10  Google Cloud Security (GCP) by Mondoo

image

Signed-off-by: Scott Ford scott@scottford.io

@chris-rock
Copy link
Member

woooooot

.gitignore Show resolved Hide resolved
renames policy

Signed-off-by: Scott Ford <scott@scottford.io>
@scottford-io scottford-io force-pushed the scottford/adds-mondoo-gcp-security branch from 49febcc to 8bb5b7e Compare October 5, 2022 22:03
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @scottford-io I added some nit pics

core/mondoo-gcp-security.mql.yaml Outdated Show resolved Hide resolved
core/mondoo-gcp-security.mql.yaml Show resolved Hide resolved
scottford-io and others added 3 commits October 5, 2022 15:18
Co-authored-by: Tim Smith <tsmith84@gmail.com>
Signed-off-by: Scott Ford <49754039+scottford-io@users.noreply.github.com>
Co-authored-by: Tim Smith <tsmith84@gmail.com>
Signed-off-by: Scott Ford <49754039+scottford-io@users.noreply.github.com>
Signed-off-by: Scott Ford <scott@scottford.io>
@scottford-io scottford-io merged commit 6501b25 into main Oct 5, 2022
@scottford-io scottford-io deleted the scottford/adds-mondoo-gcp-security branch October 5, 2022 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants