Prepare and test your skills
Prepare and test your skills
Vulnerability assessment and remediation in container images is the process of finding known security flaws in image contents and fixing them before deployment. In Google Cloud, Artifact Analysis (opens in a new tab) scans images stored in Artifact Registry (opens in a new tab), and remediation rebuilds the image with fixed packages and enforces the fix through the CI/CD pipeline. The image flows from the developer to Artifact Registry to the runtime, while scan findings flow back to the developer to trigger a rebuild.
Automatic scanning in Artifact Registry is the service behavior that scans a container image for vulnerabilities when it is pushed and keeps monitoring it afterward. The scan extracts the inventory of system packages in the container and compares that inventory against vulnerability sources to create findings. After the push, Artifact Analysis continuously monitors the stored image metadata for new vulnerabilities for up to 30 days.
This continuous monitoring means an image that was clean at push time can become flagged later without being pushed again. The build therefore depends on scan metadata staying current, not only on the initial result. Teams integrate this check into regular linting, testing, and delivery, as described in shift-left security practices (opens in a new tab), so vulnerable dependencies are caught consistently and early.
Scan results in Artifact Analysis are stored as metadata using notes and occurrences. A note describes a specific vulnerability, while an occurrence is created for each instance of that note associated with a particular image. An image can therefore have many occurrences that point to different notes for operating system (OS) packages and language packages.
Vulnerability scanners consume lock files (opens in a new tab) to determine exactly which artifacts an application depends on. The lock file provides the fully resolved dependency tree, including transitive dependencies, so the scanner can match precise versions and sometimes suggest an upgrade path. Evaluating the occurrences for an image shows which package, version, and severity are involved, which guides whether to patch a package, update a base image, or remove an unused dependency.
Automatic scanning and On-Demand Scanning are two ways to assess the same container images at different points in the lifecycle. Automatic scanning runs in Artifact Registry after push, while On-Demand Scanning runs locally before the image is stored in Artifact Registry. Choosing between them depends on when the check is needed and which package types must be covered.
| Scanning option | When it runs | Where image is checked | Package coverage supported |
|---|---|---|---|
| Automatic scanning | On push to Artifact Registry, plus continuous monitoring for 30 days | Images stored in Artifact Registry | OS packages, plus Maven packages in Docker containers |
| On-Demand Scanning | Locally on demand during build or testing | Local image before storage in Artifact Registry | OS, Go, and Java vulnerabilities |
Automatic scanning covers stored images over time, while On-Demand Scanning lets developers fix a local image before it ever reaches the registry. Both results flow back to development as findings that require a rebuild and rescan.
Exam tip: Automatic scanning continuously monitors an image in Artifact Registry for up to 30 days after push, while On-Demand Scanning checks an image locally before it is stored; automatic Java scanning supports only Maven packages in Docker containers.
Remediation of a vulnerable container image means producing a new, fixed image and preventing the vulnerable image from reaching production. The fix is applied in source or the Dockerfile, then rebuilt and rescanned through the CI/CD pipeline using services such as Cloud Build and Cloud Deploy. Common remediation strategies include:
After rebuilding, the new image flows from Cloud Build to Artifact Registry for a fresh scan, and only images that pass policy flow onward to testing or production. Binary Authorization (opens in a new tab) enforces this boundary at deployment time by checking attestations, such as proof that a trusted build system created the image or that the image meets a vulnerability policy. Running workloads in Google Kubernetes Engine (GKE) and Cloud Run then surface remaining image vulnerabilities in the GKE security posture dashboard and the Cloud Run security panel, so production findings flow back to development for the next remediation cycle.
Security finding management and prioritization is the practice of using Security Command Center (SCC) (opens in a new tab) as a central hub to collect, rank, and act on risks across Google Cloud resources. SCC scans virtual machines, containers, serverless Cloud Run workloads, and other assets without OS agents and creates findings from multiple detectors. Findings that expose the most important resources receive higher scores so teams fix high-risk issues first and export results for rapid response.
Monitoring with SCC means enabling continuous scanning at the organization level and viewing all assets and findings in one place. Enabling SCC at the organization level gives near real-time visibility into misconfigurations, vulnerabilities, and threats and enables attack path simulations, security posture management, and compliance monitoring. The Assets page in the Google Cloud console shows each asset with its findings, change history, metadata, and IAM policies, and the asset data is read from Cloud Asset Inventory.
SCC creates findings from multiple built-in sources that cover different risk types:
Activation in a project follows an ordered console workflow:
Programmatic access is available through the SCC API, client libraries, and gcloud for custom reporting and monitoring.
Categorization and prioritization with SCC means ranking vulnerability and misconfiguration findings by how easily an attacker could reach important resources. The ranking depends on the high-value resource set, which is the list of resources the organization most needs to protect. Teams define the high-value resource set by creating resource value configurations, and until the first configuration is created SCC uses a default set that is not customized. Findings that expose resources in the high-value resource set receive higher attack exposure scores.
SCC provides several related features that explain why a finding matters. Attack path simulations visualize how threat actors could chain minor vulnerabilities from the internet to reach high-value compute resources or project billing permissions. Toxic combinations detect groups of risks that together create a path to a high-value resource, while chokepoints identify resources where multiple attack paths converge. Issues identify the most important risks found by virtual red teaming and rule-based detections on the security graph, and risk reports summarize simulation results with sample toxic combinations and attack paths. Correlated threats combine related threat findings using the security graph to help prioritize active incidents.
The available prioritization features depend on the SCC service tier:
| Service tier | Coverage | Capabilities |
|---|---|---|
| Standard | Google Cloud resources | Basic scanning for risks and misconfigurations |
| Premium | Google Cloud resources | Enhanced scanning plus security posture management, attack paths, threat detection, and compliance monitoring |
| Enterprise | Google Cloud resources plus other cloud providers | Complete cloud-native application protection platform with automated case management and remediation playbooks |
Exam tip: Attack path simulations, high-value resource sets, security posture management, and Artifact Registry vulnerability assessment require organization-level activation and are not available with project-level activation alone.
Tracking and rapid response with SCC means sending findings and resource changes to the tools that triage and fix them. After activation, findings should be exported to existing triage processes through a Pub/Sub topic, so downstream tools receive new findings automatically. Alerts can also be set up in Cloud Logging to notify teams about errors related to the SCC service agent. For resource and policy changes, teams create and subscribe to a Cloud Asset Inventory feed to receive real-time notifications.
The Google Cloud console provides formatted charts, compliance reports, and visual hierarchies for investigation, while the SCC API lets analysts manage findings and engineers build monitoring solutions. Organizations with unique needs can extend detection with custom modules for Security Health Analytics and Event Threat Detection and custom cloud controls in Compliance Manager, as part of posture assessment practices (opens in a new tab). Together, centralized findings, risk-based scores, and Pub/Sub and Logging exports let developers monitor application risks, focus on high-severity exposures, and respond quickly.
Automated response and policy enforcement means embedding security checks into the delivery pipeline so risky artifacts are found early and blocked automatically at deploy time. In Google Cloud, Cloud Build (opens in a new tab) builds and checks code, Artifact Analysis scans stored images, Cloud Deploy delivers to environments in sequence, and Binary Authorization blocks container deploys to Google Kubernetes Engine (GKE) and Cloud Run that lack required approvals.
Automated continuous integration and continuous delivery (CI/CD) pipelines remove manual errors, give standardized feedback loops, and make it possible to detect and fix security bugs early, fast, and reliably. A pipeline can scan for vulnerabilities automatically when artifacts are created, narrow the scope of security reviews, and roll back to a known and safe version when a release fails. Teams can also define different policies for development, test, and production environments so only verified artifacts move forward.
The pipeline depends on infrastructure as code and policy as code to stay consistent and auditable. Declarative infrastructure creates repeatable environments with a known good state, while tools like OPA let teams run automatic checks on infrastructure code before changes are deployed. Google Cloud supports this model with Cloud Build for builds, Cloud Deploy for staged delivery, Web Security Scanner for web checks, and Binary Authorization for deploy-time enforcement.
| Tool | Acts on | Automated response |
|---|---|---|
| Cloud Build | Source code and build steps | Runs builds in isolated, ephemeral environments and generates build provenance and security insights |
| Artifact Analysis | Images in Artifact Registry | Scans new images on upload and continuously updates findings when new vulnerability data arrives |
| Cloud Deploy | Targets in GKE, GKE Enterprise, and Cloud Run | Delivers in a defined sequence with one-click approvals, rollbacks, and security insights |
| Binary Authorization | Deploy requests to GKE and Cloud Run | Allows only images with required attestations and blocks all other deploys |
Cloud Build provenance flows from the build to later policy decisions. Provenance is verifiable metadata that includes digests of built images, input source locations, build toolchain, build steps, and build duration, plus the Supply-chain Levels for Software Artifacts (SLSA) build level. Cloud Build supports SLSA Level 3 builds for container images, which strengthens trust that the recorded build process actually produced the artifact.
Continuous vulnerability scanning with Artifact Analysis (opens in a new tab) is the service behavior that automatically scans container artifacts stored in Artifact Registry (opens in a new tab) for known vulnerabilities. The scan starts when a new image is uploaded to Artifact Registry, extracts information about system packages in the container, and then continuously monitors the scanned image metadata for new vulnerabilities. When Artifact Analysis receives new and updated information from vulnerability sources, it updates image metadata, creates new vulnerability occurrences for new notes, and deletes occurrences that are no longer valid.
Artifact Analysis also supports earlier checks before images reach the registry. On-Demand Scanning scans container images locally for operating system, Go, and Java vulnerabilities so teams can fix issues before storing images in Artifact Registry. For stored images, Artifact Analysis can generate a software bill of materials (SBOM) and store Vulnerability Exploitability eXchange (VEX) statements that record exploitability decisions for the images in Artifact Registry.
Deployment policy enforcement with Binary Authorization is the deploy-time control that ensures only trusted code runs on GKE and Cloud Run. Binary Authorization attaches configurable signatures to container images, also called attestations, that help validate that a required process was completed. At deployment time, Binary Authorization checks those attestations against policy and blocks deployment when the required attestations are missing.
A Binary Authorization policy can require different proofs for different environments. Common policy checks include:
This creates an ordered chain of trust from source to runtime:
Exam tip: Artifact Analysis finds and tracks vulnerabilities, while Binary Authorization blocks deployment when required attestations are missing.
Monitoring production and blocking vulnerable packages extends pipeline enforcement into running workloads. Security Command Center provides the unified interface for continuous monitoring, findings, and posture drift across running workloads. Security Command Center can run attack path simulations that show how an attacker could chain minor vulnerabilities from the internet to high-value resources, detect toxic combinations where grouped risks create a path to those resources, and monitor active workloads with Container Threat Detection and Cloud Run Threat Detection for threats such as evasive exploits, reverse shell executions, and unauthorized cryptomining binaries.
Web and workload signals flow into the same response loop as pipeline signals. Web Security Scanner, part of Security Command Center, crawls App Engine, Compute Engine, and GKE web applications from starting URLs, follows links in scope, exercises user inputs and event handlers, and reports common issues such as cross-site scripting, code injection, mixed content, and outdated libraries. The GKE security posture dashboard adds opinionated recommendations on cluster settings, workload configuration, and container vulnerabilities, while the Cloud Run security panel shows SLSA compliance, build provenance, and vulnerabilities for running services. Artifact guard (opens in a new tab) extends blocking beyond deploy time by helping prevent deployment of vulnerable packages throughout the build process across three policy scopes: CI/CD platform, registry, and runtime, supporting broader security and compliance controls (opens in a new tab).
Automatic scanning runs when an image is pushed to Artifact Registry and continuously monitors the stored image metadata for new vulnerabilities for up to 30 days, covering operating system packages plus Maven packages in Docker containers. On-Demand Scanning runs locally on demand during build or testing before the image is stored in Artifact Registry and covers operating system, Go, and Java vulnerabilities. Both produce findings that require rebuilding the image and rescanning it.
Binary Authorization checks container image attestations against policy at deployment time and permits deployment to Google Kubernetes Engine and Cloud Run only when the required attestations are present, blocking all other deploys. Required attestations can prove that a specific build system created the image, that the image complies with a vulnerability signing policy, or that the image passes promotion criteria for the next environment.
Security Command Center ranks findings by how easily an attacker could reach important resources, with findings that expose resources in the high-value resource set receiving higher attack exposure scores. Teams define the high-value resource set by creating resource value configurations, and until the first configuration is created Security Command Center uses a default set that is not customized.
Last updated