Back to skill

Security audit

yzl-open-api

Security checks for vulnerabilities and agentic risk

Overview

The scanners report repository publishing with external credentials, undeclared ClawHub update checks, and broader device commands than described, so this skill is rated suspicious with medium confidence.

Consider not installing unless you need this skill and are comfortable with its reported behavior. In particular, review the publishing script and credential access, the automatic ClawHub version check, and the broader device command interface; the scan was marked partial because several local references could not be resolved, so the evidence is incomplete.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The packaged publishing behavior is unrelated to device operations and can stage and publish unintended repository content using credentials outside the skill's declared requirements. This creates a conditional disclosure risk if the publishing script is invoked with usable credentials; the supplied documentation does not establish automatic invocation during device commands.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The core device functionality matches the description and does not integrate with aiot.yzlkj.com. However, main() also invokes check_latest_version(), which contacts clawhub.ai whenever no fresh cache is available. This additional external resource access is not disclosed and falls outside the explicitly stated platform scope. The update request sends a version-bearing User-Agent; the supplied code does not show it transmitting the API key or device data to ClawHub, downloading updates, or executing remote code.

Content

No source excerpt is available for this finding.

The skill includes repository publishing to Gitee and GitHub despite declaring an open.yzlkj.com-only device API scope.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

If invoked with usable credentials, the script runs git add -A and publishes master to hardcoded external repositories without reviewing the staged files or verifying the repository root. It also discovers credentials outside the script directory and through gh, and places tokens in process arguments, creating risks of unintended source or secret disclosure and credential exposure.

Content

No source excerpt is available for this finding.

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.

Normal API commands automatically contact ClawHub despite the declared open.yzlkj.com-only scope.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The manifest limits the skill to open.yzlkj.com, but L156–L160 send an HTTPS request to clawhub.ai for version information. L855–L856 invoke this check automatically before normal device operations whenever the cache does not satisfy it, introducing an undeclared third-party connection unrelated to reading devices or switching them.

Content

No source excerpt is available for this finding.

The command interface permits arbitrary device commands beyond the declared switch-control purpose.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

The manifest describes reading device data and issuing switch commands, but cmd_send forwards any nonempty caller-supplied command type and arbitrary arguments to the control endpoint. The CLI exposes this directly at L900–L904 and advertises Upfs and Custom at L805, rather than limiting writes to switch operations.

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 · tool.py (reported line 88)May include surrounding context.

python
统一将 stdout/stderr 切换为 UTF-8(失败时忽略),保证跨平台可运行。
    """
    for name in ("stdout", "stderr"):
        stream = getattr(sys, name, None)
        try:
            stream.reconfigure(encoding="utf-8", errors="replace")
        except Exception: