Shopify maps security risks as agent-written code grows

Shopify’s mobile team has described a security-review process built around an explicit map of each app’s attack surface. In an 18 November engineering post, Michael Hughes explains how the team…

Will Slatton2 min read

Shopify’s mobile team has described a security-review process built around an explicit map of each app’s attack surface. In an 18 November engineering post, Michael Hughes explains how the team tracks sensitive entry points as agent-assisted development increases the volume of code changes.

Shopify reports about 434,000 lines changed per week during its 12-week app rewrite, against roughly 39,000 in the comparable period a year earlier. That is the company’s measure of code throughput, not a measure of software quality or vulnerabilities prevented.

Make each review small enough to verify

The map inventories deep links, WebViews, stored data, permissions and dependencies. Each entry links back to code and receives a verdict: fix with severity, tradeoff, secure, fixed or debug only.

Rather than asking a model to inspect the whole app at once, Shopify describes reviewing individual routes, parameters, WebView hosts and storage entries. The checks draw on OWASP’s mobile security standard and testing guide, plus lessons from previous incidents.

The example below uses mock data. It illustrates why a verdict needs evidence: a coupon route is flagged because its next-page parameter can open an unchecked HTTPS destination, while a help-page WebView records an intentional cookie-sharing tradeoff.

Shopify sample attack-surface inventory showing login, coupon and help routes with code references
Shopify Engineering’s sample app with mock data, published 18 November 2026.

Review changes without granting write access

Every weekday, the described process compares the current inventory with the last accepted map, reviews changed entries with read-only tools and checks changed files for risks the inventory missed. Answers are validated for format, line references, wording and accidental secret inclusion before publication.

The team also checks external security news against dependencies because some problems arrive without a repository change. Shopify says the map complements Dispatch, its vulnerability scanner, rather than replacing it.

For commerce app builders, the transferable idea is a reviewable inventory tied to code. Start with one sensitive surface and preserve the evidence behind each judgement. A model’s secure verdict is a review output to assess, not a certification that the application is safe.

ℹ️
The screenshots use a sample app and mock data. Shopify’s reported 11× code throughput does not establish an 11× security improvement.
Filed underShopify

More from Shopify

See all →