360 Secure SkillHub
360 安全技能中心

accidental-registry-publication-response

核心功能是应对ClawHub上意外发布含私密、版权等非预期文件的技能版本,提供从范围确认(记录版本、检查文件、排查Git状态)、版本移除(获批准后删除指定版本)到有效性验证(确认删除结果)的全流程操作步骤,适用于包意外泄露敏感文件的应急处理场景,帮助规范处置并降低风险。

nextaltair
nextaltair
热度 7.65
最近更新 2026-09-02 16:42:41
分类:安全依赖:代码执行应用场景:工作流 / 报告撰写

安装技能

复制下面的话术发给你的 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.