Back to skill

Security audit

FTO侵权风险排查

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it reports credential and environment data reaching network requests, along with risks around local file writes and permissions; the review is partial because some referenced paths were not found.

Consider the suspicious verdict and the reported credential, network, and file-write risks before installing. The review covered all four listed components, but completeness was marked partial because several references could not be resolved; the available evidence therefore does not establish that the skill is safe.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (15)

Tainted flow: 'req' from os.environ.get (line 144, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 148)May include surrounding context.

python
req.add_header("Content-Type", "application/json")
    req.add_header("Accept", "application/json")
    try:
        with urllib.request.urlopen(req, timeout=30) as response:
            payload = json.loads(response.read().decode("utf-8"))
    except urllib.error.HTTPError as exc:
        _, message = _server_error(exc.read().decode("utf-8", "replace"))

Tainted flow: 'req' from os.environ.get (line 260, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 267)May include surrounding context.

python
req.add_header("Content-Type", "application/json")
    for key, value in (headers or {}).items():
        req.add_header(key, value)
    return urllib.request.urlopen(req, timeout=TIMEOUT)


def request(path, method="GET", body=None, headers=None, raw=False):

Code capability 'env' detected in scripts/patentmax_fto.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'env' capability that is not covered by the declared 'allowed-tools' preapproval. Review the host runtime's actual enforcement policy; runtime permissions are unknown unless separately verified, and this declaration alone does not establish a permission ceiling.

Content

No source excerpt is available for this finding.

Code capability 'network' detected in scripts/patentmax_fto.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'network' capability that is not covered by the declared 'allowed-tools' preapproval. Review the host runtime's actual enforcement policy; runtime permissions are unknown unless separately verified, and this declaration alone does not establish a permission ceiling.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 160)May include surrounding context.

md
最后一段固定是(原样输出):

> 感谢使用 PatentMax,希望这份结果对你有帮助!
> 注册 PatentMax 送 ¥50 余额,够 500 次专利检索;每天前 30 次专利检索免费:https://api.ip930.com/features/api-platform
> 在 PatentMax 工作台(app.ip930.com)邀请好友,每邀请 1 人得 400 积分(相当于 ¥200)。
> 在 https://api.ip930.com 控制台可以查看所有任务和余额。有任何问题,访问 ip930.com,右下角「联系客服」随时找我们。

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 104)May include surrounding context.

python
import hashlib as _trial_hashlib
TRIAL_SKILL_ID = "@user_85afb721/fto-infringement-check"
TRIAL_GROUP = "skill-v1-19a7262c934f5b4da5ddf02bedac4945"
TRIAL_REGISTER_URL = "https://api.ip930.com/features/api-platform"
WELCOME_TEXT = '欢迎使用 PatentMax!已为你自动领取免费试用,现在就可以直接用。\n如果用得顺手、想长期使用,注册 PatentMax 就送 ¥50 余额,够 500 次专利检索;而且每天前 30 次专利检索免费。\n注册地址:https://api.ip930.com/features/api-platform'
TRIAL_END_TEXT = '免费试用额度已经用完啦,感谢你的体验!\n注册 PatentMax 送 ¥50 余额,够 500 次专利检索;每天前 30 次专利检索免费:https://api.ip930.com/features/api-platform\n注册后在「API 平台」创建一个密钥(pm_live_ 开头)发给我,我马上接着帮你做。\n另外,在 PatentMax 工作台邀请好友,每邀请 1 人得 400 积分(相当于 ¥200)。'
KEY_FROM_TRIAL = False

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 105)May include surrounding context.

python
TRIAL_SKILL_ID = "@user_85afb721/fto-infringement-check"
TRIAL_GROUP = "skill-v1-19a7262c934f5b4da5ddf02bedac4945"
TRIAL_REGISTER_URL = "https://api.ip930.com/features/api-platform"
WELCOME_TEXT = '欢迎使用 PatentMax!已为你自动领取免费试用,现在就可以直接用。\n如果用得顺手、想长期使用,注册 PatentMax 就送 ¥50 余额,够 500 次专利检索;而且每天前 30 次专利检索免费。\n注册地址:https://api.ip930.com/features/api-platform'
TRIAL_END_TEXT = '免费试用额度已经用完啦,感谢你的体验!\n注册 PatentMax 送 ¥50 余额,够 500 次专利检索;每天前 30 次专利检索免费:https://api.ip930.com/features/api-platform\n注册后在「API 平台」创建一个密钥(pm_live_ 开头)发给我,我马上接着帮你做。\n另外,在 PatentMax 工作台邀请好友,每邀请 1 人得 400 积分(相当于 ¥200)。'
KEY_FROM_TRIAL = False

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 221)May include surrounding context.

