Back to skill

Security audit

Safe Driving Behavior Analyzer | 安全驾驶行为分析工具

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this driving video analysis skill suspicious because scanners report undisclosed account and credential handling, remote video processing, and behavior that can continue despite a non-analysis option; the review is based on partial evidence.

Consider avoiding installation until the developer clarifies the remote video processing, account registration, identity and token storage, and the behavior of `--export-env-only`. Skillspector scanned all listed components, but its analysis is marked partial because a local reference could not be resolved; the evidence therefore does not fully cover that reference.

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 (1)

T09 · Insecure Skill Coding Practices

Warning
Location
skills/smyx_common/scripts/config-dev.yaml
Finding

Development configuration transmits authentication tokens over plaintext HTTP

Content
View full analysis

Impact

Network observers can obtain account tokens and replay them against services that accept those tokens. Uploaded driving footage and returned reports are also exposed in transit.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (22)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Generic file, JSON, polling, and HTTP helpers can legitimately support video analysis, and the absence of video-processing logic in a shared utility file alone would not establish a mismatch. However, this chunk additionally implements automatic remote account provisioning, persistent identity/token management, and credential-bearing requests without restricting their destination. These are material account and credential-handling capabilities absent from the declared video-analysis purpose. The insufficient-balance branch also introduces an undeclared payment workflow; it returns installation instructions rather than installing anything itself. The supplied chunk does not show video analysis or report generation, and unseen code may implement those features.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied chunk implements user-account database management rather than video processing, unsafe-driving detection, or report generation. Database storage can be a supporting implementation detail, but this code specifically manages personal user data and tokens without a demonstrated connection to the declared function. That materially different capability is not represented in the description. This assessment is limited to the supplied chunk; it does not show network transmission, actual token acquisition, or malicious intent.

Content

No source excerpt is available for this finding.

YARA rule 'agent_skill_mcp_tool_poisoning_metadata': MCP/tool metadata poisoning indicators in tool schemas or skill manifests [agent_skills]

High
Category
YARA Match
Confidence
80% confidence
Finding

YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

Content

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

md
---
name: "drive-analysis"
description: "Analyzes videos of vehicle drivers to identify unsafe driving behaviors. It generates professional analysis reports to help enhance road safety awareness. | 安全驾驶行为分析工具,针对机动车驾驶人员的驾驶行为进行视频分析,识别不安全驾驶行为,输出专业分析报告,提升道路交通安全意识"
version: "1.0.28"
license: "MIT-0"
---

# 🚗 Safe Driving Behavior Analyzer | 安全驾驶行为分析工具
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询

---

## 🧭 技能概览 | Ove

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

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.

The analysis workflow lacks a privacy warning about remote processing of driver footage and cloud-associated reports.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

Although the documentation mentions APIs and cloud reports, it does not clearly warn that local driver footage will leave the device or explain its retention and association with a persistent identity. Driving footage can expose faces, passengers, locations, and behavioral information, making uninformed remote processing a meaningful privacy risk.

Content

No source excerpt is available for this finding.

The documented non-executing mode still performs video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag promises not to perform analysis, but its parsed value is never checked. When an input is supplied, execution still initializes identity and invokes analysis, potentially transferring sensitive footage or consuming service credits contrary to the caller's explicit non-executing choice.

Content

No source excerpt is available for this finding.

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · skills/smyx_analysis/scripts/skill.py (reported line 28)May include surrounding context.

python
result_json = JsonUtil.parse(result_json_pure_text, result_json_pure_text)

        result_json_common_ai_response = result_json.get("commonAiResponse") if isinstance(result_json,
                                                                                           dict) else result_json
        if result_json_common_ai_response:
            result_json = result_json_common_ai_response

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · skills/smyx_analysis/scripts/skill.py (reported line 33)May include surrounding context.

python
result_json = result_json_common_ai_response

        result_json_health_ai_response = result_json.get("healthAiResponse") if isinstance(result_json,
                                                                                           dict) else result_json
        if result_json_health_ai_response:
            result_json = result_json_health_ai_response

