InfoQ

Shopify Overexposed Scans GKE Ingresses and Cloud Run for Exposure

8.5内容质量
Shopify Overexposed Scans GKE Ingresses and Cloud Run for Exposure

TL;DR · AI 摘要

Shopify推出的Overexposed工具通过GCP Cloud Asset Inventory和匿名HTTP探针,有效检测GKE和Cloud Run的暴露服务,减少80%的误报。

核心要点

  • Overexposed利用GCP Cloud Asset Inventory减少80%的不确定Ingress结果
  • 旧版扫描器因依赖仓库配置导致3类误判问题
  • 新版通过路径变体测试(如/ADMIN)提升检测覆盖率

结构提纲

按章节快速跳转。

  1. 介绍Shopify开发Overexposed工具的初衷和目标

  2. 分析基于仓库配置的扫描器存在误报和漏检的三大问题

  3. 说明新版本采用GCP Cloud Asset Inventory和匿名探针的技术方案

  4. 描述HEAD/GET请求、路径变体测试和结果分类的实现细节

  5. 解释exposed/expected/protected等六类判定标准的定义

  6. 总结工具对云安全实践的改进和行业启示

思维导图

用一张图看清主题之间的关系。

查看大纲文本(无障碍 / 无 JS 友好)
  • Overexposed工具
    • 旧版问题
      • 代理认证误报
      • 准入控制器盲区
      • 跨仓库漏检
    • 新版架构
      • GCP Cloud Asset Inventory
      • 匿名HTTP探针
      • 路径变体测试
    • 检测结果
      • exposed
      • expected
      • inconclusive

金句 / Highlights

值得收藏与分享的关键句。

#Kubernetes#Cloud Run#安全工具#GCP
打开原文

Shopify Overexposed Scans GKE Ingresses and Cloud Run for Exposure - InfoQ

InfoQ Homepage News Shopify Overexposed Scans GKE Ingresses and Cloud Run for Exposure

Cloud

QCon San Francisco (Nov 16-20): Deep technical sessions. Peer conversations that change how you think.

Shopify Overexposed Scans GKE Ingresses and Cloud Run for Exposure

Nov 02, 2026 3 min read

by

  • Claudio Masolo

#### Follow us on

Youtube

232K Followers

Linkedin

26K Followers

Instagram

New

RSS

19K Readers

X

57.1k Followers

Facebook

21K Likes

Bluesky

Listen to this article -

0:00

Audio ready to play

Your browser does not support the audio element.

Normal

1.25x

1.5x

Like

new dropdown rading list

  • Reading list

Shopify has introduced Overexposed. This internal scanner locates Kubernetes Ingresses on GKE and Cloud Run services. It checks for those that are accessible from the internet without authentication. After a first version based on repository config files produced false alarms and blind spots, the team rebuilt it on GCP Cloud Asset Inventory and an anonymous HTTP probe. In just a few weeks of tuning, this reduced inconclusive Ingress verdicts by around 80%.

The original scanner checked the infrastructure repository for Ingresses. It focused on public hostnames without authentication settings and then probed them. Shopify says this failed in three ways. Teams that configured proxy authentication annotations directly triggered false positives. Admission controllers that rewrite settings at admission time, but do not run in every cluster, meant a correct-looking config could have no effect. Ingresses created by other repositories or platform tooling were never seen. The authors summarize the lesson as: the repository shows intent; the cluster shows what is enforced.

The current version follows a schedule. It queries Cloud Asset Inventory . This inventory includes Ingresses accepted by GKE after admission, along with Cloud Run services and load balancers. A second search retrieves access policies without needing cluster credentials. The inventory also surfaced Cloud Run services in projects the first scanner had never covered.

Each candidate then receives a single anonymous request. The scanner sends HEAD first, falls back to GET, follows at most three redirects and checks each one. It also tests path variations such as /ADMIN , since path rules can be case-sensitive. Results map to six verdicts: exposed, expected, protected, not found, unreachable and inconclusive. "Expected" applies when an endpoint is open but matches a reviewed, in-code allowlist entry by exact host and path. Allowlisted endpoints are still probed on every run, and an entry that turns out to be protected or gone is flagged as stale.

Shopify stresses that status codes are context-dependent. A 404 behind an Ingress means the proxy answered and the path is missing. On Cloud Run, Google's front end can return a 404 before the application runs, so the scanner classifies it as inconclusive. A 403 is also not treated as proof of protection. For Cloud Run, the scanner distinguishes ingress settings from IAM: a service is public only if allUsers holds the invoker role or the invoker check is disabled. Services behind a load balancer use a URL map. This map decides which backend handles each path. It also shows where authentication, like Identity-Aware Proxy, is required.

In early runs, roughly three in four results were inconclusive in one July run. The team grouped results by reason, added verdicts where evidence supported them, and replayed rule changes against saved scan results before shipping. Uncertain evidence stays inconclusive rather than defaulting to protected. The scanner stores verdicts, reasons and team ownership, but not response bodies or credentials.

Because the scanner makes outbound requests to arbitrary hostnames, Shopify hardened it against SSRF. It validates every IP returned by DNS, rejects private and loopback addresses, connects directly to the checked IP to prevent DNS rebinding, and repeats checks on each redirect. The authors recommend also restricting the scanner's network egress, including cloud metadata endpoints.

The team built Overexposed with AI coding agents and AI code review. To catch tests that pass while checking the wrong thing, they apply mutation testing to security guards and keep one canary target per verdict.

Shopify’s experience illustrates a split that applies to exposure scanning in general. Rule-based checks, such as Trend Micro’s Cloud Run rule , look for allUsers bindings. This is affordable and easily integrable into CI. This tool report intent, not enforcement, so it miss resources created outside the repository and settings that an admission controller later rewrites.

Inventory-based approaches, such as Cartography and the Cloud Asset Inventory queries behind Shopify’s Overexposed, start from what the cloud actually runs, which closes those blind spots. Cartography still derives an exposed_internet flag from configuration, so it can’t confirm what an outsider sees. Overexposed adds an anonymous probe, an allowlist, and evidence-backed verdicts to the inventory. It sees uncertain evidence as inconclusive, not protected.

For teams creating something similar, use inventory as the main reference. Keep config analysis as an early signal in CI. Add a probe only if inventory can’t show whether access control works.

main wrapper for authors section

About the Author

section title

main wrapper for each author

#### Claudio Masolo

Show more

Show less

#### This content is in the Cloud topic

##### Related Topics:

  • DevOps
  • Kubernetes
  • Cloud
  • Cloud Security
  • Related Editorial
  • Related Sponsors The Agentic AI Threat: Why Your Java Patching Strategy Is No Longer Enough
  • Related Sponsor Explore how Azul helps Java teams reduce JVM vulnerability risk, strengthen application security, and prepare their Java environments for agentic AI. Discover practical strategies for securing Java workloads while maintaining performance and reliability. Learn more .

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.