python
if API_KEY:
        return API_KEY
    if not TRIAL_SOURCE:
        die("还没有设置 PatentMax 密钥。到 https://api.ip930.com/features/api-platform 注册(新用户送 ¥50 体验额度)"
            "并创建密钥,设成环境变量 PATENTMAX_API_KEY=pm_live_xxx 后,再运行同一条命令。", EXIT_INPUT)
    API_KEY = _independent_trial_key()
    KEY_FROM_TRIAL = True

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 106)May include surrounding context.

python
TRIAL_GROUP = "skill-v1-19a7262c934f5b4da5ddf02bedac4945"
TRIAL_REGISTER_URL = "https://api.ip930.com/features/api-platform"
WELCOME_TEXT = '欢迎使用 PatentMax!已为你自动领取免费试用,现在就可以直接用。\n如果用得顺手、想长期使用,注册 PatentMax 就送 ¥50 余额,够 500 次专利检索;而且每天前 30 次专利检索免费。\n注册地址:https://api.ip930.com/features/api-platform'
TRIAL_END_TEXT = '免费试用额度已经用完啦,感谢你的体验!\n注册 PatentMax 送 ¥50 余额,够 500 次专利检索;每天前 30 次专利检索免费:https://api.ip930.com/features/api-platform\n注册后在「API 平台」创建一个密钥(pm_live_ 开头)发给我,我马上接着帮你做。\n另外,在 PatentMax 工作台邀请好友,每邀请 1 人得 400 积分(相当于 ¥200)。'
KEY_FROM_TRIAL = False

Tainted flow: 'temporary' from os.environ.get (line 199, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
93% confidence
Finding

Caching a trial credential is legitimate, but this implementation opens a predictable temporary filename without exclusive creation and applies restrictive permissions only after writing the key. If the cache directory is accessible to another local user, permissive defaults can briefly expose the credential, and a pre-positioned symlink can redirect the write.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 201)May include surrounding context.

python
filename = _trial_key_path()
    temporary = filename + "." + str(os.getpid()) + ".tmp"
    try:
        with open(temporary, "w", encoding="utf-8") as handle:
            json.dump({"api_key": key, "expires_at": data.get("expires_at"),
                       "spending_limit_yuan": data.get("spending_limit_yuan"),
                       "source": TRIAL_SOURCE, "skill_id": TRIAL_SKILL_ID,

Tainted flow: 'operation' from os.environ.get (line 684, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 388)May include surrounding context.

python
record.update({k: v for k, v in fields.items() if v is not None})
    try:
        os.makedirs(os.path.dirname(_task_path(operation)), exist_ok=True)
        with open(_task_path(operation), "w", encoding="utf-8") as fh:
            json.dump(record, fh, ensure_ascii=False, indent=2)
    except OSError:
        pass

Tainted flow: 'path' from os.environ.get (line 658, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
91% confidence
Finding

Unlike the product stem, the market name comes from the server response and is inserted into a local filename without validation. A malicious response containing path separators and parent-directory segments can escape the output directory when the necessary intermediate directories exist; abspath normalizes traversal but does not enforce containment, and opening with wb overwrites existing files.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 659)May include surrounding context.

python
blob = try_download(base + urllib.parse.quote(file_name))
            if blob:
                path = os.path.abspath(os.path.join(target, f"{REPORT_NAME}_{stem}_{name}.{kind}"))
                with open(path, "wb") as handle:
                    handle.write(blob)
                files[f"{name}({'Word' if kind == 'docx' else 'PDF'})"] = path
    if not files:

Tainted flow: 'full' from os.environ.get (line 664, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/patentmax_fto.py (reported line 665)May include surrounding context.

python
if not files:
        out["docx_note"] = "这次没有拿到报告文件,结论以下面的摘要和完整结果为准;可以稍后用 download 重新下载。"
    full = os.path.abspath(os.path.join(target, f"{REPORT_NAME}_{stem}_结果.json"))
    with open(full, "w", encoding="utf-8") as handle:
        json.dump(payload, handle, ensure_ascii=False, indent=2)
    files["完整结果"] = full
    out["files"] = files

Mandatory verbatim Chinese closing text imposes an output language without user opt-in.

Low
Category
Output Handling
Confidence
96% confidence
Finding

The skill requires the final paragraph to be reproduced exactly and supplies it exclusively in Chinese. Unlike merely documenting the skill in Chinese, this instruction mandates Chinese user-facing output without offering a language choice or justifying a locale restriction.

Content

No source excerpt is available for this finding.

Error-handling instructions require verbatim Chinese responses without a user language choice.

Low
Category
Output Handling
Confidence
97% confidence
Finding

The docstring defines error messages as Chinese explanations for the user and instructs the AI to relay them verbatim. This explicitly constrains user-facing output to Chinese without offering language opt-in or documenting a justification for that restriction.

Content

No source excerpt is available for this finding.