Skip to content

03Governance and loggingService 3 of 13

Security Command Centersecurity hardening

Run Security Command Center at org level: tiers, Security Health Analytics, threat detection, custom modules, mute rules, exports, postures and IAM.

Baseline
10 controls
Category
Governance and logging
Updated
Reading
10 min read

Security Command Center (SCC) is Google Cloud's built-in posture and threat detection service: Security Health Analytics scans resource configuration for misconfigurations, the threat detection services read audit logs and runtime telemetry for attacks, and everything lands as findings you can query, mute and export. The way it fails is rarely technical. It gets activated on one project instead of the organization, so new projects are invisible; it stays on a tier that does not include threat detection while the team assumes it is covered; nobody routes findings anywhere, so a PUBLIC_BUCKET_ACL or a leaked service account key finding sits in a console that no one opens; or mute rules written to silence noise end up hiding real exposure. This page covers choosing the tier, activating at the organization, tuning the detectors, and wiring findings to the people who fix them.

Baseline controls

Treat SCC itself as a configured system with owners, not a dashboard. CIS IDs refer to the CIS GCP Foundations Benchmark v5.0.1.

ControlWhyHow to checkCIS / SCC
Activate SCC at the organization levelCovers every current and future projectConsole: Security > Security Command Center > Settingsn/a
Run a tier that includes threat detectionStandard has no ETD, VM or container detectionConsole: Security Command Center > Settings > Tier detailsn/a
Enable all Security Health Analytics detectorsFull misconfiguration coveragegcloud scc manage services describe sha --organization=organizations/ORG_IDn/a
Keep Data Access audit logs onEvent Threat Detection reads themgcloud organizations get-iam-policy ORG_ID --format="yaml(auditConfigs)"CIS 2.1, AUDIT_LOGGING_DISABLED
Enable Event Threat Detection, Container, VM and Cloud Run Threat DetectionRuntime and log-based attack detectiongcloud scc manage services list --organization=organizations/ORG_IDn/a
Route high and critical findings to Pub/SubFindings reach an owner in minutesgcloud scc notifications list --organization=ORG_ID --location=globaln/a
Export findings to BigQueryHistory and trend reportinggcloud scc bqexports list --organization=ORG_ID --location=globaln/a
Give every mute rule an owner and reasonMutes do not hide real exposuregcloud scc muteconfigs list --organization=ORG_ID --location=globaln/a
Bind SCC roles to groups, least privilegeFindings reveal your weak spotsgcloud organizations get-iam-policy ORG_IDn/a
Deploy a security posture on the organizationDrift from intended policy becomes a findinggcloud scc posture-deployments list --organization=ORG_ID --location=globaln/a

Service tiers

As of November 2026 the tiers are:

TierActivationWhat it adds
Standard-legacyOlder organizationsSecurity Health Analytics (subset), Web Security Scanner custom scans, BigQuery and Pub/Sub exports
StandardOrganization onlyBasic posture, limited AI Protection, limited data security posture and Compliance Manager; no threat detection; Security Health Analytics only for organizations migrated from Standard-legacy
PremiumProject or organizationAll Security Health Analytics detectors and custom modules, Event Threat Detection, Container Threat Detection, Virtual Machine Threat Detection, Cloud Run Threat Detection, attack path simulation, compliance monitoring, security posture
Enterprise (deprecated)Organization onlyPremium plus multicloud (AWS, Azure) and Google SecOps; shuts down on May 21, 2027, and organizations move to Premium

Practical consequences:

  • Do not start new work on Enterprise. It is deprecated; plan multicloud and SIEM needs separately.
  • Premium is the tier for this page. Event Threat Detection, custom Security Health Analytics modules and postures all require Premium (or Enterprise until shutdown). Attack path simulation and postures also require organization-level activation.
  • Premium billing is pay-as-you-go or subscription. Pay-as-you-go is metered on the compute in scope (from January 2026 it also covers Cloud Run and AlloyDB), so check the pricing page before you activate across a large estate.

Read the current tier table on Google's service tiers page before a purchase decision; it changes more often than the rest of this page.

Organization-level activation

Activate at the organization, not per project. Organization activation covers projects created tomorrow, enables organization-scoped detectors such as AUDIT_LOGGING_DISABLED (not available for project-level activations), and is required for attack path simulation and postures.

Console: Security > Security Command Center, select the organization, then Get started. Choose the tier, the services to enable and the project that hosts SCC resources (use prj-c-security in the common folder; see Organization Policy).

After activation, check which services are on and enable the ones that are off:

gcloud scc manage services list --organization=organizations/ORG_ID

gcloud scc manage services update event-threat-detection \
  --organization=organizations/ORG_ID \
  --enablement-state=ENABLED

gcloud scc manage services update container-threat-detection \
  --organization=organizations/ORG_ID \
  --enablement-state=ENABLED