Local video contents are submitted to an analysis API without an upload disclosure.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The function reads the complete local video into memory and passes it to the analysis service as a file upload without any visible disclosure or authorization gate. Driver footage can contain identifiable people and location information, so a user expecting local analysis could unintentionally disclose sensitive data.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze videos, but execution still invokes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The program accepts --export-env-only and describes it as non-analyzing, but never branches on the flag. With an input supplied, it proceeds to identity initialization and video analysis, defeating a caller's attempt to avoid remote processing and related side effects.

Content

No source excerpt is available for this finding.

L448–L473 implement persistent user-profile and credential management, a capability outside the stated driving-video analysis purpose.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

Beyond merely declaring profile fields, this source provides persistence operations that store token and open_token as ordinary strings in a workspace-shared SQLite database without visible credential protection. If populated, these credentials and personal fields become accessible to other processes or skills with database access; the schema alone does not prove demographic data is actually collected.

Content

No source excerpt is available for this finding.

ai_chat claims to invoke an analysis agent, but its execution path is disabled.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method invokes openclaw agent through subprocess. However, the subprocess invocation is commented out at L61–L66, and the empty dictionary assigned at L68 causes the attribute access at L70 to fail; the exception is caught without returning an analysis result. This contradicts the documented agent invocation rather than merely changing an implementation detail.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its destructive behavior.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

Opening a path with mode 'w' immediately erases any existing contents, even before the caller writes data. This generic open helper has no docstring, explanatory comment, confirmation, or user-facing message disclosing that behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently registers service accounts and persists user credentials, beyond the stated video-analysis purpose.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

When tokens are missing, an ordinary request can automatically register an account, transmit the selected identity, and persist returned authentication tokens through UserDao without a separate enrollment decision. This introduces privacy and credential-lifecycle side effects beyond video analysis; the supplied code does not establish whether persisted tokens receive adequate protection.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration and identity transmission without disclosure.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The login payload explicitly enables registration and sends the selected username as both openId and mobile when authentication initialization requires it. Hiding these account-creation and identity-transmission side effects inside a general request helper prevents callers from separately authorizing them, which is particularly relevant when processing identifiable driver information.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
84% confidence
Finding

This POST is the transmission sink for the automatic registration flow, not evidence of an attacker-controlled destination by itself. However, its username argument can originate from API_SECRET_KEY, causing a configured secret to be copied into both mobile and openId fields and sent to the health-service login endpoint, unnecessarily broadening secret exposure.

Content

Scanner excerpt · skills/smyx_common/scripts/util.py (reported line 561)May include surrounding context.

python
"source": ConstantEnum.DEFAULT__SKILL_HUB_NAME
            }
            try:
                _response = requests.post(_url, json=_data)
                if _response.status_code == 200:
                    _response_json = _response.json()
                    if _response_json and _response_json.get("success"):

Configuration loading silently creates directories and files, including during module import.

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested path does not exist, without a log, prompt, docstring, or explanatory comment disclosing this behavior. BaseEnum.init_subclass calls this loader during class definition (L053 and L058), so simply importing the module can modify the filesystem without explicitly requesting a save.

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 · skills/smyx_common/scripts/dao.py (reported line 243)May include surrounding context.

python
username = getattr(model, "username", None)
            if username:
                column_names = self.__model__.__table__.columns.keys()
                update_data = {key: getattr(model, key) for key in column_names if key != "username"}
                return self.update_by_username(username, **update_data)

            return None

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 · skills/smyx_common/scripts/dao.py (reported line 353)May include surrounding context.

python
column_names = self.__model__.__table__.columns.keys()

            for key in column_names:
                value = getattr(model, key)
                setattr(instance, key, value)

            session.commit()

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 · skills/smyx_common/scripts/dao.py (reported line 326)May include surrounding context.

python
if filters:
                for key, value in filters.items():
                    query = query.filter(getattr(self.__model__, key) == value)

            if offset:
                query = query.offset(offset)

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 · skills/smyx_common/scripts/dao.py (reported line 441)May include surrounding context.

python
if filters:
                for key, value in filters.items():
                    query = query.filter(getattr(self.__model__, key) == value)

            return query.scalar()
        finally:

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 · skills/smyx_common/scripts/util.py (reported line 30)May include surrounding context.

python
elif isinstance(cur, dict):
                        cur = cur.get(part, default)
                    else:
                        cur = getattr(cur, part)
                return cur
            except Exception:
                return default