Security

Security model

A small, read-only MCP server with no Shopify access, no URL fetching, no accounts and no product-content storage.

Design decisions

  • No store connection. The assistant cannot read or modify Shopify data. It only processes text supplied in the tool call.
  • No URL fetching. The optional product_url is validated as HTTPS and kept in memory for reference; it is never requested. This removes SSRF risk.
  • No secrets. The service requires no API keys and stores no user credentials. Do not submit credentials in product content.
  • No product-content persistence. Tool inputs and outputs are not written to a database. Aggregate analytics contain only event, platform, day and count.
  • Read-only tools. Every tool declares readOnlyHint: true, destructiveHint: false and openWorldHint: false.
  • Input validation. Pydantic models enforce types, lengths and list limits; unknown fields are rejected. HTML in generated output is escaped or produced by a fixed allowlist.
  • Prompt-injection handling. Instruction-like text in product content is flagged and excluded from generated drafts; it is never executed or followed.
  • Abuse controls. Per-IP token buckets, a daily capacity limit, request-size limits and a public HTTPS endpoint in front of the service.

Transport and hosting

The MCP endpoint uses HTTPS and the Streamable HTTP transport in stateless JSON mode. DNS-rebinding protection validates the Host header against the configured public hostname. Security headers include X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy and HSTS in production. HTML pages use a restrictive content security policy.

Rate limiting

The MVP uses an in-process token bucket. It is exact for a single container but not shared across replicas. A production deployment should keep one replica, use sticky routing, or place a shared limiter at the edge. This limitation is documented rather than hidden.

What we do not claim

No service is perfectly secure. The assistant does not verify that merchant-supplied facts are true, does not provide legal or compliance review, and does not protect against a compromised host conversation. Treat generated copy as a suggestion and confirm product claims before publishing.

Reporting a vulnerability

Email support@baifpo.com with the subject “Security report”. Include a clear description, reproduction steps and impact. Do not access other users' data, run destructive tests, or include live customer information. We aim to acknowledge reports within two business days and will coordinate disclosure after a fix is available.

Out of scope

  • Rate-limit thresholds and denial-of-service volume tests
  • Findings that require a compromised device or host account
  • Content accuracy disputes (use the grounding check and confirm the facts)
  • Third-party platforms such as ChatGPT, Claude, Shopify or the hosting provider