Service names in gcloud scc manage services include security-health-analytics (sha), event-threat-detection, container-threat-detection, vm-threat-detection, cloud-run-threat-detection and web-security-scanner. Enablement inherits down the hierarchy, so a folder or project can override it. Look for projects where someone set a service to DISABLED.

Security Health Analytics

Security Health Analytics (SHA) scans asset configuration on a schedule and on changes, and produces vulnerability findings such as PUBLIC_BUCKET_ACL, OPEN_SSH_PORT, USER_MANAGED_SERVICE_ACCOUNT_KEY, NON_ORG_IAM_MEMBER, DEFAULT_SERVICE_ACCOUNT_USED and the *_NOT_MONITORED logging checks. Many detectors map to CIS GCP Foundations recommendations, which is how the Premium compliance view scores CIS. Each product page on this site lists the relevant categories in its baseline table.

Query findings across the organization. Always set --location; without it, the commands fall back to the older v1 API:

gcloud scc findings list ORG_ID \
  --location=global \
  --filter='state="ACTIVE" AND category="PUBLIC_BUCKET_ACL"' \
  --format="table(finding.resourceName,finding.severity,finding.eventTime)"

gcloud scc findings group ORG_ID \
  --location=global \
  --group-by=category \
  --filter='state="ACTIVE" AND mute!="MUTED"'

Custom Security Health Analytics modules

When a built-in detector does not exist for your rule, write a custom module: a CEL predicate evaluated against one to five resource types. For example, flag Cloud KMS keys whose rotation period is longer than 90 days:

# kms-rotation.yaml
severity: MEDIUM
description: "Cloud KMS key rotation period is longer than 90 days."
recommendation: "Set the key rotation period to 90 days or less."
resource_selector:
  resource_types:
  - cloudkms.googleapis.com/CryptoKey
predicate:
  expression: resource.rotationPeriod > duration("7776000s")
gcloud scc custom-modules sha create \
  --organization=organizations/ORG_ID \
  --display-name="kms_rotation_over_90d" \
  --enablement-state="ENABLED" \
  --custom-config-from-file=kms-rotation.yaml

Custom modules created at the organization are inherited by folders and projects. Keep their YAML in version control next to your custom organization policy constraints: the constraint prevents the bad configuration going forward, the module finds what already exists. Event Threat Detection supports custom modules too (gcloud scc manage custom-modules etd create), for example to alert on bad IPs or unexpected regions.

Threat detection services

These services require Premium and read data you have to make available.

  • Event Threat Detection analyzes Cloud Audit Logs, VPC Flow Logs, Cloud DNS logs and other streams for patterns such as Persistence: IAM Anomalous Grant, exfiltration of BigQuery data, malware domains and brute force. Its coverage depends on the logs being on: Data Access logs, DNS logging and Flow Logs (see Cloud Logging).
  • Container Threat Detection watches GKE node kernels for runtime attacks inside containers, such as an added binary executed or a reverse shell. It needs supported Container-Optimized OS node images; see GKE.
  • Virtual Machine Threat Detection scans VM memory from the hypervisor for cryptocurrency mining and kernel-mode rootkits, with no agent in the guest; see Compute Engine.
  • Cloud Run Threat Detection monitors Cloud Run services and jobs for runtime threats; see Cloud Run.

Threat findings are class THREAT, separate from vulnerability findings. Route them on a faster path than misconfigurations:

gcloud scc findings list ORG_ID \
  --location=global \
  --filter='state="ACTIVE" AND finding_class="THREAT"'

Mute rules

Muting hides findings from default views and exports filters that exclude muted findings. Use it for accepted risk (a deliberately public website bucket), never to make a dashboard green.

  • Static mute rules mute matching future findings indefinitely.
  • Dynamic mute rules mute matching future and existing findings, either until an expiry time or until the finding no longer matches. Google recommends dynamic rules; do not mix both types for the same findings.
gcloud scc muteconfigs create website-bucket \
  --organization=ORG_ID \
  --location=global \
  --type=dynamic \
  --description="Accepted public website bucket. Owner: web-team. Review 2027-05" \
  --filter='category="PUBLIC_BUCKET_ACL" AND resource.name="//storage.googleapis.com/www-example-com"' \
  --expiry-time="2027-05-31T00:00:00Z"

Rules for rules: filter on category and exact resource, never on category alone for high-severity detectors; put owner and review date in the description; review the list quarterly. A muted finding still exists and can be queried with mute="MUTED".

Console: Security Command Center > Findings > Mute options.

Notifications and exports

A finding nobody sees does not get fixed. Stream new and updated findings to Pub/Sub, then to your ticketing, chat or SOAR:

gcloud pubsub topics create scc-findings --project=prj-c-security

gcloud scc notifications create high-severity \
  --organization=ORG_ID \
  --location=global \
  --pubsub-topic=projects/prj-c-security/topics/scc-findings \
  --filter='state="ACTIVE" AND mute!="MUTED" AND (severity="HIGH" OR severity="CRITICAL")'

