Back to skill

Security audit

Estrus/Mating Behavior Detection | 畜禽发情/配种行为识别

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly a disclosed cloud video-analysis wrapper, but it silently manages identity and tokens and ships with unsafe plaintext development endpoints.

Review before installing. Expect uploaded barn media or supplied video URLs, an internal identity, and report-history requests to be sent to the vendor service; do not use this package unless the configuration is changed to HTTPS production endpoints and you accept workspace storage of identity and tokens.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
skills/smyx_common/scripts/config-dev.yaml:2
Finding

Sensitive Media, Identity Data, and Authentication Tokens Transmitted over Plaintext HTTP

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
skills/smyx_common/scripts/util.py:586
Finding

Reusable Authentication Tokens Stored Unencrypted in a Shared Workspace Database

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
skills/smyx_analysis/requirements.txt:1
Finding

Ambiguous YAML Dependency Declaration Creates Supply-Chain Risk

Content
View full analysis
Remediation
View remediation
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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (59)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The combination of external HTTP communication, token management, local identity persistence, filesystem inspection/creation, and absent domain-specific processing is a strong indicator that the skill’s real capabilities exceed its stated purpose. This is dangerous because deceptive or incomplete disclosure can cause sensitive media and user context to be transmitted, stored, and linked in ways reviewers and users do not expect.

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-estrus-mating-behavior-detect-analysis"
description: "Detects estrus behavior in female livestock from continuous barn videos — including mounting acceptance, standing reflex, restlessness, appetite drop and vulva changes — and outputs an estrus recognition result with the optimal mating time window. | 识别母畜发情期行为特征(爬跨、静立反射等),优化配种时机。"
version: "1.0.8"
license: "MIT-0"
---

# 💞 Livestock Estrus & Mating Behavior Detection | 畜禽发情/配种行为识别

> 识别母畜发情期行为特征(爬跨、静立反射等),优化配种时机。
>
> **精准繁殖识别中

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The code reads a workspace identity file and, if absent, creates and persists a default user identity in local storage. For an estrus-detection skill, silent identity discovery and persistence are unjustified and dangerous because they establish durable tracking identifiers without clear necessity or user awareness.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The utility layer performs broad tokenized API interaction, user identity resolution, and account lifecycle behavior unrelated to livestock estrus-video analysis. This creates an unnecessary data-exfiltration and unauthorized external-service interaction surface, especially because the code automatically attaches identity fields and tokens to outbound requests.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

This code can silently self-register or log in a user against an external health platform using generated or recovered identifiers. That behavior is unrelated to the stated livestock-analysis purpose and could create unauthorized accounts, transmit identity data off-device, and bind local activity to an external service without informed consent.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The request layer automatically transmits identity-linked fields and authentication headers such as X-Access-Token, X-Api-Key, Authorization, and pnaUserName. In a skill whose purpose is livestock estrus recognition, this undisclosed outbound sharing is disproportionate and creates significant privacy, account-abuse, and credential-exposure risk if endpoints are misused or compromised.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill declares no explicit tool scope or permissions, yet the manifest instructs use of shell commands, local file handling, network access, and references environment/config usage. This creates an overprivileged, weakly-bounded execution surface where an agent may invoke sensitive capabilities without transparent least-privilege constraints.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The history-report trigger phrases are broad enough that ordinary user language could unintentionally invoke cloud history retrieval. This can cause unintended disclosure of account-linked report metadata or actions beyond the user’s immediate request, especially because the skill mandates direct API querying.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill states that uploaded files are automatically saved locally, but it does not clearly warn users about storage location, retention, access controls, or deletion behavior. Automatic local persistence of media increases privacy and data-handling risk, particularly for continuous video files that may contain sensitive operational information.

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 surrounding help text present the tool as a livestock estrus/mating behavior recognizer, but the --pet-type option contradicts that by documenting only cat, dog, and other. This is an active intent/documentation conflict that would mislead users about what species and use case the tool actually supports.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest describes a specialized skill for detecting estrus behavior in female livestock from barn video, but the exposed interface asks for a generic pet-type of cat, dog, or other. This indicates the implemented skill is not actually scoped to livestock-specific estrus analysis as claimed, but instead appears repurposed from a broader or different animal-analysis workflow.

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 = 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

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill accepts arbitrary HTTP/HTTPS video URLs and forwards them to the backend analysis service, which expands behavior beyond the stated local barn-video analysis scope. This can enable unintended access to external resources, privacy issues, and possible server-side request misuse if the downstream service fetches attacker-controlled URLs.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.install_untrusted_source

Install source points to URL shortener or raw IP.

Warn
Code
suspicious.install_untrusted_source
Location
skills/smyx_common/scripts/config-dev.yaml:2