Back to skill

Security audit

yzl-aiot-south

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports repository publishing with retrieved credentials, mismatches between the advertised device SDK and some reported behavior, and security weaknesses; the scan is incomplete.

Consider the reported credential and publishing risks, transport exposure, and client weaknesses before installing. The scan covered 48 of 49 components and was marked partial; one static analysis was degraded, so the evidence is incomplete. The verdict is suspicious, which indicates reported weaknesses or undeclared risky behavior, not a finding that the author is malicious.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
sdk/port/aiot_mqtt_client.c
Finding

MQTT remaining-length overflow permits out-of-bounds reads on 32-bit targets

Content
View full analysis

Impact

A short malformed broker packet can cause an out-of-bounds read and crash or fault the device application. Static evidence establishes a memory-safety violation; arbitrary code execution and remote disclosure are not established.

T09 · Insecure Skill Coding Practices

Warning
Location
lib/south_client.py
Finding

Unbounded TCP frame accumulation and recursive blank-line handling allow denial of service

Content
View full analysis

Impact

Memory exhaustion, excessive copying and scanning, or an uncaught recursion exception can terminate or stall the client, interrupting device simulation, telemetry, or command processing.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • 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 (15)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied code performs repository maintenance and publication rather than MCU firmware integration or AIoT protocol operations. Although the destination repositories share the SDK's name, automatic commits, credential access, and remote pushes are material capabilities not disclosed in the description. These are not implementation details of the described device-side SDK. The code does not, by itself, establish malicious intent or credential theft.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The protocol operations largely match the declared device-connectivity purpose, but the implementation language and runtime requirements materially contradict the central embedded-C claim. The default endpoint also differs from the declared resource, although callers can override it. No unrelated execution or hidden data collection is evident in this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The login, telemetry, and heartbeat operations fit the declared AIoT functionality. However, the supplied executable chunk uses Python rather than the explicitly advertised C89 firmware implementation, a material runtime and deployment mismatch. The imported module is not supplied, so its endpoint, protocol, allocation behavior, and other internal operations cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The demonstrated IoT operations match the declared functional scope, with no visible unrelated activity. However, the implementation interface is materially different: it imports a Python client and uses Python objects rather than the advertised OS-independent C89 SDK. Because only a README example is supplied, the underlying client's implementation and network behavior cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

Frame generation, device probing, reporting, and firmware inspection support the declared development and debugging purpose; the use of Python for these helper operations is not itself a mismatch. However, checking a skill distribution registry is separate from the advertised device SDK and platform connectivity functions and introduces an additional external service interaction. This occurs only when check-update is explicitly invoked. The shown code neither downloads nor installs updates, and it does not send firmware contents or device credentials to ClawHub. Behavior inside the unavailable south_client module cannot be verified from this chunk.

Content

No source excerpt is available for this finding.

Repository publishing and developer-token retrieval are unjustified by the device-firmware SDK purpose.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

Repository synchronization can be legitimate maintenance, but this script stages all changes and pushes to fixed remote repositories using ambient or locally retrieved credentials without a content-review gate. If invoked in a checkout containing unignored secrets, it can publish them; embedding access tokens in Git command arguments also exposes those tokens to permitted process inspection.

Content

No source excerpt is available for this finding.

Quick-start instructions transmit device credentials and telemetry without warning about plaintext transport.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The quick-start sends a reusable device password and telemetry over an unencrypted connection without stating the required network protections. Copying this workflow onto an untrusted network exposes credentials to interception; warnings elsewhere in the package reduce, but do not eliminate, this unsafe-default risk.

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.

Executable client example sends credentials and device data without a transport-privacy warning.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The executable example logs in and transmits device information without explaining that the transport provides no encryption or server authentication. Users substituting real credentials can expose a long-lived device secret on an untrusted network, particularly when reading this library guide without the main security section.

Content

No source excerpt is available for this finding.

Unbounded Resource Access

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Although timeout=None preserves the socket's configured timeout rather than disabling it, the TCP receive loop appends to _buf without a frame-size limit or overall deadline. A malicious peer or on-path attacker can continuously send bytes without a newline, keeping individual reads active while exhausting memory and CPU.

Content

Scanner excerpt · lib/south_client.py (reported line 93)May include surrounding context.

python
raise SouthError("未连接,先 connect()")
        self.sock.sendall((text + "\n").encode("utf-8") if self.mode == "tcp" else text.encode("utf-8"))

    def recv(self, timeout=None):
        """读一帧(TCP 按 \\n 拆;UDP 一个数据报),返回 dict。"""
        if not self.sock:
            raise SouthError("未连接,先 connect()")

call() promises to wait for the corresponding result but returns the next incoming frame without correlation.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

call() returns the next frame without checking its type, device identity, function, or request identifier. Unsolicited orders can therefore be consumed and discarded as responses, while stale or injected results with a matching function can be accepted by check(), causing false success reports or disruption of command handling.

Content

No source excerpt is available for this finding.

The demo commands put the device password in command-line arguments without warning about local credential exposure.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The demo requires users to supply a device password as a command-line argument. Real credentials can consequently be retained in shell history or exposed through process inspection and execution logs; the existing plaintext-network warning does not address these local disclosure paths.

Content

No source excerpt is available for this finding.

The verification workflow instructs users to print every transmitted frame without warning that login frames contain the device password.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The verification procedure recommends printing every transmitted frame, while the same document shows that login frames contain the device password. Following these instructions can copy a reusable credential into serial captures, support attachments, or persistent diagnostic logs accessible beyond the device's intended trust boundary.

Content

No source excerpt is available for this finding.

The tool implements a ClawHub skill-update checker unrelated to device-side SDK integration or debugging.

Low
Category
Excessive Agency
Confidence
88% confidence
Finding

At L158–L161, cmd_check_update contacts clawhub.ai to retrieve skill-release metadata, and at L165–L167 it writes a local version cache. Although disclosed in the CLI help and invoked only through the explicit check-update command, this skill-maintenance capability is outside the manifest's stated MCU firmware integration and southbound-protocol debugging purpose.

Content

No source excerpt is available for this finding.

The update check silently writes a cache file into the skill directory without disclosing this filesystem change.

Low
Category
Output Handling
Confidence
89% confidence
Finding

The check-update command creates or overwrites .version_cache.json alongside the tool. Neither its help description nor a comment or user-facing message explains this write; checking a remote version does not inherently imply modifying the local skill directory.

Content

No source excerpt is available for this finding.