Back to skill

Security audit

Driver Facial Flushing / Sweat Abnormality Detection | 驾驶员面部潮红/出汗异常检测

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report broad account, credential, and remote-service capabilities that do not fit its advertised driver-health analysis, alongside a mismatch between claimed live monitoring and submitted-video analysis.

Consider avoiding installation unless you can verify the remote service, what video and identity data it receives, and how credentials are stored and protected. The scan was partial (96.6% coverage), with one file only partly inspected and a static analyzer limitation, so the evidence is incomplete; an empty result from the separate AIG scan does not establish safety.

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
  • 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
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (30)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied chunk is a general-purpose user database module rather than a driver health-monitoring implementation. Database persistence could support a larger application, but this code specifically manages user profiles and token fields without a demonstrated connection to facial-video analysis or health alerts. Its primary behavior is therefore materially different from the declared purpose. This assessment is limited to the supplied code; no token transmission or external data exfiltration is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk contains no camera access, facial-image processing, flush-index calculation, sweat/reflection detection, threshold evaluation, or driver health alerts. Generic file, JSON, and date helpers alone would not establish a mismatch, but the account-registration, identity persistence, authenticated service integration, and billing behavior introduce capabilities and resource access not represented by the description. These actions occur when the relevant methods are called; the chunk does not establish that they execute automatically or that the full skill lacks other vision-processing code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The visible implementation does not perform the declared driver-health analysis and instead provides generic skill scaffolding with a disabled agent-chat helper. There is no active subprocess execution in this chunk. Although inherited or imported code could provide additional functionality, none of the declared analysis workflow is implemented or explicitly invoked here.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk implements an API-service utility rather than camera capture, facial-video processing, flush or sweat measurement, threshold evaluation, or health alerts. HTTP utilities could support a larger system, but this chunk exposes download and user-lookup functionality with no demonstrated connection to the declared purpose. The underlying request implementation and endpoint definitions are not shown, so specific destinations, data transfers, and malicious intent cannot be established.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The document advertises continuous real-time monitoring and threshold-based warnings, while its operational workflow describes submitting files or URLs and retrieving reports without establishing those safety capabilities. In a driver-health context, this mismatch can encourage reliance on monitoring or timely warnings that have not been demonstrated; historical reporting itself is explicitly documented and is not suspicious.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The real-time DMS monitoring claim exceeds the file/URL submission workflow established by this document. That distinction matters for driver safety because users may incorrectly expect continuous coverage; the history-query feature, however, is openly documented rather than concealed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

Local/remote video inputs, report formatting, and saving analysis results are supporting implementation details and do not independently indicate a mismatch. However, historical health-report retrieval and its advertised automatic keyword triggers add behavior absent from the declared description. The snippet establishes that these capabilities are exposed, but does not verify their implementation, storage mechanism, or the underlying detection algorithms.

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: "smyx-driver-flushing-sweat-detection-analysis"
description: "Using an in-cabin DMS camera, the system analyzes the driver's facial video in real time, detecting skin color variation (flush index, derived from red-channel ratio in RGB or skin-color models) and sweat-droplet / reflective area (via image texture and reflection features). | 通过车载DMS摄像头实时分析驾驶员面部视频,检测面部肤色变化(潮红指数,通过RGB色空间中的红色分量比例或肤色模型)以及汗珠/反光面积(通过图像纹理和反射特征)。当潮红指数显著升高(可能提示血压升高、发热或情绪激动�

The generic request helper can forward stored service credentials and user identity to arbitrary HTTP destinations.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and automatically attaches service tokens, an API key, and user identity without checking the destination. An attacker able to influence a requested URL could capture those credentials at their own endpoint, while plain HTTP also exposes them to network observers.

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, 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 --export-env-only option promises not to perform analysis, but the code does not honor it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only, but no branch checks its value before identity initialization, report queries, or analysis. When combined with an input, a user expecting configuration-only behavior can unintentionally initiate sensitive video processing and associated remote side effects.

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

