Back to skill

Security audit

Feed Intake Estimation | 畜禽采食量估算

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report account and credential handling, undisclosed external data transfers, and behavior that does not clearly match its livestock feed analysis purpose.

The verdict is suspicious, not a claim that the author is malicious. Before installing, consider whether you are comfortable with the reported video uploads, account creation, credential handling, and local data retention. The scan was partial because a referenced local path was missing, so it does not establish that all referenced material was reviewed.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk implements generic persistence centered on a sys_user table containing usernames, real names, email addresses, demographic fields, and tokens. It contains no video processing, livestock tracking, feed estimation, trend generation, or anomaly detection. Database storage could support the declared skill, but this chunk's user-account and token-management functionality has no demonstrated connection to that purpose. This assessment is limited to the supplied code; it does not establish that the complete skill lacks the declared video-analysis functionality or that stored tokens are exfiltrated.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Ordinary formatting, filesystem, and HTTP helpers can support the declared task and are not independently a mismatch. However, this chunk also implements an undeclared account, authentication, and billing workflow involving local identity data and external services. The request wrapper attaches credential headers even when callers supply an absolute URL, without a visible destination restriction. These behaviors materially exceed the stated video-based feeding analysis purpose. The assessment is limited to this utility chunk: the absence of feeding-analysis code here does not establish that the broader skill lacks it, and the account/network operations generally occur when the relevant methods are called.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The visible implementation does not carry out the declared purpose. Its only substantive method is an incomplete agent-chat wrapper, and it does not actually execute an external agent because the subprocess code is commented out. Imported base classes and services are not supplied, so their behavior cannot be assessed; the mismatch finding is limited to the visible code.

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-feed-intake-estimation-analysis"
description: "Estimates daily feed intake per livestock individual from continuous feeder videos by tracking the change of feed remaining in the trough, and outputs intake trend with anomaly alerts. | 通过食槽视频估算每日采食量变化,异常时预警。"
version: "1.0.21"
license: "MIT-0"
---

# 🥣 Livestock Feed Intake Estimation | 畜禽采食量估算

> 通过食槽视频估算每日采食量变化,异常时预警。
>
> **精准饲喂计量中枢** · 食槽区域连续视频智能分析 · 剩余料量变化估算 · 每日采食量趋势 · 异常预警 · 历史报告

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 does not prevent it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The script parses --export-env-only but never checks it, so supplying this flag with an input still invokes normal analysis. A caller relying on the explicit no-analysis promise can unintentionally submit farm footage to the service and potentially incur service charges.

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

The code reads the entire local input file and passes its contents to the analysis API as a file attachment. No prompt, user-facing log, or comment in this file explains that local video data will be transmitted to a service; the comment only describes reading the file.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but is ignored and permits normal video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The no-analysis flag is defined but never used to control execution, allowing identity initialization and normal analysis or report retrieval to proceed. Users or automation treating it as a side-effect-free mode can unintentionally transmit media or initiate service operations.

Content

No source excerpt is available for this finding.

The DAO provides user-profile and authentication-token management unrelated to livestock feed-intake estimation.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

L448-L465 define a system-user table containing personal information and authentication tokens, and L470-L473 expose it through a DAO inheriting create, read, update, and delete operations. Managing human user profiles and credentials is not justified by the manifest's video-based feed-intake analysis and anomaly-alerting purpose; this goes beyond ordinary persistence of intake measurements.

Content

No source excerpt is available for this finding.

ai_chat documents agent execution but performs no analysis and returns no result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L24–L35 promises to invoke the openclaw agent through subprocess and return an analysis result or session ID. The invocation is commented out at L61–L66; instead, L68 assigns an empty dictionary, and accessing result.stderr raises an exception that is caught, causing an implicit None return. This contradicts the documented analysis behavior rather than merely changing an implementation detail.

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

The generically named open helper always uses mode 'w', which immediately erases an existing file's contents even before anything is written. There is no docstring, comment, confirmation, or action log explaining this behavior; exception tracing only runs after a failure.

Content

No source excerpt is available for this finding.

HTTP requests can silently register remote user accounts and persist authentication data, beyond the stated feed-analysis purpose.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

An ordinary request can automatically invoke a remote login endpoint with registration enabled and persist returned profile data and tokens without a separate enrollment decision. This introduces undisclosed account creation, identity transmission, and credential retention beyond the stated feed-analysis workflow; it does not by itself establish malicious intent.

Content

No source excerpt is available for this finding.

An ordinary HTTP request can silently trigger remote account registration.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The HTTP helper embeds a registration-capable login request with both 'silent' and 'register' enabled. Consequently, callers performing routine feed-analysis requests can trigger a persistent external account action without an explicit registration step.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

This POST transmits the selected identity as both openId and mobile to a configured remote login service without a separate consent step. More seriously, the caller prioritizes ApiEnum.API_SECRET_KEY as that identity, so when authentication tokens are missing, an API secret can be copied into registration fields and potentially retained in remote account records or logs.

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 automatic trigger “历史报告” (“historical reports”) is not restricted to livestock feed-intake reports.

Low
Category
Trigger Abuse
Confidence
93% confidence
Finding

The generic historical-reports trigger is coupled to mandatory automatic cloud querying, so an unrelated history request can initiate an unintended external operation. In a shared assistant context, this can also surface livestock report information when the user intended a different report domain.

Content

No source excerpt is available for this finding.

The configuration loader silently creates directories and a configuration file when the requested file is missing.

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load performs filesystem writes without a prompt, log, docstring, or explanatory comment disclosing this behavior. Because BaseEnum.init_subclass invokes this loader during class creation (L052–L053), merely importing this module can create config.yaml, an unexpected side effect for a configuration read.

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