Back to skill

Security audit

Adobe Firefly 图片生成替代|AI 图片生成与编辑

Security checks for vulnerabilities and agentic risk

Overview

The skill’s image-generation purpose is coherent, but it needs review because API responses can choose unvalidated upload and download network destinations.

Install only if you are comfortable sending prompts, selected reference images, and an AI Hive API key to this service; use a virtual environment, avoid sensitive internal images, and consider running it from a network where unintended requests to private services would have limited impact.

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

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/imagegen.py:231
Finding

Unvalidated API-Supplied Upload and Download URLs Enable Network Request Redirection

Content
View full analysis
0: pct = int(downloaded * 100 / total) bar = "█" * (pct // 5) + "░" * (20 - pct // 5) print( f"\r {bar} {pct}% ({downloaded // 1024}KB)", end="", flush=True, ) print() size_mb = downloaded / (1024 * 1024) ...[truncated 3780 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
SKILL.md:53
Finding

Unpinned Third-Party Dependency Installation Instruction

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding

The skill invokes local scripts, installs dependencies, reads input images, may write outputs, and sends data to a remote API, but it does not declare any explicit tool or permission scope. This creates a trust and review gap: an agent may grant broader shell, file, environment, and network capabilities than users expect, increasing the risk of unintended file access or exfiltration when the skill is executed.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description and primary instructions are written in Chinese and present the skill behavior in that language without stating that users may choose another language or locale. This can violate a language/locale policy when a skill implicitly enforces one language without opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This code file contains user-facing natural-language strings and documentation entirely in Chinese, including operational instructions and prompts. Under the policy rule, forcing a specific language without opt-in is a natural-language policy violation unless the locale constraint is explicitly documented and justified, which is not present here.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The init flow opens a browser to a fixed service URL and appends skill-identifying query parameters (from=cli-skill&skill=...) that are not required to obtain an API key. This creates unnecessary telemetry about which skill a user is configuring and can leak usage metadata to the service or intermediaries, even though it does not expose the API key itself.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.