Skip to content

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

Shopify Engineering 9 min read Case study mediumAdept

Building Overexposed: understanding application exposure

Overexposed is Shopify's scheduled scanner for finding GKE Ingresses and Cloud Run services reachable without authentication. An earlier version read Kubernetes config from the repo, and it produced false alarms, misses and blind spots. The rebuild pulls admitted resources and IAM policies from GCP Cloud Asset Inventory and probes each endpoint anonymously with HEAD-first requests and checked redirects. It maps each result to one of six verdicts (exposed, expected, protected, not found, unreachable, inconclusive) with recorded evidence. Key lessons cover how a status code means different things on different surfaces (a Cloud Run 404 can come from Google's front end), SSRF protection for the scanner itself by connecting to pre-validated IPs, replaying rule changes against saved scans (which cut inconclusive Ingress results by about 80%), and mutation testing and per-verdict canaries to verify AI-written tests.

Assumes: Kubernetes IngressGoogle Cloud IAMHTTP status codesSSRF basics

Related posts

  • MCP Horror Stories: The GitHub Prompt Injection Data Heist

    Docker mediumAdept

    A prompt injection planted in a public GitHub issue can hijack an AI agent using the official GitHub MCP server. When a developer asks it to "check the open issues," the agent uses a broad personal access token to read private repositories and leak salary and project data into a public pull request, as Invariant Labs demonstrated in May 2025. Docker's mitigation runs tools through the Docker MCP Gateway with interceptors, which are exec, container or HTTP hooks that inspect each tool call before and after it runs. A cross-repo-blocker script locks each session to the first repository accessed and blocks calls to any other repository. A Docker Compose setup with audit logging and repository-scoped OAuth is included as defense-in-depth against credential overreach.

  • Trivy, KICS, and the shape of supply chain attacks so far in 2026

    Docker mediumAdept

    On April 22, 2026, attackers used stolen Checkmarx publisher credentials to push malicious images to the checkmarx/kics repository on Docker Hub. Five existing tags were overwritten and two new tags were created. The trojaned KICS binary kept scanning normally but encrypted the scan output, which often holds secrets and infrastructure details, and sent it to audit.checkmarx[.]cx using a KICS-Telemetry/2.0 User-Agent. Docker caught the push within about 30 minutes by correlating several signals: a tag with no matching upstream release, provenance pointing to a day-old source repository, and unusual publishing timing. Affected users should rotate any credentials in scope, pin the image by digest, purge cached digests from runners and mirrors, and check egress logs, and Docker argues that only layered defenses and real-time signal sharing across registries can keep these attacks contained.

  • Detect, act, keep the evidence: node reliability across three clouds

    ClickHouse mediumAdept

    ClickHouse Cloud owns node-failure detection and reaction itself across AWS, GCP and Azure, because many real failures leave Kubernetes nodes Ready while workloads degrade. Examples include failed NVMe RAID members, EXT4 errors, hung kernel tasks and stuck pod creation, and provider auto-repair was inconsistent or counterproductive. The stack uses upstream Node Problem Detector with custom permanent conditions and plugin checks tuned against false positives. A custom open-source Node Problem Mitigator escalates per condition from evaluate to drain to terminate, gated by a kill switch, dry-run, exclusions, a global cooldown and alerting. A Node Debug Collector built on sosreport captures forensics before the node disappears.

  • 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.

  • ClickHouse on Docker Hardened Images

    ClickHouse mediumAdept

    ClickHouse server, Keeper, the Kubernetes Operator with its Helm chart, and the metrics exporter are now in Docker's Hardened Images catalog. These are minimal builds with no package manager or network tools, a non-root default user, and SLSA Level 3 provenance. The standard image gets flagged by scanners like Trivy and Grype because of unused Ubuntu 22.04 base packages such as wget (CVE-2021-31879), not because of ClickHouse itself. Docker Scout counts drop from 8 medium/11 low findings to 0 medium/14 low. Migrating changes only the image name plus a required CLICKHOUSE_PASSWORD, and a dev variant or `docker debug` covers debugging needs.

The quest for software engineering knowledge.

Look:
Layout: