Bc Security logo

Bc Security

Organization
OrcaQubits
bc-security

Implement BigCommerce security — OAuth token management, API authentication, webhook verification, CSP, input validation, PCI compliance, and app security best practices. Use when hardening integrations or reviewing security posture.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill namebc-security
Stars
40
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OrcaQubits on GitHub. Read the source before you install it.

Installation

Install the Bc Security AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/bigcommerce-commerce/skills/bc-security
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/bigcommerce-commerce/skills/bc-security .claude/skills/bc-security
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Bc Security in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Bc Security on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Bc Security is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

BigCommerce Security

Before writing code

Fetch live docs:

  1. Web-search site:developer.bigcommerce.com security authentication for auth security
  2. Web-search bigcommerce app security best practices for app security
  3. Web-search bigcommerce pci compliance for PCI guidance

API Authentication Security

Token Management

  • Never expose API tokens in client-side code or public repositories
  • Store tokens in environment variables or encrypted secret stores
  • Use separate tokens for development and production
  • Rotate tokens periodically
  • Use minimum required OAuth scopes (principle of least privilege)

Token Types

Token TypeSecurity LevelStorage
API Account TokenHighest — full API accessServer-side only, encrypted
OAuth App TokenHigh — scoped accessServer-side, per-store
Storefront API TokenMedium — read-only storefront dataClient-side OK (limited scope)
Customer Impersonation TokenHigh — customer data accessServer-side only

Rate Limiting as Security

Rate limits prevent abuse:

  • Monitor X-Rate-Limit-Requests-Left header
  • Implement exponential backoff
  • Never retry 401/403 responses (authentication/authorization failures)

OAuth Security

JWT Verification

Always verify JWTs in Load, Uninstall, and Remove User callbacks:

  • Verify signature using your Client Secret (HMAC-SHA256)
  • Check iss (issuer) matches BigCommerce
  • Check exp (expiration) — reject expired tokens
  • Check aud (audience) matches your Client ID
  • Extract store_hash and user only after verification

Callback URL Security

  • Use HTTPS for all callback URLs
  • Validate the state parameter in OAuth flows to prevent CSRF
  • Don't accept arbitrary redirect URLs — whitelist allowed paths

Token Storage

  • Encrypt OAuth access tokens at rest in your database
  • Associate tokens with store hash — verify on every API call
  • Handle token revocation (when app is uninstalled)
  • Don't log tokens in application logs

Webhook Security

Verification

BigCommerce doesn't sign webhook payloads with HMAC, so:

  • Use custom headers for basic verification:
    json
    { "headers": { "X-Webhook-Secret": "your-shared-secret" } }
  • Verify the header value in your handler
  • Validate store_id matches expected stores

Webhook Handler Security

  • Respond with 200 OK quickly — don't process inline
  • Validate payload structure before processing
  • Use idempotency (check hash field) to prevent replay attacks
  • Don't trust the data.id blindly — verify by fetching the resource via API
  • Rate limit your webhook handler to prevent flood attacks

Content Security Policy (CSP)

For Embedded Apps

When your app loads in the BigCommerce admin iframe:

  • Set Content-Security-Policy: frame-ancestors 'self' *.bigcommerce.com
  • Or use X-Frame-Options: ALLOW-FROM https://store-{hash}.mybigcommerce.com
  • Block framing from unauthorized domains

For Stencil Themes

Add CSP headers via Script Manager or theme configuration to restrict:

  • script-src — allowed script sources
  • style-src — allowed style sources
  • img-src — allowed image sources
  • connect-src — allowed API endpoints

Input Validation

API Input

  • Validate all data before sending to BigCommerce API
  • Sanitize user input — escape HTML, validate types
  • Validate email formats, phone numbers, postal codes
  • Enforce maximum lengths for text fields

Webhook Input

  • Validate JSON structure of incoming payloads
  • Verify resource IDs are numeric and within expected range
  • Don't use webhook data directly — fetch fresh data via API

Stencil Theme Input

  • Escape all dynamic content in Handlebars templates (auto-escaping by default)
  • Use {{{raw_html}}} triple-braces only for trusted content
  • Sanitize any user-generated content before rendering

PCI Compliance

Reducing Scope

BigCommerce is PCI DSS Level 1 compliant as a platform:

  • Native/Embedded Checkout — BigCommerce handles payment form rendering → you're out of PCI scope
  • Custom Checkout with tokenized payments — use gateway JS SDKs (Stripe Elements, etc.) → minimal PCI scope
  • Custom Checkout with raw card data — requires full PCI DSS compliance for your infrastructure

Recommendations

  • Use Embedded Checkout for headless — simplest PCI path
  • Never log, store, or transmit raw card data
  • Use tokenized payment methods in the Payments API
  • Serve all pages over HTTPS

App Marketplace Security Requirements

For Marketplace Submission

  • HTTPS for all endpoints
  • Proper JWT verification on all callbacks
  • Secure token storage (encrypted at rest)
  • Handle uninstall callback (clean up data)
  • No hardcoded credentials in source code
  • OWASP Top 10 compliance

Best Practices

  • Store API tokens encrypted, never in code or logs
  • Verify JWTs on every callback — check signature, expiry, audience
  • Use custom webhook headers for verification
  • Validate and sanitize all input — from users, webhooks, and APIs
  • Use Embedded Checkout or tokenized payments to minimize PCI scope
  • Set CSP headers for iframe embedding
  • Implement rate limiting on your webhook handlers
  • Rotate credentials periodically
  • Use separate credentials per environment (dev/staging/production)
  • Audit third-party dependencies for known vulnerabilities

Fetch the BigCommerce security documentation and app review requirements for exact JWT verification patterns, CSP configuration, and current security best practices before implementing.

Frequently asked questions

What does the Bc Security AI skill do?

Implement BigCommerce security — OAuth token management, API authentication, webhook verification, CSP, input validation, PCI compliance, and app security best practices. Use when hardening integrations or reviewing security posture.

Why use Bc Security on TypingMind?

Because you install it once and use it with any model. Bc Security is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Bc Security in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/bigcommerce-commerce/skills/bc-security. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Bc Security?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Bc Security?

As many as you like. As long as a model supports skills, you can use Bc Security with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Bc Security AI skill free?

Yes. It is published on GitHub by OrcaQubits under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