See all services → Shopify Plus Partner
AI Toolkit Developer

Scan your Shopify apps for vulnerabilities before release

Shopify CLI and the AI Toolkit now ship a security check command that scans app code, extension configuration and dependencies, pairing a deterministic scan with a coding agent review.

Executive summary

What changed

The new command runs locally on a developer machine and examines three surfaces: the app codebase, the configuration across its extension points, and its dependencies. It operates in two modes. The deterministic scan runs on its own and prints findings. The agent review, which is the recommended path, has your coding agent run the scan, investigate the checks that code inspection cannot settle, record its findings and present the combined result.

Each finding names the affected file and line, a severity, why the issue matters, a code example showing one way to fix it, and a check ID you can look up in the documentation. Results are written under a local directory per app configuration, and there are companion commands to record agent findings, review the combined set and clear results.

Scope control is sensible by default. Git tracked files are always scanned, Git ignored files are skipped unless you opt in, and you can exclude paths with globs. Some deterministic checks only cover the React Router app template; for other stacks those checks fall to agent review rather than being dropped. The engine is open source in the Shopify CLI repository.

Why it matters

This reads as developer tooling, and for most Plus merchants it is. The reason it belongs on an operations radar is that enterprise Shopify estates accumulate custom apps: an ERP middleware bridge, a pricing service, an internal fulfilment tool. Those apps hold session tokens and move order and customer data, and they rarely get the review cadence that a public app faces at submission.

Shopify reports that partners testing the tool found issues they did not know about, specifically in authentication and in how merchant data was isolated across stores. Multi tenant isolation is exactly the failure mode that is cheap to introduce and expensive to discover, and it is a standing question for any merchant whose custom Shopify apps were built fast and have not been revisited since. A free local command that names the file and line is a low friction way to get an answer.

Role-specific impact

Use-case example

Real-world scenario

An agency maintains four custom apps for a Plus merchant: an ERP sync, a B2B pricing service, a warehouse integration and an internal reporting tool. None had been through a formal security review since launch. A first pass across all four took under a day and surfaced eleven findings, two of them critical and both the same pattern: a webhook endpoint that did not verify its HMAC signature. Remediation took two days. Finding that class of issue through an incident costs considerably more.

Implementation checklist

  1. Install the Shopify AI Toolkit for your coding agent, or update Shopify CLI if you plan to run the deterministic scan alone.
  2. Run the check against each custom and public app you maintain, starting with the ones that touch orders, customers or payments.
  3. Triage by severity. Resolve critical and high findings before anything cosmetic.
  4. Exclude generated code and test fixtures with glob patterns so the signal stays readable.
  5. Rerun the check after remediation and make it a standing step in every release.
  6. Record the result and date per app so scope reviews have something factual to reference.

FAQ

Q: Does a clean report mean our app is secure?

A: No. Shopify is explicit that this complements your existing tooling and reviews rather than replacing them. It covers the vulnerability patterns seen most often in Shopify apps, which is a useful floor, not a guarantee.

Q: Does it work if our app is not built on the React Router template?

A: Yes. The agent review examines how your app actually works across stacks including Rails, Django, Laravel and custom authentication. Some deterministic checks are template specific and are handed to agent review instead.

Resources

Need guidance? Talk to Makro.