The skill implements submitted-video analysis rather than the advertised real-time DMS camera monitoring.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The implementation submits a file or URL for analysis and polls for a result; it does not establish camera acquisition, continuous coverage, or timely driver alerts. Advertising this as real-time health monitoring risks unsafe reliance, although the supplied client does not establish what detection algorithms the remote service implements.

Content

No source excerpt is available for this finding.

Local video contents are passed to the analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

Local video bytes are read and passed to the remote analysis operation without a disclosure or consent check at this boundary. Driver facial footage is sensitive biometric and health-related data, so permission to analyze a local file should not automatically be treated as informed permission to transfer it to an external processor.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to perform analysis, but the code ignores it and proceeds with video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only argument is parsed but never checked, so execution can initialize an identity and proceed with analysis or report retrieval. This violates the explicit no-analysis promise and can cause unintended remote processing of sensitive video when an input is also supplied.

Content

No source excerpt is available for this finding.

The service exposes general-purpose remote modification capabilities unrelated to facial health-risk analysis.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

The manifest describes analyzing camera frames and producing driver health warnings, but these methods forward caller-supplied URLs and arguments to HTTP operations, including PUT and DELETE. General-purpose remote resource modification is not an obvious requirement of that purpose; this file exposes the capability, although it does not establish that the skill invokes it.

Content

No source excerpt is available for this finding.

Username-based user lookup is outside the declared driver-monitoring purpose.

Medium
Category
Excessive Agency
Confidence
89% confidence
Finding

The service exposes a username-based user lookup through RequestUtil.get_user_by_username. The manifest describes facial flushing and sweat detection, with no account-directory or user-lookup function that would justify this capability.

Content

No source excerpt is available for this finding.

The skill includes persistent user-account and authentication-token management unrelated to facial flush and sweat detection.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

Account support alone is not a vulnerability, but this model persists authentication tokens as ordinary strings in a workspace-shared SQLite database without application-level protection. A reader of that database or its backups could recover reusable credentials and personal information; the health-monitoring purpose does not justify unnecessary credential retention.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims subprocess-based agent analysis, but the implementation never invokes the agent and cannot return an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method invokes the openclaw agent through subprocess. However, the invocation is commented out at L61–L66, and L68–L70 instead create a dictionary and access its nonexistent stderr attribute; the resulting exception is caught at L81–L82, causing an implicit None return rather than the documented analysis result. This contradicts the method's stated purpose, rather than merely changing an implementation detail.

Content

No source excerpt is available for this finding.

FileUtil.open silently opens files in write mode, truncating existing contents.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generically named open helper uses mode 'w', which immediately truncates an existing file. No docstring, explanatory comment, confirmation, or user-facing message discloses this destructive behavior; the exception handler only addresses failures.

Content

No source excerpt is available for this finding.

The request helper silently provisions remote user accounts and persists authentication data, beyond the described driver-health analysis.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

Ordinary HTTP requests can implicitly initiate remote registration, transmit the current identity, and persist returned authentication tokens without a separate enrollment decision. This creates undisclosed account and credential side effects beyond facial analysis; the identity selection can also use API_SECRET_KEY as the registration identifier.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration using the current identity.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The login payload explicitly enables silent registration, and the request helper can invoke it automatically when credentials are missing. Consequently, a seemingly routine request can create a remote account and disclose an identity without an explicit registration action.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

External transmission alone is not a vulnerability, but this POST sends the selected identity to a remote account-registration service as an implicit side effect. The selected value can originate from API_SECRET_KEY, potentially disclosing a secret in identity fields and remote account records rather than only using it for authentication.

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 writes missing configuration files.

Low
Category
Output Handling
Confidence
93% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested path does not exist, without a log, confirmation, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass invokes this loader during class definition (L052–L059), so importing the module can modify the filesystem without an explicit save request.

Content

No source excerpt is available for this finding.