Mobile Payment Tokenization Patterns

Mobile Payment Tokenization Patterns is a skill for Claude Code from allsmog/vuln-scout. It costs 110 tokens per session (1,154 once invoked), scanned A, original, MIT.

A security review guide for mobile payment code that handles card data, payment tokenization, and payment-provider SDKs. Tokenization replaces card details with a token that can be used by a payment service.

In plain words
What is it for?
Use it to inspect checkout and payment code, card-data encryption, tokenization endpoints, payment SDK integrations, and JavaScript bridges in mobile web views.
Why use it?
Payment flows combine sensitive card information, encryption, web views, and external services, creating several places where data can be exposed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the vuln-scout plugin — 32 skills, 15 commands, 9 agents shipped together

Good fit Use it to inspect checkout and payment code, card-data encryption, tokenization endpoints, payment SDK integrations, and JavaScript bridges in mobile web views.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/allsmog/vuln-scout/mobile-payments
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add allsmog/vuln-scout --skill mobile-payments
Clone the repo
git clone --depth 1 https://github.com/allsmog/vuln-scout

Made for: Claude Code.

Or install vuln-scout, the plugin that ships this one along with the rest of its 32 skills, 15 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Mobile Payment Tokenization Patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/allsmog/vuln-scout/mobile-payments/github.svg)](https://agentmods.dev/skills/allsmog/vuln-scout/mobile-payments)
Your own site
<a href="https://agentmods.dev/skills/allsmog/vuln-scout/mobile-payments"><img src="https://agentmods.dev/badge/skills/allsmog/vuln-scout/mobile-payments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Mobile Payment Tokenization Patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/allsmog/vuln-scout/mobile-payments"><img src="https://agentmods.dev/badge/skills/allsmog/vuln-scout/mobile-payments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,154 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.01154
Opus 5 $0.00055 $0.00577
Sonnet 5 $0.00022 $0.00231
Haiku 4.5 $0.00011 $0.00115

Measured 11d ago against content hash 5d1eb4473568, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Mobile Payment Tokenization Patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vuln-scout/skills/mobile-payments/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mobile Payment Tokenization Patterns

When this skill applies

The user is reviewing mobile (Android/iOS) code that handles:

  • Card tokenization (PAN/CVV/expiry → opaque token)
  • Payment processor SDK integration (Braintree, Stripe, Adyen, FirstData- style iframe encryptors)
  • Wallets (Google Pay, Apple Pay, Cash App, Venmo)
  • Encrypted PAN encryption in WebViews
  • Issuer / PIE (Public Initialization Encryption) key management

Signals: files under **/payment/**, **/checkout/**, **/tokenize*/**, **/services/**/api/, mentions of "PIE key", "iframe shim", "EncryptionListener", "PaymentMethodType".

The PIE / iframe-shim / Braintree tokenization shape

Most modern card tokenization on Android follows this template:

  1. The app fetches an encryption key (RSA pubkey or symmetric salt) from a backend.
  2. The app fetches the tokenization endpoint URL from a backend.
  3. The app builds a JavaScript payload that contains:
    • The key material
    • The card data (PAN/CVV/expiry) interpolated into JS literals
    • A <script> block that calls into an exposed @JavascriptInterface
  4. The app dispatches the JS into a WebView with setJavaScriptEnabled(true).
  5. The WebView's encryption JS produces an opaque token, which the bridge returns to native code.
  6. The native code submits the token to the processor over HTTPS.

Each step has a corresponding VulnScout detector:

Step Detector What goes wrong
2 (URL fetched) mobile-remote-controlled-endpoint Backend supplies an attacker-controlled URL; client follows it.
1 (key fetched) mobile-webview-js-injection Key material is spliced into a JS literal unescaped — break out, run JS.
3-4 (JS dispatch) mobile-webview-js-injection, mobile-webview-file-access, mobile-webview-js-interface WebView config or @JavascriptInterface exposes native callbacks.
5 (bridge) mobile-js-bridge-payment-token Native token object is constructed from JS-controlled values.
6 (submit) mobile-nsc-narrow-pinning, mobile-nsc-no-pinning, mobile-insecure-tls Cert pinning gap on the processor host allows MITM of the token.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 71 lines · 110 tokens per session scan A 5d1eb4473568

Subscribe to this mod's changes

Mobile Payment Tokenization Patterns is a skill published in the GitHub repository allsmog/vuln-scout (24 stars, last pushed 3mo ago), licensed MIT. It adds 110 tokens to every session and 1,154 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sast-config

Reviews and tunes SAST tool configurations against OWASP ASVS 4.0.3 and CWE Top 25. Auto-invoked when reviewing Semgrep rules, CodeQL queries, SAST CI integration, or false positive triage workflows. Produces a SAST maturity assessment covering rule authoring, severity tuning, custom rule development, and CI…

UnitOneAI/SecuritySkills · 78 tokens

sast-semgrep

Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping. Use when: (1) Scanning code for security vulnerabilities across multiple languages, (2) Performing security code reviews with pattern-based…

AgentSecOps/SecOpsAgentKit · 116 tokens

sast-semgrep

Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping. Use when: (1) Scanning code for security vulnerabilities across multiple languages, (2) Performing security code reviews with pattern-based…

rohunj/claude-build-workflow · 116 tokens

implementing-devsecops-security-scanning

Integrates Static Application Security Testing (SAST), Dynamic Application Security Testing (DAST), and Software Composition Analysis (SCA) into CI/CD pipelines using open-source tools. Covers Semgrep for SAST, Trivy for SCA and container scanning, OWASP ZAP for DAST, and Gitleaks for secrets detection. Activates for…

xalgorix/xalgorix · 109 tokens

integrating-sast-into-github-actions-pipeline

This skill covers integrating Static Application Security Testing (SAST) tools—CodeQL and Semgrep—into GitHub Actions CI/CD pipelines. It addresses configuring automated code scanning on pull requests and pushes, tuning rules to reduce false positives, uploading SARIF results to GitHub Advanced Security, and…

xalgorix/xalgorix · 84 tokens

implementing-semgrep-for-custom-sast-rules

Write custom Semgrep SAST rules in YAML to detect application-specific vulnerabilities, enforce coding standards, and integrate into CI/CD pipelines.

xalgorix/xalgorix · 37 tokens