Back to skill

Security audit

Livestock Individual Identification | 畜禽个体识别与追踪

Security checks for vulnerabilities and agentic risk

Overview

This skill is a cloud livestock-analysis wrapper, but it also silently creates or reuses an identity and stores service tokens locally, so users should review it before installing.

Install only if you are comfortable sending livestock media and report-history requests to the configured lifeemergence.com services and allowing the skill to create or reuse a local identity with persisted service tokens. Prefer explicit confirmation before history lookups, and review or clear the workspace data database if shared machines or sensitive farm records are involved.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (54)

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combined behaviors—external API calls, auth header handling, local file writes, workspace detection, user identity creation/retrieval, and generic polling helpers—represent a much broader operational footprint than the manifest suggests. This is dangerous because it creates covert data movement and state persistence pathways in a skill users would reasonably assume is a simple media-analysis wrapper.

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-individual-analysis"
description: "Identifies individual livestock (pigs, cattle, sheep) by facial or body-pattern features and outputs a stable individual ID with confidence for precision farm management and tracking. | 通过面部/体纹识别畜禽个体,实现精准管理追踪。"
version: "1.0.15"
license: "MIT-0"
---

# 🐄 Livestock Individual Identification & Tracking | 畜禽个体识别与追踪

> 通过面部/体纹识别畜禽个体,实现精准管理追踪。
>
> **精准养殖识别中枢** · 面部/体纹智能比对 · 个体身份识别 · 追踪管理 · 历史报告云端查询

---

##

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest says the skill identifies individual pigs, cattle, or sheep and returns a stable individual ID with confidence. In this file, the main analysis path accepts a local or remote video input, uploads it under a generic 'file'/'videoUrl' parameter, and returns generic 'analysis report' content without any livestock-specific logic or extraction of stable IDs/confidence fields.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The implementation does not align with the advertised livestock-identification purpose and instead acts as a generic video-analysis/history-list client. This kind of capability mismatch is dangerous because users may grant trust, data, or permissions based on the declared purpose, while the code can send arbitrary local paths or remote URLs to backend analysis functions and enumerate prior analysis history via open_id.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

This utility layer creates and persists platform user identities and reuses them as a hidden default execution context, which is unrelated to livestock identification. That behavior can silently bind skill activity to an undisclosed account, create unauthorized records, and enable downstream API actions under credentials the user never explicitly approved.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The HTTP helper performs login/registration, token bootstrap, token refresh retries, and local token persistence as part of ordinary request flow, far beyond the skill's declared purpose. In this context, the skill can silently authenticate to external services and operate under provisioned identities, increasing the risk of covert account usage, data exfiltration, and unauthorized API access.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
84% confidence
Finding

The skill declares no explicit tool or permission scope even though the manifest instructs use of shell execution, network access, local file handling, and likely environment-backed identity/config resolution. In an agent setting, missing least-privilege boundaries increases the chance that the skill can be invoked with broader capabilities than users expect, especially because it also saves files locally and queries remote services.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The automatic history-query trigger phrases are broad enough that common user language could unintentionally invoke cloud-side report listing. Because report listing is identity-linked and accesses historical data, accidental triggering can expose more information than the user intended to request.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The example keyword list for auto-triggering history/report listing is vague and open-ended, which can normalize over-eager invocation behavior in implementations. In a skill that accesses prior records, ambiguous triggers increase privacy and authorization risk through unintended retrieval of historical reports.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The user-facing output header is hard-coded in Chinese ("畜禽个体识别与追踪结构化结果") with no indication that the skill is region-specific or that users can choose their preferred language. This creates a natural-language locale policy issue because the skill imposes a specific language without opt-in.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The parser description and help text say this tool performs livestock individual recognition and tracking, yet the very next argument definition constrains the species/category to pet-oriented values. That is an active contradiction in the file's own documentation and interface semantics, not merely an omitted detail.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest specifically describes identifying individual livestock, but the exposed interface only accepts pet-type values of cat, dog, and other. This is a semantic mismatch between the advertised livestock-focused capability and what the code actually presents and configures at runtime.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The script silently resolves and initializes an internal identity via OpenIdUtil.resolve_current_open_id using a hidden parameter and without clear user disclosure. In a tracking/analysis skill, implicit identity binding can cause actions, history retrieval, or data association to occur under an unintended user context, creating privacy and authorization risks if records are segregated by open_id.

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