patent-writing-cn
专利撰写工具,代码功能正常但存在文档不准确问题:声明了 Bash 工具但实际未使用,外部网络访问未充分告知用户。
Why this conclusion was reached
1/4 dimensions flagged2 undeclared or violating capabilities were inferred.
6 lower-risk artifacts were extracted and still need context.
There is no explicit malicious chain in the report.
Dependency information is incomplete, so supply-chain confidence stays limited.
What drove the risk score up
SKILL.md 声明 Bash 工具但代码中无任何 shell 执行
代码访问外部 API (api.ip930.com) 发送用户材料,但文档仅含糊提及「数据来自 PatentMax」
Most important evidence
工具声明与实际行为不符
SKILL.md 声明 allowed-tools 包含 Bash,但 patentmax_disclosure.py 代码中完全没有使用 subprocess、os.system 等 shell 执行功能。实际只是 Python 标准库的网络请求和文件操作。
scripts/patentmax_disclosure.py:1 外部网络访问未充分告知
代码会将用户材料通过 HTTP POST 发送到 https://api.ip930.com 处理,但 SKILL.md 仅含糊提及「数据来自 PatentMax 专利库」和「接口与控制台」。用户可能不清楚材料会被发送到外部服务器。
scripts/patentmax_disclosure.py:67 自动领取试用密钥
首次运行时会自动向 api.ip930.com/api/v1/trial-keys 发送请求领取试用密钥,并将密钥存储到 ~/.patentmax/。这一行为虽在 SKILL.md 中提及,但较为隐蔽。
scripts/patentmax_disclosure.py:84 Declared capability vs actual capability
read_file() 读取 .docx/.md/.txt,do_download() 写入 Word 文件 SKILL.md 声明 Bash 但代码中无 subprocess.run() 或 os.system() 调用 request() 函数访问 api.ip930.com,_claim_trial_key() POST 到外部 API 读取 PATENTMAX_API_KEY, PATENTMAX_BASE_URL 配置,符合功能需求 Suspicious artifacts and egress
https://api.ip930.com** README.md:17
https://api.ip930.com README.md:141
https://api.ip930.com/features/api-platform references/faq.md:7
https://api.ip930.com/api/v1/reports references/faq.md:60
https://api.ip930.com/api/v1/operations/ references/faq.md:75
https://api.ip930.com/api/v1/reports/ references/faq.md:79
Dependencies and supply chain
There are no structured dependency warnings.
File composition
scripts/patentmax_disclosure.py README.md references/faq.md