Shopify just rewrote its mobile app in 12 weeks, shipping an average of 434,000 lines of code per week—an 11x increase over last year. This isn't just about speed: with agents now helping build and test in parallel, the attack surface and risk profile of their mobile stack has changed fast. The team needed a way to keep up with both the volume and the complexity of code changes, without letting security slip.
The answer is a layered system: attack surface maps, modular security "skills", and daily AI-driven reviews that get smarter every time a new vulnerability is found. Here's how it works, and what you can take from it for your own agentic apps.
Mapping the attack surface, one skill at a time
Each Shopify mobile app maintains an explicit map of its attack surface—everything security-sensitive, grouped into surfaces like deep links, WebViews, stored data, permissions, and dependencies. For each item, there's a short note on why it matters, a verdict (like Fix, Tradeoff, or Secure), and a link to the relevant code.
The map isn't static: it's produced by a set of modular "skills". Each skill covers a surface, drawing on standards like OWASP MASVS/MASTG and Shopify's own incident history. When a new vulnerability class is found, the relevant skill is updated, so all future reviews catch it. Any agent or reviewer can use these skills, and they're not tied to a single tool or workflow.
Small, focused AI reviews—every day
Instead of asking a model to review an entire app (which leads to vague, unhelpful feedback), Shopify's system inventories each surface in detail and reviews one item at a time. For example, a deep link review looks at a single route, its parameters, and the code that handles them—then asks what happens if input is hostile. If the risk is unclear, the review escalates to a more specialised cybersecurity model.
Every weekday, the latest models review code changes, update the attack surface map, and post a summary of security-sensitive changes (with verdicts) to Slack. The process is tight: changes are only flagged as new or changed if the cited code line or inventory entry has actually changed. A second pass looks for security-relevant diffs that might not be captured by the skills. All answers are checked for format, accuracy, and to ensure no secrets are leaked.




