Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

secure-checkout

БесплатноБез исполняемых скриптовНе проверен

Harden your checkout against attacks with HTTPS enforcement, Content Security Policy headers, input sanitization, and card data tokenization

finsilabsот finsilabs★ 69 звёзд на GitHub

Об этом скилле

Secure Checkout

Overview

Payment pages are the highest-value target for attackers — a single XSS vulnerability can lead to Magecart-style card skimming attacks that steal thousands of card numbers. Securing checkout requires enforcing TLS everywhere, implementing strict Content Security Policies (CSP) to prevent script injection, using payment tokenization to minimize PCI scope, and removing non-essential third-party scripts from payment pages. The good news: Shopify and BigCommerce handle most of this infrastructure automatically. WooCommerce merchants need to configure hosting and install security plugins. Custom storefronts require implementing all of these controls from scratch.

When to Use This Skill

  • When building or auditing a checkout flow that accepts payment information
  • When a penetration test or security scan surfaces XSS, CSP, or header vulnerabilities on payment pages
  • When reviewing third-party script loading on pages that have access to payment form context
  • When preparing for PCI DSS SAQ A-EP or SAQ D compliance assessment
  • When migrating from a hosted payment page to a custom UI (increases PCI scope)

Core Instructions

Step 1: Understand your checkout security responsibility by platform

Platform HTTPS / TLS CSP Headers Payment Tokenization Third-Party Script Control
Shopify Automatic — Shopify provisions and renews SSL certificates Shopify manages checkout CSP; your theme pages need review Shopify Payments and all gateway integrations use tokenization Use Shopify's Script Manager and Customer Events to control what loads on checkout
WooCommerce Your hosting responsibility — install SSL from Let's Encrypt or your host Your server responsibility — configure via hosting or plugin Determined by your gateway choice (Stripe Elements = SAQ A-EP) WordPress plugin and theme scripts load globally; use conditional loading to exclude checkout
BigCommerce Automatic — BigCommerce provisions SSL and enforces HTTPS BigCommerce manages checkout CSP for hosted checkout Handled by your payment gateway choice through BigCommerce checkout BigCommerce Script Manager controls third-party script placement
Custom / Headless Your infrastructure responsibility Your application responsibility — implement per-request CSP with nonces Implement with Stripe Elements or Braintree Drop-in UI Full control and full responsibility — must implement explicitly

Step 2: Platform-specific checkout security setup


Shopify

Shopify's hosted checkout is one of the most secure available — it runs on Shopify's own domain (checkout.shopify.com or your custom domain with SSL), uses Shopify Payments tokenization, and is protected by Shopify's CDN and WAF.

HTTPS enforcement:

  • Shopify automatically provisions free SSL certificates for all stores and custom domains
  • Go to Online Store → Domains to verify SSL is active on your custom domain
  • Enable Redirect all traffic to HTTPS under Online Store → Preferences → Checkout and accounts

Third-party scripts on checkout: Shopify's checkout extension model (Checkout Extensibility) limits what can run on the checkout page — this is by design for PCI compliance.

  1. Go to Settings → Customer events to manage tracking pixels and scripts
  2. Scripts added via Customer Events run in a sandboxed context and cannot access payment data
  3. Do not inject JavaScript into the checkout page via theme code or ScriptTag API — this is prohibited for SAQ A compliance and may be blocked by Shopify

Theme security review:

  1. Go to Online Store → Themes → Edit code
  2. Search your theme for any references to document.cookie, localStorage, or fetch on cart/checkout pages — these are red flags if you did not add them intentionally
  3. Review installed apps: go to Settings → Apps and sales channels and remove apps you no longer use; each installed app can inject scripts into your storefront

Admin account security (reduces attack surface):

  1. Go to Settings → Users and permissions
  2. Require 2FA for all staff accounts — a compromised admin account is the most common way attackers modify checkout behavior
  3. Limit staff access to only the permissions needed for their role

WooCommerce

WooCommerce checkout security depends almost entirely on your hosting configuration and payment gateway. Your hosting provider is responsible for TLS, and the gateway you choose determines whether card data ever touches your server.

Step 1 — Force HTTPS on your store:

  1. In your WordPress hosting control panel (cPanel, Kinsta, WP Engine), enable free SSL via Let's Encrypt or your host's built-in certificate
  2. Install Really Simple SSL (free plugin) — it forces HTTPS sitewide, updates internal links, and fixes mixed content warnings in one step
  3. After activat
Полный SKILL.md на GitHub

Установить secure-checkout в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

claude-code
cursor
gemini-cli
copilot
codex-cli
kiro
opencode

Вложенные файлы

evals/payment-tokenization-and-input-validatio/criteria.jsonevals/payment-tokenization-and-input-validatio/task.mdevals/security-headers-and-csp-configuration/criteria.jsonevals/security-headers-and-csp-configuration/task.mdevals/third-party-script-isolation-and-csp-vio/criteria.jsonevals/third-party-script-isolation-and-csp-vio/task.mdtile.json

FAQ

Что делает скилл secure-checkout?

Harden your checkout against attacks with HTTPS enforcement, Content Security Policy headers, input sanitization, and card data tokenization

Как установить скилл secure-checkout?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл secure-checkout запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить secure-checkout с