Back to skill

Security audit

Concentration Analysis Skill | 专注度分析技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with medium confidence because scanners report undisclosed identity and credential handling, external data transfers, and behavior that does not clearly match its advertised focus analysis; the evidence is incomplete because one referenced path was missing.

Consider not installing until the publisher explains why the skill needs account registration, token storage, and external video processing, and clarifies what data is sent and how it is retained. The scan was partial: a referenced local path was missing, so the available evidence does not establish the behavior of every referenced resource.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk implements generic user/account persistence rather than attention analysis. Its user model includes names, email, birthday, demographic fields, and tokens, while its methods provide account lookup and modification. No gaze detection, facial-pose processing, camera input, or focus-state estimation appears. Although database storage can support an attention-analysis system, this chunk provides no connection to attention measurements, and its account/token management constitutes materially different functionality not represented in the description. This assessment is limited to the supplied chunk; it does not establish malicious behavior or network transmission.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Generic formatting, polling, and HTTP helpers could reasonably support attention analysis and are not independently mismatches. However, this chunk also implements persistent identity provisioning and silent remote account registration, which introduce material account-management and data-transmission behavior not disclosed by the description or declared permissions. No gaze processing, facial-pose estimation, or attention scoring appears in the supplied chunk. This does not establish that those features are absent elsewhere, but the undeclared account lifecycle behavior is directly supported by this code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The visible implementation does not substantiate the declared primary purpose. No active subprocess execution or explicit camera, image, or video processing appears in this chunk. The imported base classes and API service are not supplied, so their behavior cannot be assessed; this finding is limited to the provided code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

The supplied implementation processes existing video files or URLs and polls an API every five seconds for up to 24 attempts. It contains no live-video capture, streaming analysis, or incremental attention-state output, making the real-time claim materially inconsistent with the visible execution flow. Gaze, pose, and attention inference might occur in the imported API service, but its implementation is not supplied, so those capabilities cannot be verified. File handling, API submission, and report formatting are supporting implementation details, not independently suspicious capabilities.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
84% confidence
Finding

The code exposes identity resolution and a separate history-listing operation beyond the stated attention-detection functionality. Its analysis entry point delegates to skill.get_output_analysis using a file path or URL; this chunk contains no live capture, streaming loop, gaze estimation, facial-pose detection, or attention scoring. The imported component could implement the advertised analysis, so its absence here does not prove that those features are missing from the complete skill. Nevertheless, the visible interface differs materially from the real-time description and includes an undisclosed user-history capability. Network-service delegation and optional output-file writing are supporting implementation details, not independent mismatches.

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: "focus-analysis"
description: "Real-time detection of gaze direction and facial pose to quantify states of focus, distraction, or mind-wandering. Suitable for scenarios such as classroom learning, office meetings, and driving attention monitoring. | 专注度分析技能,实时检测视线方向、面部姿态,量化专注/分心/走神状态,适用于课堂学习、办公会议、驾驶专注度监测等场景"
version: "1.0.28"
license: "MIT-0"
---

# 🎯 Concentration Analysis Skill | 专注度分析技能
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端�

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 media-analysis workflow lacks a privacy warning about external processing of identifiable recordings.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The workflow directs analysis of local recordings without clearly warning that identifiable media will leave the device for external processing. Classroom and workplace recordings can expose children, employees, private conversations, and behavioral information, making uninformed uploads particularly consequential.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but the flag is ignored.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises an export-only mode that will not perform analysis, but execution never checks that flag before identity initialization, history retrieval, or analysis. A user supplying a video alongside this option can therefore initiate external processing despite explicitly selecting a non-analysis mode.

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 passed to an API service without disclosing the upload.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The code reads the complete local video and hands it to the API analysis operation as a multipart file without a visible disclosure or consent gate. Because these recordings support facial and attention analysis, unintended external transfer can expose identifiable people and sensitive behavior.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but the code still executes it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only argument promises no analysis, yet its value is never inspected and the normal service workflow continues when media input is provided. This violates an explicit user-selected execution boundary and can submit private recordings for processing or retrieve history unexpectedly.

Content

No source excerpt is available for this finding.

The documented create operation can silently overwrite an existing record.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

save() catches every insertion exception and attempts to overwrite an existing record by ID, then by username or realname, copying fields including identity and authentication tokens. An insertion failure can therefore become an unintended credential or identity update; exploitability depends on whether a caller can influence the supplied model.

Content

No source excerpt is available for this finding.

The skill includes persistent identity and credential management unrelated to gaze or focus analysis.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The User model stores personal profile information and authentication material, including email, birthday, token, and open_token, while UserDao exposes inherited read, update, and delete operations over those records. DAO initialization also creates and migrates the sys_user table (L180-L214), making this an implemented persistence capability rather than an unused field description. Managing credentials and broad identity profiles is not justified by the manifest's stated gaze, facial-pose, and attention-analysis purpose.

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 in 'w' mode immediately erases any existing contents, even before the caller writes anything. This generically named helper has no confirmation, log, docstring, or comment explaining that destructive side effect.

Content

No source excerpt is available for this finding.

The request helper silently registers remote user accounts and persists their authentication tokens, beyond the declared focus-analysis purpose.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

An ordinary HTTP request can trigger silent remote login or registration and persist returned authentication tokens without an explicit enrollment decision. This creates an undisclosed identity-management side effect beyond the described analysis function, particularly concerning for classroom, workplace, or driving-related use where identity linkage is sensitive.

Content

No source excerpt is available for this finding.

The HTTP helper silently submits identity data for automatic remote registration.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The helper sends the current identifier as both openId and mobile with silent registration enabled, without a separate consent or enrollment gate. This can disclose and associate an existing user identity with a remote service even when the caller only intended to perform focus analysis.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

The outbound registration payload receives current__user_name, which preferentially takes ApiEnum.API_SECRET_KEY, so a configured secret can be transmitted as both openId and mobile when tokens are missing. This misclassifies a credential as identity data and can expose it to registration storage or logging; the configuration does not establish whether the recipient is authorized to receive that secret in this form.

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

Generic report-query phrases automatically activate focus-analysis history retrieval.

Low
Category
Trigger Abuse
Confidence
96% confidence
Finding

Generic requests such as listing analysis reports automatically trigger cloud history retrieval without establishing that the user means focus-analysis reports. Combined with automatic account association, this can unexpectedly surface sensitive classroom or workplace attention records in an unrelated conversation.

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 warning, log, docstring, or explanatory comment. BaseEnum.init_subclass invokes this loader during class definition (L044–L058), so merely importing this module can modify the filesystem without disclosure.

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: