Back to skill

Security audit

Adult Facial Fatigue / Stress Index | 成人面部疲劳/压力指数分析

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report undeclared account, credential, and report-history functions, plus privacy and control weaknesses around remote processing of facial images.

Consider avoiding installation unless you are comfortable with the reported remote processing and account handling. Before using it, seek clarity on where facial media and identity data are sent, what is stored, and how credentials and report history are handled. The scan was partial because a referenced local path was missing, so some evidence remains 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
  • 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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (29)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk is a general user/account persistence component rather than facial-feature analysis or fatigue/stress scoring. Database support alone would not establish a mismatch, but the concrete identity-management and token-storage capabilities are not described or connected to the declared analysis workflow. No image processing, camera access, feature measurement, or score computation appears here. The chunk shows no network transmission or token harvesting; the finding concerns its undeclared account-management scope, not evidence of exfiltration. Other files could implement the advertised analysis, but that cannot be verified from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Generic file, JSON, polling, and HTTP helpers could legitimately support facial analysis and are not themselves evidence of a mismatch. However, this chunk also implements automatic identity provisioning, remote account registration, credential persistence, and payment-related behavior that the description does not disclose. The request helper can attach configured credentials to arbitrary supplied HTTP(S) destinations, although no specific misuse is shown. No camera capture, facial-feature extraction, or fatigue/stress calculation appears in this chunk; because it is a shared utility module, that absence alone does not establish that the complete skill lacks those functions.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible code does not implement the declared primary purpose. Although comments reference an external agent command, that execution path is disabled and should not be treated as an active capability. Imported base classes and services are not provided, so their behavior cannot be assessed; this finding is limited to the supplied chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The facial-analysis commands match the declared purpose, and URL input, report formatting, and output-file saving are supporting implementation details. However, retrieving historical reports extends the capability beyond analyzing supplied media, and its documented automatic triggers are absent from the declaration. The supplied chunk demonstrates the command interface, not the underlying implementation, so it does not establish how reports are stored or retrieved.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The main analysis pathway is consistent with the declared purpose, although the supplied chunk delegates processing and does not establish whether the advertised facial measurements or scoring are implemented. The --list pathway adds a distinct capability to retrieve analysis records associated with an internally resolved user identity. That record-retrieval capability is not described. Identity resolution and optional output-file writing are otherwise supporting implementation details, not independent mismatches. The imported modules alone do not establish uploads or other network behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied code's visible purpose is general API access rather than facial-feature measurement or fatigue/stress assessment. HTTP requests could support the declared workflow, but this chunk provides no connection between its download, user-lookup, or generic data operations and that workflow. This assessment is limited to the supplied file; it does not establish what other skill components implement or that these methods execute automatically.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

The analysis entry point is broadly consistent with the declared purpose, although the delegated implementation is not supplied, so the specific facial measurements and scoring cannot be verified. The concrete mismatch is the independent history-listing operation: --list calls skill.get_output_analysis_list with the current user's OpenID and prints the returned records. Retrieving historical user records is an additional data-access capability, rather than merely an implementation detail of analyzing the supplied image or video. No unrelated exfiltration or malicious behavior is established by this chunk.

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-adult-facial-fatigue-stress-index-analysis"
description: "Using a smart mirror or fixed camera, the system analyzes high-resolution adult facial images or short videos to detect physiological features such as under-eye bag area (puffiness/shadow under the lower eyelid), dark-circle grayscale (darkness around the eyes), mouth-corner drop angle (angle between corner of mouth and horizontal), and glabellar frown lines (vertical lines between the brows), and computes a comprehensive. | 通过智能镜子或固定摄像头,分析成人面部的高清图像或视频,检测眼袋面积(下眼睑区域的浮肿或阴影面积)、黑眼�

The request helper forwards shared service credentials to arbitrary absolute URLs.

High
Category
Excessive Agency
Confidence
98% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and automatically adds shared access tokens, an API key, and an authorization token without checking the destination. If an untrusted URL reaches this helper, an attacker-controlled server can receive those credentials; HTTP also permits cleartext interception.

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 default trigger treats any adult frontal-face image submitted for analysis as a request for fatigue/stress assessment.

Medium
Category
Trigger Abuse
Confidence
94% confidence
Finding

The default trigger can interpret a general request to analyze an adult face as authorization for fatigue/stress inference, even when the user intended a different task. Because the workflow uses remote processing of sensitive facial imagery, this can cause unintended disclosure and sensitive profiling; the general consent note does not resolve the overly broad trigger.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but does not prevent it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The program parses --export-env-only but never checks it, despite promising not to perform analysis. When supplied with an input or --list, execution still initializes identity and performs the requested remote operation, potentially transmitting facial imagery or retrieving sensitive reports against the caller's explicit expectation.

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 input files are submitted to an API without disclosure that their contents leave the local system.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The implementation reads the complete local image or video and passes it as an upload to the analysis API without a disclosure or consent gate at this boundary. Although the documentation mentions APIs and general consent, it does not clearly explain that local facial media is transferred to a remote processor, creating a material privacy risk for biometric imagery.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is accepted but never used to stop execution. With an input or --list, the script still initializes identity and runs analysis or history retrieval, potentially causing sensitive data transfer despite an explicit no-analysis option.

Content

No source excerpt is available for this finding.

The skill includes shared user-account and credential management unrelated to facial fatigue/stress analysis.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The User model stores identifying information and authentication fields, including token and open_token (L454-L461), and UserDao exposes inherited read, update, and delete operations over these records. DAO initialization also creates tables and modifies the shared sys_user schema (L180-L214). Managing shared account credentials is not justified by the manifest's image-based fatigue/stress scoring purpose, even if limited persistence of analysis results could be expected.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generically named open helper uses mode 'w', which immediately erases an existing file's contents. There is no confirmation, operation-specific log, comment, or docstring disclosing this destructive behavior; exception tracing only runs after a failure.

Content

No source excerpt is available for this finding.

Analysis requests can silently register a remote account and persist its authentication credentials.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

An ordinary request can initiate silent remote registration and store returned authentication tokens in the local user database without an explicit enrollment step. This creates undisclosed identity and credential persistence, which is particularly sensitive for a facial-health service that may associate an account with personal analysis data.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently trigger remote account registration and local credential persistence.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The generic request helper has hidden account-creation and credential-persistence side effects whenever authentication state is missing. Callers cannot perform an otherwise ordinary request without potentially causing an external identity operation and durable local storage; this overlaps the SDI-1 finding.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

This automatic registration request transmits the selected identity as both mobile and openId to the configured health endpoint without a separate consent gate. The caller can select API_SECRET_KEY as that identity, so the payload may also copy a service secret into identity fields; external networking itself is not the problem.

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"):

The output heading is unconditionally fixed to Chinese, without a user language choice or documented locale justification.

Low
Category
Output Handling
Confidence
90% confidence
Finding

The output-header method always returns a Chinese-language heading, regardless of the user's language preference. No opt-in, locale selection, or region-specific justification is present in this file.

Content

No source excerpt is available for this finding.

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

Low
Category
Output Handling
Confidence
93% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is absent, without a log, confirmation, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass calls this loader at L053 and L058, so defining the module's subclasses can modify the filesystem merely by importing the module.

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