Skill Trust Decision

patent-writing-cn

专利撰写工具,代码功能正常但存在文档不准确问题:声明了 Bash 工具但实际未使用,外部网络访问未充分告知用户。

Install decision first Source: ClawHub Scanned: Oct 10, 2026
Files 6
Artifacts 6
Violations 2
Findings 3

Why this conclusion was reached

1/4 dimensions flagged
Block
Declared vs actual capability

2 undeclared or violating capabilities were inferred.

Review
Hidden execution and egress

6 lower-risk artifacts were extracted and still need context.

Pass
Attack chain and severe findings

There is no explicit malicious chain in the report.

Review
Dependencies and supply chain hygiene

Dependency information is incomplete, so supply-chain confidence stays limited.

What drove the risk score up

工具声明与实际不符 +10

SKILL.md 声明 Bash 工具但代码中无任何 shell 执行

网络访问未充分告知 +10

代码访问外部 API (api.ip930.com) 发送用户材料,但文档仅含糊提及「数据来自 PatentMax」

Most important evidence

Medium Doc Mismatch

工具声明与实际行为不符

SKILL.md 声明 allowed-tools 包含 Bash,但 patentmax_disclosure.py 代码中完全没有使用 subprocess、os.system 等 shell 执行功能。实际只是 Python 标准库的网络请求和文件操作。

scripts/patentmax_disclosure.py:1
从 allowed-tools 中移除 Bash,或在代码中增加真正需要 shell 的功能(如调用外部转换工具处理 PDF)
Medium Doc Mismatch

外部网络访问未充分告知

代码会将用户材料通过 HTTP POST 发送到 https://api.ip930.com 处理,但 SKILL.md 仅含糊提及「数据来自 PatentMax 专利库」和「接口与控制台」。用户可能不清楚材料会被发送到外部服务器。

scripts/patentmax_disclosure.py:67
在 SKILL.md 明确声明:「材料将发送到 PatentMax 服务端 (api.ip930.com) 进行处理」
Low Sensitive Access

自动领取试用密钥

首次运行时会自动向 api.ip930.com/api/v1/trial-keys 发送请求领取试用密钥,并将密钥存储到 ~/.patentmax/。这一行为虽在 SKILL.md 中提及,但较为隐蔽。

scripts/patentmax_disclosure.py:84
在交互流程开始前明确告知用户此行为

Declared capability vs actual capability

Filesystem Pass
Declared READ+WRITE
→
Inferred READ+WRITE
read_file() 读取 .docx/.md/.txt,do_download() 写入 Word 文件
Shell Block
Declared WRITE
→
Inferred NONE
SKILL.md 声明 Bash 但代码中无 subprocess.run() 或 os.system() 调用
Network Block
Declared NONE
→
Inferred WRITE
request() 函数访问 api.ip930.com,_claim_trial_key() POST 到外部 API
Environment Pass
Declared NONE
→
Inferred READ
读取 PATENTMAX_API_KEY, PATENTMAX_BASE_URL 配置,符合功能需求

Suspicious artifacts and egress

Medium External URL
https://api.ip930.com**

README.md:17

Medium External URL
https://api.ip930.com

README.md:141

Medium External URL
https://api.ip930.com/features/api-platform

references/faq.md:7

Medium External URL
https://api.ip930.com/api/v1/reports

references/faq.md:60

Medium External URL
https://api.ip930.com/api/v1/operations/

references/faq.md:75

Medium External URL
https://api.ip930.com/api/v1/reports/

references/faq.md:79

Dependencies and supply chain

There are no structured dependency warnings.

File composition

6 files · 1246 lines
Markdown 5 files · 690 linesPython 1 files · 556 lines
Files of concern · 3
scripts/patentmax_disclosure.py Python · 556 lines
工具声明与实际行为不符 · 外部网络访问未充分告知 · 自动领取试用密钥
README.md Markdown · 175 lines
https://api.ip930.com** · https://api.ip930.com
references/faq.md Markdown · 88 lines
https://api.ip930.com/features/api-platform · https://api.ip930.com/api/v1/reports · https://api.ip930.com/api/v1/operations/ · https://api.ip930.com/api/v1/reports/
Other files · SKILL.md · workflow.md · materials-guide.md

Security positives

仅使用 Python 标准库,无第三方依赖,无供应链风险
代码结构清晰,主要逻辑为与专利服务 API 的交互
材料访问和写入范围合理,符合工具功能定位
无凭证收割、reverse shell、数据外泄等恶意行为
材料护栏机制合理(字数检查、幂等键防止重复扣费)
错误处理完善,有清晰的用户提示