跳转到正文
报告库
用途分类 / 其他用途

Clerk Skill 安全审计

作者说它能做什么(原文)

Clerk authentication router. Use when user asks about Clerk CLI operations,

第三方安全检查结论

先别安装或运行

已检查文件
1
发现的风险
3
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。未发现风险
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。未发现风险
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。发现 3 项风险
高风险

支持模拟任意 Clerk 用户的高权限操作

原文依据:2 处
发现了什么

路由器明确把 `clerk impersonate` 列为 CLI 功能。模拟身份可让操作者以目标用户身份检查应用;提供的路由文件没有说明环境限制、目标确认或审批步骤。

为什么需要注意

若代理在错误的生产实例、错误账户或未经授权的用户上执行,可能获得该用户可见的数据和权限,并以其身份触发操作。

这段证据能说明什么

该文件确实把用户模拟列为 Clerk CLI 路由所涵盖的任务,但它只是将任务转交给未提供的 `clerk-cli` skill,没有展示执行命令、选择目标用户或绕过审批的实现。现有证据不足以证明可模拟“任意”用户或该操作具有未受控的高权限;实际风险取决于被路由 skill 的确认机制以及操作者的 Clerk 权限。用户可要求作者提供 `clerk-cli` 的内容,并限制模拟功能只能在测试实例中使用。

这项判断针对展示的代码和适用条件,不表示风险已经实际发生。
SKILL.md:43来自说明文档打开原文件
**Operating Clerk from the CLI** → Use `clerk-cli`- Auth, linking, `doctor`, and environment pulls- User, org, session, app, and instance management- Impersonating a user (`clerk impersonate`) and local webhook testing (`clerk webhooks listen`)- Feature toggles (`clerk enable orgs`, `clerk enable billing`)
查看另外 1 个位置
SKILL.md:46来自说明文档打开原文件
- User, org, session, app, and instance management- Impersonating a user (`clerk impersonate`) and local webhook testing (`clerk webhooks listen`)- Feature toggles (`clerk enable orgs`, `clerk enable billing`)
中风险

路由范围包含广泛的 Clerk 管理和配置变更

原文依据:3 处
发现了什么

CLI 路由涵盖用户、组织、会话、应用和实例管理,还可启用组织或计费功能并调用 Clerk API。仅“执行 API 请求”提到范围限制;路由文件未要求对具体变更进行预览或二次确认。

为什么需要注意

在生产实例或错误账户中执行写操作,可能改变成员访问权、会话、应用配置或计费能力,导致越权、用户被锁定或意外商业配置变化。

这段证据能说明什么

路由说明覆盖多类 Clerk 资源管理、功能开关和 API 调用,因此被转交的 skill 可能执行影响账户或计费配置的操作。不过,本文件本身没有具体命令或自动执行指令,并明确称 API 请求带有 scope enforcement。由于 `clerk-cli` 和 `clerk-backend-api` 的实现未提供,无法判断是否缺少预览、确认或权限检查。用户可在允许使用前要求查看这些 skill,并将令牌权限限定到必要资源。

这项判断针对展示的代码和适用条件,不表示风险已经实际发生。
SKILL.md:43来自说明文档打开原文件
**Operating Clerk from the CLI** → Use `clerk-cli`- Auth, linking, `doctor`, and environment pulls- User, org, session, app, and instance management- Impersonating a user (`clerk impersonate`) and local webhook testing (`clerk webhooks listen`)- Feature toggles (`clerk enable orgs`, `clerk enable billing`)- Backend, Platform, and Frontend API calls through `clerk api`- Deploy handoff and deploy status verification
查看另外 2 个位置
SKILL.md:137来自说明文档打开原文件
**Backend REST API** → Use `clerk-backend-api`- Browse API tags and endpoints- Inspect endpoint schemas- Execute API requests with scope enforcement
SKILL.md:45来自说明文档打开原文件
- Auth, linking, `doctor`, and environment pulls- User, org, session, app, and instance management- Impersonating a user (`clerk impersonate`) and local webhook testing (`clerk webhooks listen`)- Feature toggles (`clerk enable orgs`, `clerk enable billing`)- Backend, Platform, and Frontend API calls through `clerk api`- Deploy handoff and deploy status verification
中风险

版本不明时默认采用当前 SDK,可能破坏旧版认证集成

原文依据:3 处
发现了什么

