Back to skill

Security audit

Pet Vocal Emotion Analysis Skill | 宠物叫声情绪解析技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report account and credential handling, local identity storage, and media uploads that are not clearly explained by its stated pet-vocalization analysis purpose.

The verdict is suspicious, not malicious. Before installing, consider whether you are comfortable with local profile and token storage, possible automatic account registration, and uploading media to the reported analysis service. Skillspector inspected all listed components but marked its analysis partial because a local reference was missing, so the evidence is incomplete; the results do not establish malicious intent or actual credential leakage.

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
scripts/pet_vocal_emotion_analysis.py
Finding

Ignored API destination sends media to a different service

Content
View full analysis

Impact

Private recordings, or URLs containing access tokens or identifying information, can be disclosed to a service the user intended to replace. HTTPS protects transport but does not correct the recipient.

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

The supplied chunk contains no audio processing, pet voice recognition, AI inference, or emotion/intent translation. Its implemented purpose is user-account persistence, including fields for email, birthday, demographic data, token, and open_token. Database infrastructure can support a larger skill, but this chunk's user-account and credential-management capabilities are not explained by the declared pet-vocalization purpose. This assessment is limited to the supplied code; it does not establish malicious intent or external data transmission.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The visible implementation does not substantiate the declared pet-audio analysis purpose. Its only substantive method is a nonfunctional generic agent-chat stub. The commented-out command does not execute, so this chunk does not demonstrate subprocess execution. Imported base classes and API services are not supplied; they could contain additional behavior, which limits the assessment to the visible code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Generic file, JSON, polling, and HTTP helpers could legitimately support the declared skill and are not independently a mismatch. However, the code also implements an undisclosed account and credential-management workflow: it reads a local identity file, creates persistent users, calls /sys/phoneLogin with silent registration enabled, and saves authentication data. The request wrapper accepts absolute URLs and adds credentials without checking their origin. These capabilities materially exceed the pet-vocalization description. The chunk does not establish malicious intent or demonstrate actual credential leakage, and pet analysis may exist elsewhere.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
89% confidence
Finding

The visible interface consistently describes and handles video analysis, including MP4 inputs and video-analysis history. It contains no visible pet-vocalization recognition or emotion/intent interpretation logic. The underlying analysis is delegated to skill.get_output_analysis, whose implementation is not supplied, so it is possible that pet-specific processing occurs there; however, that cannot be verified from this chunk. Retrieving user-linked video-analysis history is also a distinct capability absent from the description. File output and argument handling 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: "pet-vocal-emotion-analysis"
description: "Recognizes cat and dog barks through pet voiceprint AI, translates and outputs emotions and behavioral intentions such as happiness, excitement, anger, anxiety, pain, vigilance, and attention-seeking, enabling human-pet smart interaction. | 宠物叫声情绪解析技能,通过宠物声纹AI识别猫狗叫声,翻译输出开心、兴奋、愤怒、焦虑、痛苦、警惕、求关注等情绪与行为意图,实现人宠智能交互"
version: "1.0.26"
license: "MIT-0"
---

# 🔊 Pet Vocal Emotion 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 --export-env-only option promises not to execute analysis, but the code ignores it and proceeds with analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only but never checks it, so supplying an input still reaches analysis and can upload local media despite the explicit promise not to analyze. Identity initialization also occurs before any such safeguard, creating unexpected side effects even when the caller intends a configuration-only operation.

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 the analysis API without disclosure that the file will be uploaded.

Medium
Category
Output Handling
Confidence
87% confidence
Finding

The local-file branch reads the entire file and passes its contents as an upload payload to the analysis service. The provided file contains no confirmation, user-facing notice, or comment explaining the external transfer; the comment only describes reading the file, leaving users unaware of the privacy implications.

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 ignored, allowing a command intended to avoid analysis to upload media when an input is supplied. The normal execution path also initializes identity and can query history, violating the expected side-effect boundary of configuration-only mode.

Content

No source excerpt is available for this finding.

L448–L461 define personal-profile and credential storage unrelated to pet-vocal emotion analysis.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

The User model includes real names, email addresses, birthdays, demographic information, and token/open_token fields (L448–L465), while UserDao exposes the inherited database CRUD operations (L470–L473). DAO initialization also creates and migrates this user schema (L180–L214). Managing personal profiles and authentication tokens is not justified by the manifest's stated purpose of recognizing pet vocalizations and reporting emotions or behavioral intentions.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims to invoke the OpenClaw agent and return analysis, but the implementation never invokes it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 explicitly promises a subprocess-based agent invocation and an analysis result or session ID. However, the invocation is commented out at L61–L66, and L68–L70 instead accesses stderr on an empty dictionary, causing an exception that is caught and suppressed; the method therefore returns None without performing the documented analysis.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

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 destructive behavior has no explanatory docstring, comment, confirmation, or operation-specific disclosure; the exception handler only runs after a failure.

Content

No source excerpt is available for this finding.

The request helper silently registers remote user accounts and persists account credentials, beyond the advertised pet-vocal analysis functionality.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

An ordinary HTTP request can trigger remote registration using silent=1 and register=1, transmit the current identity, and persist returned authentication credentials without an explicit enrollment decision in this flow. Although cloud authentication can support pet-vocal analysis, hiding account creation inside a generic request helper creates an unexpected privacy and credential-retention side effect.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote account and persist authentication tokens.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The helper performs state-changing remote enrollment and local credential persistence as an implicit prerequisite to unrelated HTTP requests. This duplicates the SDI-1 issue: requesting pet analysis should not unexpectedly authorize account registration and persistent credential storage.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
92% confidence
Finding

The registration POST transmits the selected identity as both openId and mobile without an explicit enrollment gate. More seriously, current__user_name prioritizes ApiEnum.API_SECRET_KEY, so when tokens are absent an API secret can be copied into registration identity fields, exposing it to account records and identity-field logging beyond its intended authentication use.

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 user-visible analysis heading is unconditionally rendered in Chinese without a language choice.

Low
Category
Output Handling
Confidence
90% confidence
Finding

The output-heading method always returns Chinese text, regardless of the user's language or preferences. The file provides no language opt-in or documented justification for this locale restriction.

Content

No source excerpt is available for this finding.

Loading configuration silently creates directories and YAML files, including during module import.

Low
Category
Output Handling
Confidence
90% confidence
Finding

YamlUtil.load creates parent directories and writes a configuration file when the requested path is absent, without a comment, docstring, prompt, or log disclosing this side effect. BaseEnum.init_subclass invokes this loader during class definitions (L052–L058), so importing the module can modify the filesystem without an explicit save request.

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