Back to skill

Security audit

Cat Face Recognition Skill | 猫脸识别技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report undeclared account and credential handling, privacy-sensitive uploads, and behavior that does not clearly match the advertised cat identification purpose.

Consider the suspicious verdict before installing. The findings raise questions about whether local media is sent to a remote service, whether account creation and token storage are necessary, and whether the skill's actual functions match its description. Some referenced behavior could not be fully reviewed, so the evidence is 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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (26)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Database persistence could legitimately support the declared reference database, and path management alone is an implementation detail. However, this chunk specifically implements a human-user account database rather than cat registrations, facial features, or recognition results. Its personal-data and token-management capabilities are not represented in the description. No image/video processing, cat-face comparison, or recognition logic is present in the supplied chunk. The code does not show network transmission or token harvesting; the mismatch concerns its visible account-management purpose and stored data.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Ordinary formatting, polling, filesystem, and API helpers can support cat recognition and are not mismatches by themselves. However, this chunk also implements an undeclared account-provisioning and credential-management workflow, including silent remote registration and persistent identity handling. The generic request method attaches credentials without restricting absolute URLs to the configured service. These behaviors go materially beyond the description. They occur when the relevant helpers are invoked; the supplied chunk does not establish that every invocation performs them, nor does it contain the cat-recognition implementation itself.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied configuration targets generic AI analysis and health-report resources rather than the declared cat-face identification workflow. The health-report export endpoint is a concrete resource mismatch. Because this is only a configuration chunk, it does not establish that these endpoints are called or rule out cat-recognition functionality elsewhere.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

The supplied code implements media analysis and report management rather than an identifiable cat-recognition workflow. It processes commonAiResponse and healthAiResponse fields and exposes report-history retrieval. Media validation, uploads, and polling could support the declared purpose and are not independently mismatches. However, the visible functionality is materially broader and differently focused than the description. The imported API implementation is not supplied, so cat recognition within the backend cannot be ruled out.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

The visible implementation does not substantiate the declared cat-recognition purpose. No external agent command actually executes because the invocation is commented out, so command execution should not be attributed to this chunk. The imported BaseSkill and ApiService implementations are unavailable and could supply relevant inherited functionality; the mismatch finding is therefore limited to the supplied code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The supplied code exposes video analysis and analysis-history listing, but contains no visible cat-face comparison, individual-cat identification, or reference-database interaction. This differs from the specific identification capability advertised. The actual analysis is delegated to imported code that was not supplied, so cat recognition could exist downstream; the mismatch assessment is limited to the visible implementation. User-identifier resolution and optional output-file writing are supporting details, not independent grounds for the finding.

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: "cat-face-recognition-analysis"
description: "Dentifies specific cats by comparing images or videos of their faces. It supports distinguishing between different individuals in multi-cat households, ensuring accurate recognition once the data is registered in the database. | 猫脸识别技能,通过猫脸图片/视频比对识别具体是哪只猫咪,支持多猫家庭区分不同个体,录入底库后可准确识别"
version: "1.0.22"
license: "MIT-0"
---

# 🐱 Cat Face Recognition 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.

Local photos and videos are analyzed through a remote API without a clear user-facing data-transfer warning.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

Although cloud APIs are mentioned, the workflow does not clearly warn that selecting a local file sends its contents to a third party or require informed authorization before transfer. Cat photos and household surveillance videos can include people, private interiors, and sensitive metadata, making this a meaningful privacy risk.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but does not prevent recognition.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to perform analysis, but execution never checks the flag. With an input or --list, the command proceeds into analysis or remote history retrieval, potentially uploading private media despite the user's explicit non-execution choice.

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

The method reads the entire local media file and passes its bytes to the analysis API without any disclosure or authorization check in this path. Household cat footage may contain people and private surroundings, so treating local-file selection as implicit permission for third-party upload creates a privacy exposure.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to perform analysis, but it is never checked and execution can proceed to analyze the supplied video.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never honored, so supplying a video still reaches analyze_video. A user expecting configuration-only behavior can consequently trigger remote processing and media transfer; identity initialization and history queries also remain possible.

Content

No source excerpt is available for this finding.

The skill includes human account and credential storage unrelated to its stated cat-identification purpose.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The User model stores human identity information, including real names, email addresses, birthdays, and authentication tokens (L454–L461), and UserDao exposes inherited CRUD operations for these records. DAO initialization also creates and migrates the sys_user table (L180–L215). Managing human profiles and credentials is not an obvious requirement of comparing registered cat faces and is not declared in the manifest.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its write-only behavior.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generic open helper opens every supplied path in 'w' mode, immediately erasing existing contents even before the caller writes anything. No docstring, comment, confirmation, or action log explains this destructive behavior; the exception handler only handles failures.

Content

No source excerpt is available for this finding.

The request helper silently registers a remote platform user, beyond the declared cat-identification and cat-database registration workflow.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

An ordinary API request can implicitly invoke phoneLogin with silent=1 and register=1, transmitting the current identity as both openId and mobile. Platform authentication may support cat recognition, but the supplied workflow performs remote account enrollment without a separate consent or provisioning step.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration and persist returned authentication tokens.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The request wrapper hides remote registration and persistence of returned token and openToken values behind a routine HTTP operation. This creates undisclosed account and credential-retention side effects beyond the user's immediate cat-identification request; it overlaps with SDI-1 rather than establishing a separate attack.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

This POST sends the selected identity to a remote login/registration endpoint without a consent gate in the shown request path. External requests are not inherently unsafe for a hosted recognition service, but this particular request discloses identity and requests account creation; the endpoint configuration is unavailable, so malicious ownership or insecure transport cannot be inferred.

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 YAML files, including during module import.

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load creates the parent directory and writes a configuration file when the requested path is absent, without a warning, log, comment, or docstring disclosing this side effect. BaseEnum.init_subclass calls this loader during class creation (L053 and 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:

The ai_chat docstring claims to invoke the OpenClaw agent, but subprocess execution is disabled and no analysis is performed.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly promises an OpenClaw agent invocation through subprocess. However, the invocation at L61-L66 is commented out, and the replacement empty dictionary at L68 causes an attribute error at L70 that is caught and suppressed, so the method returns no analysis result.

Content

No source excerpt is available for this finding.