CkSKILLS: Skill for Claude Code

.agents/skills/miniprogram-security/SKILL.md

miniprogram-security is a skill for Claude Code, Codex from zhaji2333/CkSKILLS. It costs 160 tokens per session (3,232 once invoked), scanned A, original, MIT.

A security-auditing skill for WeChat, Alipay, Douyin, and Baidu mini programs, including their cloud functions and cloud data services. It covers recovering package contents, finding interfaces and secrets, and checking login, payment, access-control, and rendering risks.

In plain words
What is it for?
Use it to unpack mini-program files, recover source-like code, list backend interfaces, find credentials or configuration, inspect login and payment flows, and test for unauthorised access or unsafe rendering.
Why use it?
Mini-program clients can expose backend endpoints, configuration, or unsafe user-controlled values. The skill provides a focused way to inspect these areas and verify possible weaknesses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is zhaji2333/CkSKILLS's own configuration. It tells Claude Code and Codex how to work on CkSKILLS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything CkSKILLS configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zhaji2333/CkSKILLS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zhaji2333/CkSKILLS/main/.agents/skills/miniprogram-security/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zhaji2333/CkSKILLS

Made for: Claude Code, Codex.

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 miniprogram-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhaji2333/ckskills/miniprogram-security/github.svg)](https://agentmods.dev/skills/zhaji2333/ckskills/miniprogram-security)
Your own site
<a href="https://agentmods.dev/skills/zhaji2333/ckskills/miniprogram-security"><img src="https://agentmods.dev/badge/skills/zhaji2333/ckskills/miniprogram-security/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 miniprogram-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhaji2333/ckskills/miniprogram-security"><img src="https://agentmods.dev/badge/skills/zhaji2333/ckskills/miniprogram-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,232 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00160 $0.03232
Opus 5.5 $0.00064 $0.01293
Sonnet 5.5 $0.00032 $0.00646
Haiku 4.5 $0.00016 $0.00323

Measured 1mo ago against content hash 27cd854f0cb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

miniprogram-security 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 1mo 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.

.agents/skills/miniprogram-security/SKILL.md · 199 lines

How it starts

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

miniprogram-security — 小程序专项深度挖掘

与 android-security-audit 的分工:本技能专注 小程序(微信/支付宝/抖音/百度)与微信云开发;Android APK 组件安全见 android-security-audit。小程序与 APP 后台接口常同源,两技能可联动:先从 APP/小程序提取后端域名,再统一测接口。

何时调用(触发条件)

  • 目标是微信/支付宝/抖音/百度/QQ 小程序
  • 拿到小程序包(.wxapkg / 分包 / 反编译产物),需要还原源码
  • 需要提取接口清单、appid/appsecret、云开发配置、加密/签名逻辑
  • 发现微信登录链(wx.login code)、支付、openid/用户 ID 可控、未授权接口
  • 发现 web-view / rich-text / JSBridge / 分享跳转 等前端渲染点
  • 目标是微信云开发(云函数/云数据库/云存储)

快速开始(5 分钟出第一个接口/凭证)

# Step 1: 定位小程序包(PC 微信缓存目录)
# 微信/WeChat Files/Applet/<appid>/ 下 *.wxapkg(含分包)
# 或开发者工具/手机抓包/第三方平台获取

# Step 2: 反编译
# wxappUnpacker / unveilr / CrackMinApp 解包,得到 app.js、app.json、pages/、utils/、cloudfunctions/

# Step 3: 提取敏感信息与接口(高优先级)
grep -rniE "appid|appsecret|secret|access_key|secret_key|token" <解包目录>/
grep -rEoh "https?://[a-zA-Z0-9._/-]+" <解包目录>/ | sort -u          # 后端/业务域名
grep -rn "wx.request|wx.cloud.callFunction|request\(" <解包目录>/ | head -50  # 接口与云函数

# Step 4: 优先验证
# openid 可控 → 替换他人 openid 测越权;登录 code → 重放/替换;支付参数 → 金额篡改

一、包获取与反编译

获取途径

  • PC 微信:WeChat Files/Applet/<appid>/ 下 .wxapkg 缓存(主包+分包),需先在小程序里打开过
  • 微信开发者工具:导入源码调试(拿到项目源码的场景)
  • 手机抓包:HTTP(S) 代理 + 小程序包下载接口(配合证书安装)
  • 第三方平台:小程序包下载站、GitHub 泄露、历史版本
  • 其他平台:支付宝(.axml)、抖音、百度(.swan)结构类似,解包工具对应适配

反编译工具

wxappUnpacker        # 经典解包,还原 app.js/pages 结构
unveilr              # 较新,支持分包/新版格式
CrackMinApp          # 微信小程序一键解包
  • 解包产物结构:app.js(全局逻辑)、app.json(页面/权限配置)、pages/*(页面)、utils/*、project.config.json、cloudfunctions/(云函数目录)
  • 新版分包需先解主包再按 app.json 的 subpackages 配置逐分包解
  • 压缩混淆的 JS:先用 js-beautify/反混淆还原,再搜索关键字

还原度确认:解包后核对 app.json 页面数与线上功能是否对应,确认还原完整再开始审计。


二、静态审计重点(代码层面)

app.js / 全局逻辑

  • 全局接口封装、请求拦截器(看统一鉴权头怎么带的:token?openid?自定义签名?)
  • 登录流程:wx.login() → code → 后端换 session/token 的完整链路
  • 全局变量:appid、环境 env、后台域名、加密密钥

敏感信息(重点上报项,联动 recon-js-analysis)

  • appid(正常)、appsecret 出现在前端 = 配置错误/泄露(后端才应持有)→ 上报并深挖(可换取 access_token 调接口)
  • 云开发 env ID、腾讯云 SecretId/SecretKey、OSS/存储桶密钥、内网/后台域名
  • 提取的 URL/IP/域名 → 提醒用户关注:可能是 APP/小程序后台接口,进入资产测绘

Read the full file on GitHub · 199 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. 1mo ago First seen · 199 lines · 160 tokens per session scan A 27cd854f0cb7

Subscribe to this mod's changes

miniprogram-security is a skill published in the GitHub repository zhaji2333/CkSKILLS (126 stars, last pushed 1mo ago), licensed MIT. It adds 160 tokens to every session and 3,232 once invoked, about $0.0006 per session on Opus 5.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

xcode-build-orchestrator

Orchestrate Xcode build optimization by benchmarking first, running the specialist analysis skills, prioritizing findings, requesting explicit approval, delegating approved fixes to xcode-build-fixer, and re-benchmarking after changes. Use when a developer wants an end-to-end build optimization workflow, asks to speed…

AvdLee/Xcode-Build-Optimization-Agent-Skill · 94 tokens

spm-build-analysis

Analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode builds. Use when a developer suspects packages, plugins, or dependency graph shape are hurting clean or incremental build performance, mentions SPM slowness, package resolution time, build…

AvdLee/Xcode-Build-Optimization-Agent-Skill · 87 tokens

apple-hig

Apple Human Interface Guidelines reference, updated for iPhone Duo and OS 27. Provides authoritative platform-specific design rules, component specifications, exact measurements, and interaction patterns for iOS, iPadOS, macOS, tvOS, visionOS, and watchOS. Use when designing, reviewing, auditing, or fixing any Apple…

justinwetch/HIGAgentSkills · 158 tokens

appstore-review-checker

Audit iOS/macOS apps against App Store Review Guidelines before submission, with evidence-backed verdicts and fixes. Don't use for Google Play, general code review, or rejection appeals.

luongnv89/skills · 42 tokens

appstore-assets

Generate App Store screenshots and header/search images for iPhone, iPad and Mac from a codebase or landing page, or re-render a set. Use when preparing a submission. Don't use for ASO keywords, review audits, icons, videos, or Google Play.

luongnv89/skills · 58 tokens

xcode-project-analyzer

Audit Xcode project configuration, build settings, scheme behavior, and script phases to find build-time improvements with explicit approval gates. Use when a developer wants project-level build analysis, slow incremental builds, guidance on target dependencies, build settings review, run script phase analysis…

AvdLee/Xcode-Build-Optimization-Agent-Skill · 72 tokens