Back to skill

Security audit

Student Classroom Engagement Analysis | 学生课堂情绪参与度分析

Security checks for vulnerabilities and agentic risk

Overview

The skill is rated suspicious because scanners report credential and identity handling, remote transmission, and behaviors that exceed or conflict with its stated classroom engagement analysis purpose.

Consider the suspicious verdict and the reported handling of video, credentials, and account data before installing. The Skillspector scan was partial: it inspected all 29 listed components but could not resolve one local reference, so the evidence is incomplete. The separate AIG scan completed with no reported findings; that does not establish that the skill is safe.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (24)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk is a user-account persistence layer rather than a camera or engagement-analysis component. Database initialization creates a sys_user table, and the exposed methods can persist identifying information and credentials in a workspace SQLite database. These capabilities are not disclosed by the description and are materially different from its identity-free, real-time analysis framing. The chunk does not establish that the records represent students or that any records have actually been stored; nevertheless, its explicit identity-management capabilities support a mismatch finding. The absence of vision processing alone would not establish a mismatch for a supporting module.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The visible implementation does not substantiate the declared classroom-analysis purpose. It is generic scaffolding with an unfinished chat helper. The commented-out subprocess command does not constitute actual command execution. Imported base classes and API services 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
94% confidence
Finding

The supplied chunk implements account and API-service infrastructure rather than camera analysis, expression recognition, engagement scoring, heatmaps, or alerts. Generic utilities and HTTP transport could support the declared skill, but automatic remote account provisioning, persistent account credentials, and billing-related behavior introduce material capabilities not disclosed in the description. RequestUtil also attaches authentication headers to caller-supplied absolute URLs without a visible destination restriction. The persistent identifiers appear to identify service users, not necessarily students, so this code does not establish that student identities are stored. Likewise, the absence of analysis logic in this shared utility file alone would not establish a mismatch; the finding rests on the additional account-management and external-service behavior explicitly present.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

Video inputs and report formatting are reasonable supporting features. However, historical-report retrieval and its explicitly documented automatic triggers extend beyond the declared real-time analysis purpose. The chunk does not reveal report contents or the underlying implementation, so it does not establish that student identities are stored.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

The code explicitly exposes history retrieval through skill.get_output_analysis_list(open_id=...), which is outside the declared real-time engagement-monitoring purpose. Its analysis entry point accepts video files or URLs and delegates processing to skill.get_output_analysis; the supplied chunk does not implement camera capture, continuous monitoring, heatmaps, or alerts. Those engagement features could exist in the imported service, so their absence here alone does not establish a mismatch. OpenID appears to identify the requesting user, not students, and does not by itself prove student-identity storage.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
83% confidence
Finding

Generic AI-analysis configuration could support the declared purpose and is not inherently a mismatch. However, DETAIL_EXPORT_URL explicitly targets BASE_URL_HEALTH + '/health/order/api/getReportDetailExport?id=', introducing an unrelated health-report resource. This supports a configuration-level mismatch, although the supplied chunk does not demonstrate that any health report is actually retrieved or exported. The absence of engagement-analysis implementation in this configuration-only chunk is not itself grounds for a mismatch.

Content

No source excerpt is available for this finding.

The HTTP helper can forward platform credentials to arbitrary caller-supplied destinations.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts absolute caller-supplied HTTP or HTTPS URLs and attaches platform tokens and API credentials without checking the destination. A caller able to influence the URL can direct credentials to an attacker-controlled endpoint; accepting HTTP also permits unencrypted credential transmission.

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 documented environment-export-only mode still executes classroom video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises --export-env-only as performing no analysis, but the parsed flag is never checked before identity initialization, report retrieval, or analysis. When supplied with a video input, an ostensibly non-analysis invocation can submit sensitive classroom footage for processing, undermining the user's intended data-handling boundary.

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 file contents are submitted to the analysis API without disclosing the upload.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The implementation reads the complete local video and passes its contents to the analysis API without an explicit upload disclosure or authorization check in this path. Although API use is documented generally, transferring identifiable footage of minors is materially different from returning anonymous statistics, and the stated anonymity constraints do not protect the raw upload.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only option promises not to analyze video, but its value is never used to stop execution. With an input or --list, execution proceeds into identity resolution and analysis or report retrieval, potentially transferring sensitive classroom data despite the requested non-analysis mode.

Content

No source excerpt is available for this finding.

Persistent personal-profile and credential storage exceeds the stated anonymous engagement-analysis purpose.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The persistent SQLite user model includes profile information and directly readable token and open_token fields, creating a credential exposure risk if the database or its backups are accessed. This broadens the sensitive-data footprint of an anonymous classroom-analysis skill, although the schema alone does not prove that student identities or every profile field are populated.

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
97% confidence
Finding

Opening a path in 'w' mode immediately truncates an existing file, even before the caller writes anything. This generically named helper has no docstring, explanatory comment, confirmation, or action log warning about that behavior; the exception handler does not disclose successful truncation.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote user registration and transmit an identity value.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

An ordinary request can automatically invoke phoneLogin with silent and register enabled, sending the current identity as both openId and mobile without an explicit provisioning decision. This creates an unexpected remote-account and identity-disclosure side effect that is particularly concerning in a classroom tool presented as not storing student identities.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
91% confidence
Finding

The POST transmits an identity value and source metadata to a remote login/registration service as an automatic authentication side effect. External requests are not inherently vulnerable, but this path lacks an explicit authorization step and can use API_SECRET_KEY as the identity value; the supplied source does not establish that the recipient is malicious or that student images are transmitted.

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

Loading configuration silently creates directories and writes missing configuration 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 path does not exist, without a warning, log, docstring, or explanatory comment. BaseEnum.init_subclass calls this loader at L053 and L058, so defining the enum subclasses during import can modify the filesystem even though no save operation was requested.

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

ai_chat documents an agent invocation, but its implementation never invokes the agent.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly says this method calls openclaw agent through subprocess, but the command contents and subprocess invocation are commented out at L49–L66. Instead, L68 creates an empty dictionary; accessing result.stderr raises an exception that is caught, so the method returns no analysis result and only reports the failure when debugging is enabled.

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/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