360 Secure SkillHub
360 安全技能中心

accidental-registry-publication-response

用于应对 ClawHub 技能版本误含私有或非预期文件的发布事故:记录受影响版本,检查文件与 Git 暴露范围,经用户明确批准后删除指定版本,并复查注册表可用性。还要求把注册表、Git、本地缓存和日志暴露分开报告,必要时升级处理凭据或个人信息。

nextaltair
nextaltair
热度 9.76
最近更新 2026-09-02 16:42:41
分类:安全依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 工作流 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add accidental-registry-publication-response
Metadata
name
accidental-registry-publication-response
description
Accidental ClawHub publish or leaked package files: scope, remove, and verify one affected version.

Accidental registry publication response

Use when a ClawHub skill version accidentally contains private, copyrighted, generated, cached, or otherwise unintended files.

Contain

  1. Do not delete yet. Record the skill slug and exact affected version.
  2. Confirm publisher identity with clawhub whoami.
  3. Inspect CLI capabilities before relying on remembered syntax:
    • clawhub inspect --help
    • clawhub delete --help
  4. Inspect the exact version, not only latest:
    • clawhub inspect <skill> --version <version> --files --json
  5. Record exposed file paths, sizes, hashes, selected version, latest version, and whether exact-version retrieval still works.
  6. Check whether a corrected replacement is already latest. A replacement does not remove an older retrievable version.

Scope Git separately

  1. Resolve the skill path and its actual repository root:
    • readlink -f <skill-path>
    • git -C <skill-path> rev-parse --show-toplevel
  2. From that root, test affected paths with:
    • git -C <repo-root> ls-files -- '<affected-path>'
    • git -C <repo-root> check-ignore -v <affected-path>
  3. Only investigate Git history when the files were tracked. Do not infer Git exposure from ClawHub exposure.
  4. Avoid a broad git log --all before resolving the correct repository root and tracked paths; it can be slow and answers the wrong question in nested repositories.

Remove

Treat exact-version deletion as irreversible. Obtain explicit user approval before running it.

Use the syntax shown by the installed CLI help:

clawhub delete <skill> --version <version> --yes

Do not delete the whole skill when one version is affected. The observed CLI says exact-version deletion is permanent and cannot be restored or republished; publish a replacement first when deleting the current latest version.

Verify

After deletion:

  1. Repeat clawhub inspect <skill> --version <version> --files --json.
  2. Confirm the affected version and its files are no longer retrievable.
  3. Inspect the skill normally and confirm the intended latest version remains available.
  4. Recheck the registry independently of local Git state; ignored or untracked local files do not prove registry removal.
  5. Report registry exposure, Git exposure, local cache state, and conversation/log exposure as separate findings. Escalate credentials, personal data, or private communications beyond package deletion; required notification, cache purge, access review, or credential rotation depends on the exposed material and registry capabilities.