文件先要求检查 package.json,但明确规定版本不清楚时默认当前 SDK。它同时说明 Core 2 与当前版使用不同包名,且自定义流程 API 完全不同。

为什么需要注意

若现有项目的版本检测失败,代理可能采用不兼容的依赖或认证 API,造成构建失败、登录中断,或错误实现路由保护。

这是实际的路由规则:先检查 `package.json`,但无法确定版本或新项目时默认 current SDK。文件也明确说明 Core 2 与 current 使用不同包名,且自定义流程 API 差异大。因此,如果现有旧项目的版本检测失败,后续建议可能采用不兼容的依赖或 API,造成认证构建失败或流程异常。用户可要求作者在已有项目版本不明时停止并确认,而不是自动采用 current。

SKILL.md:20来自说明文档打开原文件
Check `package.json` to determine the Clerk SDK version. This determines which patterns to use:
查看另外 2 个位置
SKILL.md:30来自说明文档打开原文件
**Default to current** if the version is unclear or the project is new. Core 2 packages use `@clerk/clerk-react` and `@clerk/clerk-expo` (with `clerk-` prefix); current packages use `@clerk/react` and `@clerk/expo`.All skills are written for the current SDK. When something differs in Core 2, it's noted inline with `> **Core 2 ONLY (skip if current SDK):**` callouts. The exception is `clerk-custom-ui`, which has separate `core-2/` and `core-3/` directories for custom flow hooks since those APIs are entirely different between versions.
SKILL.md:32来自说明文档打开原文件
All skills are written for the current SDK. When something differs in Core 2, it's noted inline with `> **Core 2 ONLY (skip if current SDK):**` callouts. The exception is `clerk-custom-ui`, which has separate `core-2/` and `core-3/` directories for custom flow hooks since those APIs are entirely different between versions.
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险

Skill 逻辑拆解

3 个说明模块

该文件是路由器,不直接实现认证流程;它根据用户任务把代理导向其他 Clerk 技能。

查看原文
SKILL.md:38来自说明文档打开原文件
**Adding Clerk to your project** → Use `clerk-setup`- Framework detection and quickstart
SKILL.md:43来自说明文档打开原文件
**Operating Clerk from the CLI** → Use `clerk-cli`- Auth, linking, `doctor`, and environment pulls
SKILL.md:137来自说明文档打开原文件
**Backend REST API** → Use `clerk-backend-api`- Browse API tags and endpoints- Inspect endpoint schemas- Execute API requests with scope enforcement

路由器要求读取项目的 package.json 来识别 Clerk SDK 版本;版本不清楚时默认采用当前版模式。

查看原文
SKILL.md:20来自说明文档打开原文件
Check `package.json` to determine the Clerk SDK version. This determines which patterns to use:
SKILL.md:30来自说明文档打开原文件
**Default to current** if the version is unclear or the project is new. Core 2 packages use `@clerk/clerk-react` and `@clerk/clerk-expo` (with `clerk-` prefix); current packages use `@clerk/react` and `@clerk/expo`.

其声明的范围包括认证配置、用户与组织管理、计费、后端 API、模拟用户和部署交接,部分任务会影响真实账户或访问控制。

查看原文
SKILL.md:43来自说明文档打开原文件
**Operating Clerk from the CLI** → Use `clerk-cli`- Auth, linking, `doctor`, and environment pulls- User, org, session, app, and instance management- Impersonating a user (`clerk impersonate`) and local webhook testing (`clerk webhooks listen`)- Feature toggles (`clerk enable orgs`, `clerk enable billing`)- Backend, Platform, and Frontend API calls through `clerk api`- Deploy handoff and deploy status verification
SKILL.md:109来自说明文档打开原文件
**Billing & Subscriptions** → Use `clerk-billing`- `<PricingTable />` component- Plan and feature gating with `has()`- Seat-based B2B billing with organizations- Subscription lifecycle webhooks- Free trials, invoicing
从这里开始 · 工作说明SKILL.md
clerk
连线表示工作说明包含的模块,不是实际运行顺序。点击模块可查看原文。
文件与检查记录1 个文件

检查范围与遗漏

逐文件查看涉及的内容

下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。

  • SKILL.md已纳入全文

这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。

  • SKILL.md工作说明
读取了多少行
166
文件校验值(用于核对版本)
8f0387908110b1b8f6c78d1fbd7dce5c0538085d243a2b874726634e3d0378fa