Back to skill

Security audit

微排版作品编辑

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because its activation may send generic image-editing or unspecified requests into a Weipaiban workflow; the evidence does not establish malicious intent, and some analysis was partial.

Review the broad activation behavior and confirm you want generic image-editing or unspecified requests to enter an authenticated Weipaiban workflow. Before installing, also check that you trust the external service and are comfortable with the skill using credentials from the environment for network requests. Coverage was marked partial: seven local references were unresolved and a QR image was outside static analysis, so the scan does not establish that every related item was assessed.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (10)

Tainted flow: 'request' from os.environ.get (line 72, 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/apply_changes.py (reported line 76)May include surrounding context.

python
request.add_header("Content-Type", "application/json;charset=UTF-8")
    request.add_header("Accept", "application/json")
    request.add_header("Authorization", f"Bearer {api_key}")
    with urllib.request.urlopen(request, timeout=30, context=build_ssl_context()) as resp:
        raw = resp.read().decode("utf-8")
        return resp.status, json.loads(raw) if raw else {}

Tainted flow: 'request' from os.environ.get (line 113, 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/fetch_ai_assets.py (reported line 119)May include surrounding context.

python
for attempt in (1, 2):
        try:
            with urllib.request.urlopen(request, timeout=30, context=context) as resp:
                payload = json.loads(resp.read().decode("utf-8"))
        except urllib.error.HTTPError as error:
            body = error.read().decode("utf-8", errors="replace")

Tainted flow: 'request' from os.environ.get (line 91, 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/fetch_work.py (reported line 95)May include surrounding context.

python
request.add_header("Authorization", f"Bearer {api_key}")
    request.add_header("Accept", "application/json")
    try:
        with urllib.request.urlopen(request, timeout=30, context=build_ssl_context()) as resp:
            payload = json.loads(resp.read().decode("utf-8"))
            status = resp.status
    except urllib.error.HTTPError as error:

Tainted flow: 'request' from os.environ.get (line 121, 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/templates.py (reported line 127)May include surrounding context.

python
request.add_header("Authorization", f"Bearer {api_key}")
    request.add_header("Accept", "application/json")
    try:
        with urllib.request.urlopen(request, timeout=30, context=build_ssl_context()) as resp:
            payload = json.loads(resp.read().decode("utf-8"))
            status = resp.status
    except urllib.error.HTTPError as error:

Tainted flow: 'request' from os.environ.get (line 175, 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/upload_images.py (reported line 179)May include surrounding context.

python
request.add_header("Content-Type", "application/json")
    request.add_header("Accept", "application/json, text/plain, */*")
    request.add_header("Authorization", f"Bearer {api_key}")
    with urllib.request.urlopen(request, timeout=REQUEST_TIMEOUT, context=context) as resp:
        raw = resp.read().decode("utf-8")
        status = resp.status
    return status, json.loads(raw) if raw else {}

Tainted flow: 'request' from os.environ.get (line 189, 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/upload_images.py (reported line 193)May include surrounding context.

python
request.add_header("Content-Type", content_type)
    request.add_header("Accept", "application/json, text/plain, */*")
    request.add_header("Authorization", f"Bearer {api_key}")
    with urllib.request.urlopen(request, timeout=REQUEST_TIMEOUT, context=context) as resp:
        raw = resp.read().decode("utf-8")
        status = resp.status
    return status, json.loads(raw) if raw else {}

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

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 · scripts/api_base.py (reported line 70)May include surrounding context.

python
def self_test() -> None:
    assert validate_api_base("https://weipaiban.cn") == "https://weipaiban.cn"
    assert validate_api_base("https://api.weipaiban.cn/") == "https://api.weipaiban.cn"
    assert validate_api_base("http://127.0.0.1:3000") == "http://127.0.0.1:3000"
    assert validate_api_base("http://localhost") == "http://localhost"
    assert validate_api_base("https://::1:8787") == "https://::1:8787"

Activation includes generic image-replacement requests and unspecified topics without requiring Weipaiban context.

Low
Category
Trigger Abuse
Confidence
88% confidence
Finding

The activation description includes generic image replacement, and the entry logic interprets an unspecified topic as a template-creation request without first establishing Weipaiban context. This can route unrelated requests into an authenticated external-service workflow; template selection and edit confirmation reduce the likelihood of immediate unauthorized changes.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · scripts/build_oss_src.py (reported line 287)May include surrounding context.

python
missing = [
        name
        for name in ("url", "natural_w", "natural_h", "target_w", "target_h")
        if getattr(args, name) in (None, "")
    ]
    if missing:
        parser.error(f"缺少参数: {', '.join(missing)}")