Back to skill

Security audit

Livestock Fever Detection | 畜禽体温异常检测

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this livestock imagery skill suspicious with high confidence because scanners report undeclared account and credential handling, broad network behavior, and media uploads that may ignore the requested destination.

Consider the suspicious verdict and the reported handling of media, identity, and credentials before installing. Skillspector's scan was partial: it inspected all listed components, but a local reference in SKILL.md could not be resolved, so the evidence is incomplete.

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

Ignored API destination override sends selected media to the default cloud service

Content
View full analysis

Impact

Confidential farm imagery or videos intended only for an approved endpoint are uploaded to a different external recipient. The supplied destination is silently ignored rather than rejected.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk is a user-oriented database module. Its concrete model stores usernames, real names, email addresses, demographic information, and tokens, and its DAO exposes operations for managing those records. It contains no image ingestion, thermal-feature extraction, temperature assessment, or warning generation. Database persistence could support a larger detection skill, but this chunk's user-management functionality is not connected to that declared purpose. No network transmission or token collection is shown; the observed mismatch is the unrelated persistence and user-management capability.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

String, date, file, and polling helpers could reasonably support the declared image-analysis skill and are not themselves mismatches. However, this chunk also implements substantial account provisioning, identity persistence, credential handling, and payment-related behavior that the description does not disclose. No image processing, temperature estimation, or abnormal-temperature warning logic is present in the supplied chunk. These capabilities occur when the relevant helpers are invoked; the chunk alone does not establish that they execute during every skill run or that credentials are sent to a malicious destination.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied code does not implement the declared temperature-monitoring workflow. Its only substantive method is an inactive, broken agent-chat wrapper; it does not actually execute the commented-out subprocess command. Imported base classes and API services are not supplied, so their behavior cannot be assessed, but the visible chunk does not substantiate the declared purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied chunk implements general API access rather than image analysis, temperature assessment, or health-warning generation. Networking could support the declared purpose, but this chunk exposes resource-management and user-lookup capabilities without any visible connection to that purpose. This finding is limited to the supplied code; it does not establish malicious behavior or rule out relevant functionality elsewhere.

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-livestock-fever-detection-analysis"
description: "Detects abnormal body temperature rise or drop in livestock and poultry from thermal or visible-light imagery, and outputs fever/hypothermia early warnings based on visual thermal features. | 通过热成像或视觉特征识别畜禽体温异常,预警发热。"
version: "1.0.22"
license: "MIT-0"
---

# 🌡️ Livestock Fever & Hypothermia Detection | 畜禽体温异常检测

> 通过热成像或视觉特征识别畜禽体温异常,预警发热。
>
> **群体体温预警中枢** · 热成像/可见光智能分析 · 个体体温异常识别 · 早期发热预警 · 历史

The HTTP helper can forward service credentials and user identity to arbitrary caller-supplied destinations.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs while automatically attaching X-Access-Token, X-Api-Key, Authorization, and user identity. If an untrusted URL reaches this helper, an attacker-controlled destination can receive service credentials; HTTP destinations additionally expose them in transit.

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 generic phrase “历史报告” (“historical reports”) automatically triggers livestock report retrieval without requiring livestock or temperature-screening context.

Medium
Category
Trigger Abuse
Confidence
96% confidence
Finding

The generic phrase meaning 'historical reports' is an automatic trigger even without livestock context, and the workflow mandates an immediate cloud query. This can cause unrelated requests to retrieve and display livestock health records or initiate account-related network activity without sufficiently specific user intent.

Content

No source excerpt is available for this finding.

The documented --export-env-only mode still executes analysis instead of only printing environment-export commands.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser promises that --export-env-only will not perform analysis, but the parsed flag is never checked. With media input supplied, execution proceeds into analysis and can transmit that media despite the caller explicitly selecting a non-analysis mode; identity initialization also occurs before any such guard.

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 submitted to an analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The code reads the complete local video into memory, packages it as a file attachment, and passes it to the analysis API. Although analysis is the stated operation, this file provides no prompt, log, docstring, or comment explaining that local video data is transmitted for processing; the comment only describes reading the file.

Content

No source excerpt is available for this finding.

The documented environment-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The environment-only option explicitly promises not to analyze media, yet its value is never consulted after parsing. A caller supplying this flag alongside input can still trigger remote video analysis, violating the caller's expressed restriction and potentially disclosing sensitive farm footage.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and credential management unrelated to livestock temperature detection.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The User model stores personal information and credentials, including real names, email addresses, birthdays, token, and open_token (L448-L465). UserDao inherits database read, write, update, and delete operations (L470-L473), providing account-management capabilities not justified by the manifest's image-based fever/hypothermia detection purpose.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims agent execution and analysis output, but the implementation never invokes the agent.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 says this method invokes the openclaw agent through subprocess, and L33–L34 promise an analysis result or session ID. However, the subprocess invocation is commented out at L61–L66, and the empty dictionary assigned at L68 causes result.stderr to raise an exception that is caught at L81, leaving the method to return None without performing analysis.

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

At L101, opening the supplied path in 'w' mode immediately erases any existing contents, even before the caller writes data. The generic open method has no confirmation, explanatory comment or docstring, or user-facing notice describing this behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently registers or logs in a remote user and persists account credentials, beyond the advertised imagery-analysis workflow.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

A general HTTP operation can implicitly invoke phoneLogin with silent registration enabled, then persist returned account information and tokens. This creates remote account and local credential-storage side effects without an explicit enrollment step, which is not apparent from the advertised livestock-image analysis purpose.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently transmit an identity and register a remote account.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The login payload explicitly enables silent registration and sends the selected identity as both openId and mobile. Making account creation an implicit consequence of an ordinary request bypasses a clear user decision about remote enrollment and identity disclosure.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

This POST transmits the automatically selected identity and source metadata to a remote account endpoint without a separate consent step. The identity selection can prefer API_SECRET_KEY, so the payload may also duplicate a credential into identity fields where it could receive broader logging or retention.

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

Low
Category
Output Handling
Confidence
90% confidence
Finding

YamlUtil.load creates the parent directory and writes a YAML file when the requested path is missing, without a comment, docstring, prompt, or log disclosing this side effect. BaseEnum.init_subclass invokes this loader during class definition (L044–L059), so merely importing the module can modify the filesystem.

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