Back to skill

Security audit

Daily Beauty

Security checks for vulnerabilities and agentic risk

Overview

This skill is mostly coherent as an image-fetching workflow, but it can send results to a hardcoded Feishu user and processes unvalidated remote images locally.

Review this skill before installing. It should only be used if you intentionally want Xiaohongshu image retrieval, local image storage/conversion, persistent deduplication records, and Feishu delivery. Remove or parameterize the hardcoded Feishu recipient, require confirmation before sending, enforce HTTPS and host allowlists for image downloads, add file size/type checks, and avoid or sandbox ImageMagick processing of remote content.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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 (2)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:52
Finding

Hardcoded Feishu Recipient Redirects Skill Output to a Fixed Third Party

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
daily_beauty.py:234
Finding

Unvalidated MCP-Supplied URLs Enable SSRF and Unsafe Image Processing

Content
View full analysis
= 9: break note_card = feed.get("noteCard", {}) cover = note_card.get("cover", {}) width = cover.get("width", 0) height = cover.get("height", 0) url = cover.get("urlDefault", "") or cover.get("urlPre", "") # Check whether it is a full-body photo if not self.is_full_body_photo(width, height): continue # Check whether it has already been pushed if url in self.pushed_images.get("images", []): continue selected_images.append({ "url": url, "width": width, "height": height, "title": note_card.get("displayTitle", "") }) return selected_images[:9] def download_images(self, images): """Download images""" IMG_DIR.mkdir(parents=True, exist_ok=True) downloaded = [] for i, img in enumerate(images, 1): url = img["url"] webp_path = IMG_DIR / f"beauty_{i}.webp" png_path = IMG_DIR / f"beauty_{i}.png" # Download image try: resp = requests.get(url, timeout=30) with open(webp_path, "wb") as f: f.write(resp.content) # Convert to PNG subprocess.run( ["convert", str(webp_path), str(png_path)], capture_output=True, check=True ) downloaded.append({ "url": url, "path": str(png_path) }) print(f"Downloaded image {i}/9: {img['title']}" ...[truncated 3366 chars]
Remediation
View remediation
Vulnerability Patterns
  • 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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (18)

Vague Triggers

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger phrases are broad, common conversational terms like '美图' and '看美女', making accidental invocation likely during ordinary chat. Because the skill performs external searching, image downloading, and state updates, unintended activation can cause undesired content retrieval and side effects without clear user intent.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill invokes a Python script and documents behavior that includes network access, local file reads/writes, and message sending, but it declares no explicit tool scope or permissions. This creates an over-privileged, opaque execution model where users and the platform cannot easily constrain what the skill may access or modify.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill description states that it downloads images and updates deduplication records, but it does not clearly warn users that local files will be modified as part of normal execution. Hidden side effects reduce informed consent and can surprise operators by persisting tracking data across runs.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill includes instructions to send images to a specific Feishu user via the message tool, but it provides no privacy warning or consent boundary for transmitting downloaded content to an external recipient. This can result in unauthorized sharing, misdelivery, or covert exfiltration of content and metadata outside the local environment.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The natural-language description and behavior are entirely framed in Chinese and target Chinese-platform content, with no indication that language choice is optional or that the locale restriction is a documented requirement. This can violate language/locale policy when a skill implicitly forces a specific language without user opt-in.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · daily_beauty.py (reported line 44)May include surrounding context.

python
def init_session(self):
        """初始化 MCP 会话"""
        resp = requests.post(
            MCP_URL,
            headers=self.headers,
            json={

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · daily_beauty.py (reported line 64)May include surrounding context.

python
def init_session(self):
        """初始化 MCP 会话"""
        resp = requests.post(
            MCP_URL,
            headers=self.headers,
            json={

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

The skill transmits search keywords and triggers retrieval of third-party platform content through a local MCP service without any consent, disclosure, or validation of the downstream service’s trustworthiness. While the endpoint is localhost, it acts as a proxy to external data sources, so this still represents outbound data flow and dependency on a local privileged broker.

Content

Scanner excerpt · daily_beauty.py (reported line 78)May include surrounding context.

python
def search_feeds(self, keyword):
        """搜索帖子"""
        resp = requests.post(
            MCP_URL,
            headers=self.headers,
            json={

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

The skill sends user/profile identifiers and tokens to a local MCP broker to fetch account profile data, creating a trust boundary with a local service that may have broader network access. If the MCP service is compromised or overly permissive, this can expose browsing targets and enable unintended data collection or abuse of platform access tokens.

Content

Scanner excerpt · daily_beauty.py (reported line 102)May include surrounding context.

python
def get_user_profile(self, user_id, xsec_token):
        """获取用户主页"""
        resp = requests.post(
            MCP_URL,
            headers=self.headers,
            json={

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script automatically downloads remote images into a local workspace without explicit user confirmation, content validation, or size restrictions. This creates a trust boundary issue: untrusted external content is persisted locally and may consume storage, introduce harmful files, or be processed later by other tools.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill invokes an external image-processing subprocess on downloaded, untrusted files without warning or isolation. This increases risk because malformed images can target vulnerabilities in the converter, and the user is not informed that local execution on remote content will occur.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
92% confidence
Finding

The script executes an external ImageMagick convert binary on files downloaded from remote URLs. Processing attacker-controlled image content with a complex native parser expands the attack surface and can lead to command-adjacent abuse or exploitation of image parsing vulnerabilities in the converter, even though shell injection is not present here because arguments are passed as a list.

Content

Scanner excerpt · daily_beauty.py (reported line 281)May include surrounding context.

python
f.write(resp.content)
                
                # 转换为 PNG
                subprocess.run(
                    ["convert", str(webp_path), str(png_path)],
                    capture_output=True,
                    check=True

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The manifest describes a content-selection/push skill that searches Xiaohongshu and returns 9 images. While downloading images is an expected implementation detail, spawning a local system executable (convert) introduces host-level execution capability that is not implied by the stated purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The manifest describes returning 9 full-body images for one blogger when triggered, but this data file holds hundreds of image URLs accumulated over time. That indicates the skill persists a historical corpus of fetched images, which is broader behavior than the user-facing description suggests.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
81% confidence
Finding

For a skill whose stated purpose is to search and return one blogger's 9 images on request, keeping a long-lived local index of many remote image URLs adds data-retention capability beyond simple request-time retrieval. This persistence can enable tracking, replay, or redistribution of a much larger set of images than the manifest describes.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

All image URLs use plain HTTP, which allows network attackers to intercept or modify the image responses in transit. In a skill that renders remote media to users, this creates a realistic content-tampering and tracking surface, and could expose users to malicious or inappropriate substituted content if the client fetches these links directly.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file presents all skill content in a single language and does not indicate that the user can choose another language or that the skill is intentionally limited to a Chinese-language context. Under the policy criteria, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The entire whitelist document is written in Chinese and provides no indication that language selection is optional or that the skill is intentionally limited to Chinese-speaking users. Under the stated policy, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.