Subscribers receive a JSON NotificationMessage containing the finding and resource. Route by the project's folder or labels so each team gets its own findings.

For history and trend reporting, continuously export to BigQuery:

gcloud scc bqexports create all-findings \
  --organization=ORG_ID \
  --location=global \
  --dataset=projects/prj-c-security/datasets/scc_findings \
  --description="Continuous export of all findings"

A query on the export answers the only metric that matters to leadership: open high and critical findings over time, by folder. If you run a SIEM, ingest from the Pub/Sub topic or BigQuery rather than polling the API.

Security posture service

A posture is a versioned set of organization policy constraints (including custom constraints) and Security Health Analytics detectors (including custom modules), deployed to an organization, folder or project. SCC then reports drift, such as a policy changed outside the posture or a resource violating it, as findings. It requires Premium with organization-level activation.

Start from a predefined template (secure_by_default_essential, secure_by_default_extended, cis_2_0, nist_800_53, cloud_storage_essential, vpc_networking_essential and others):

gcloud scc posture-templates describe \
  organizations/ORG_ID/locations/global/postureTemplates/secure_by_default_essential

Create the posture from a file, then deploy a revision to a target:

gcloud scc postures create \
  organizations/ORG_ID/locations/global/postures/org-baseline \
  --posture-from-file=posture.yaml

gcloud scc posture-deployments create \
  organizations/ORG_ID/locations/global/postureDeployments/org-baseline-prod \
  --posture-name=organizations/ORG_ID/locations/global/postures/org-baseline \
  --posture-revision-id=REVISION_ID \
  --target-resource=folders/FOLDER_ID

In Terraform, the same posture is a google_securityposture_posture resource:

resource "google_securityposture_posture" "org_baseline" {
  posture_id = "org-baseline"
  parent     = "organizations/ORG_ID"
  location   = "global"
  state      = "ACTIVE"

  policy_sets {
    policy_set_id = "storage"
    policies {
      policy_id = "uniform-bucket-access"
      constraint {
        org_policy_constraint {
          canned_constraint_id = "storage.uniformBucketLevelAccess"
          policy_rules {
            enforce = true
          }
        }
      }
    }
  }
}

Use postures when several teams can change organization policy and you need a single declared baseline; otherwise version-controlled policy files plus SHA findings cover the same ground.

IAM for Security Command Center

Findings are a map of your weaknesses, and SCC admin can disable detectors or mute findings. Bind roles at the organization to groups:

RoleWho
roles/securitycenter.adminSecurity admins group only: activation, services, exports
roles/securitycenter.adminViewerSecurity operations: read everything
roles/securitycenter.findingsEditorResponders who change finding state or mute individual findings
roles/securitycenter.muteConfigsEditorThe few people allowed to create mute rules
roles/securitycenter.findingsViewerTeams that read findings, ideally granted on their own folder
roles/securityposture.adminOwners of the posture baseline

Never grant SCC roles to individual users, and keep roles/securitycenter.admin out of application teams' reach. Organization Owner and Editor include SCC permissions, which is one more reason to keep basic roles off the organization (see IAM).

Logging and detection

SCC configuration changes are Admin Activity audit logs on securitycenter.googleapis.com and securitycentermanagement.googleapis.com. Alert on anyone disabling a service, deleting a notification or export, or creating a mute rule:

protoPayload.serviceName=("securitycenter.googleapis.com" OR "securitycentermanagement.googleapis.com")
protoPayload.methodName:("CreateMuteConfig" OR "UpdateMuteConfig" OR "DeleteNotificationConfig" OR "DeleteBigQueryExport" OR "UpdateSecurityCenterService" OR "DeleteSecurityHealthAnalyticsCustomModule")

Create it as a bucket-scoped log-based metric in the central logging project (see Cloud Logging) with an alert above zero. Also alert when the Pub/Sub notification pipeline stops delivering, for example on subscription backlog age, because a silent pipeline looks exactly like a quiet week.

Common mistakes

  • Activating SCC on a single project and assuming the organization is covered. New projects and organization-scoped detectors are missed.
  • Believing the free tier includes threat detection. Standard and Standard-legacy have no Event Threat Detection, Container, VM or Cloud Run Threat Detection.
  • Starting new rollouts on Enterprise after its deprecation, then facing the May 21, 2027 shutdown and an unplanned move to Premium.
  • Writing mute rules on a category alone (for example every OPEN_FIREWALL), which hides the next real exposure along with the accepted one.
  • Turning on Event Threat Detection while Data Access audit logs, DNS logging and Flow Logs are off, so most detectors have nothing to read.
  • Leaving findings in the console with no Pub/Sub notification or BigQuery export, so nobody owns them and trends are invisible.
  • Granting roles/securitycenter.admin broadly, letting any holder disable detectors or delete the export that feeds your SIEM.

References

About the author

Security engineer writing practical, benchmark-aligned guides to hardening Google Cloud organizations, projects and workloads.

Related services

All services