Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 7 min read How-to mediumAdept

Safer Docker Hub Pulls via a Sonatype-Protected Proxy

Routing Docker Hub pulls through a Nexus Repository Docker proxy with Sonatype Repository Firewall gives an organization a single, auditable checkpoint. Images are inspected at download time, malware and high-severity vulnerabilities are quarantined before any layer reaches developers, and approved layers are cached to avoid rate limits. The setup covers authenticating with a Docker Hub Organization Access Token scoped to read/pull, creating a docker (proxy) repository pointing at registry-1.docker.io behind a stable hostname, and enabling the Firewall Audit and Quarantine capability. The recommended rollout is to start with conservative policies (malware and CVSS ≥ 8), monitor violations and cache hit rate, then tighten enforcement; blocked pulls return a 404 by default.

Assumes: Docker CLI and registriesContainer image layersCVE/CVSS basics

Related posts

  • CNCF Score project improved its security posture by joining the Docker-Sponsored Open Source Program

    Docker mediumAdept

    Score, a CNCF Sandbox project, hardened its container image supply chain by moving images to Docker Hub, adding Docker Scout PR comparisons that report CVEs, package changes and policy compliance, and switching base images to Docker Hardened Images. That switch removed 22 packages and 2 CVEs from the Node sample app. Releases now go through Docker's reusable github-builder workflow, which produces signed SLSA provenance and SBOMs via GitHub OIDC and signs its build cache. Docker Hub OIDC connections replace long-lived access tokens with short-lived per-workflow credentials. Before/after workflow YAML and a cosign verification command are included.

  • Trivy supply chain compromise: What Docker Hub users should know

    Docker mediumAdept

    Attackers used stolen Aqua Security publishing credentials to push infostealer-laden aquasec/trivy images (0.69.4, 0.69.5, 0.69.6 and latest) to Docker Hub between March 19 and March 23, 2026. The malware targets Docker registry tokens, cloud credentials, SSH keys, Kubernetes tokens, CI/CD secrets and .env files. Anyone who pulled those tags or digests should remove them, rotate all reachable credentials at once, treat hosts with the Docker socket mounted as fully compromised, and pin to 0.69.3. Takeaways: mutable tags are not a security boundary, digest pinning should be paired with signed provenance verification, and scanning cannot detect a compromised publishing pipeline.

  • Hardened Images Are Free. Now What?

    Docker mediumAdept

    Docker Hardened Images (DHI), now free across 1,000+ images, establish a security "waterline": Docker owns vulnerability remediation for the base layers it hardens, while teams own application code and dependencies above it. Beyond CVE reduction, DHI isolates teams from supply chain attacks that exploit community image trust, such as stolen PATs and tag mutability. The recommended practice treats the container image as the unit of assessment, enforces simple severity-based policies (high/critical remediated, CISA KEV always in scope), and uses OpenVEX statements via vexctl and docker scout attestation add to document and auto-suppress assessed findings. These artifacts also support compliance evidence for ISO 27001, SOC 2 and the EU Cyber Resilience Act.

  • Docker Hardened Images enhanced vulnerability scanning with Docker and Aikido

    Docker mediumAdept

    Aikido now scans Docker Hardened Images (DHI) using Docker's signed OpenVEX attestations, automatically suppressing CVEs that Docker has marked fixed or not affected so triage queues show only findings that actually apply. The scanner detects DHI base images, pulls the signed SPDX 2.3 SBOM via OCI 1.1 referrers (or /opt/docker/sbom/) instead of indexing the distroless filesystem, matches components by PURL against the Docker OSV feed and upstream advisories, then overlays VEX statements. Setup amounts to connecting Docker Hub with a read-only personal access token. The full VEX justifications are retained for audits such as FedRAMP and SOC 2.

  • The Best Container Registries in 2026

    Railway easyNovice

    Container registries are the supply-chain edge of an application, not just tarball storage: they set image pull latency (and so deploy and cold-start time), satisfy compliance scanning requirements, and are a frequent supply-chain attack vector. A good registry does six jobs: store, version, scan, distribute, authorize and expire. Most differences between vendors show up in scanning policy, auth model and retention tooling. The ranking puts Railway's built-in registry first, then compares Docker Hub, ghcr.io, GitLab, ECR, Artifact Registry, ACR, Quay and Cloudflare on pricing, scanning, rate limits and tradeoffs such as Docker Hub pull limits, ECR's 12-hour tokens and ACR's Notary v1 signing.

The quest for software engineering knowledge.

Look:
Layout: