Back to skill

Security audit

icon-designer-generator

Security checks for vulnerabilities and agentic risk

Overview

This cloud image-generation skill is mostly coherent, but it needs review because it tells users to run an unpinned npm command with an API key and documents broader image-editing features than its icon-focused name suggests.

Review before installing. Use this only if you are comfortable sending prompts, reference images, design configuration, and session details to the OneKey/DeepNLP/Craftsman service. Prefer the curl/API path or a pinned and verified `onekey` CLI in a restricted environment, avoid confidential or proprietary images, and do not use the watermark-removal capability unless you have clear rights to do so.

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

T08 · Insecure Dependencies

Warning
Location
SKILL.md:589
Finding

Unpinned Package Download and Execution Through npx

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 589-592
Vulnerability Type: Supply-chain exposure through unpinned third-party package execution
Risk Level: Medium

bash
export DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key
npx onekey agent craftsman-agent/craftsman-agent image_generator '{"prompt":"Introduction to Difference between MCPs,Skills and Agents CLIs","images":[],"card_count":1,"template_id":"icon-designer","api_id":"image_generator","asset_size":[{"width":1080,"height":1080,"ratio":"1:1"}],"mode":"basic","session_id":"31d57eb9-9a37-4808-9c5b-1bfbb2abf5fb","session_name":"AI Poster of MCPs/CLIs/Agents","tag_list":"","model":"default","styles":["Editorial grid layout with corporate dark deep monochromatic tones"],"design_config":{"template_id":"icon-designer","card_count":1,"card_count_source":"default","channel_profile":"generic","audience_profile":"general","age_band":"auto","profile_version":"1.0.0","geometry_source":"profile","resolved_profiles":[{"type":"channel","id":"generic","version":"1.0.0"},{"type":"audience","id":"general","version":"1.0.0"}],"language":"auto","mode":"standard","text_model":"default","image_model":"default","styles":["Editorial grid layout with corporate dark deep monochromatic tones"],"constraints":["Limit target output build to 6 high-density pages max for physical double folding print"],"brief_inputs":[{"id":"binp-1","type":"prompt","content":"Introduction to Difference between MCPs,Skills and Agents CLIs"},{"id":"binp-2","type":"style","content":"Editorial grid layout with corporate dark deep monochromatic tones"},{"id":"binp-3","type":"constraint","content":"Limit target output build to 6 high-density pages max for physical double folding print"},{"id":"binp-1786857754660","type":"prompt","content":"Custom newly configured prompt parameter specifications instructions layout metric..."}],"text_styles":{"brand":{"color":"#8b5cf6","font":"Playfair Display","font_size":"20px","font_weight
...[truncated 3963 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin the CLI to an explicitly reviewed version, for example npx --no-install onekey after controlled installation or an exact-version invocation such as npx onekey@X.Y.Z.
  2. Declare the dependency in a package manifest and commit a lockfile containing resolved versions and integrity hashes.
  3. Install dependencies in a controlled build step using a locked installation command such as npm ci.
  4. Review the selected package, its transitive dependency tree, publisher provenance, and lifecycle scripts before use.
  5. Disable package lifecycle scripts where they are unnecessary, such as by using npm ci --ignore-scripts, while confirming that this does not break required behavior.
  6. Prefer a verified local binary and use npx --no-install to prevent opportunistic network retrieval during Skill execution.
  7. Expose the gateway key only to the verified process that requires it. Use a short-lived, least-privilege credential with quota and scope restrictions.
  8. Run the CLI in a restricted environment or container with minimal filesystem access, limited outbound networking, and no unrelated secrets in the environment.
  9. Add dependency vulnerability and provenance checks to release procedures and rotate the gateway key promptly if package compromise is suspected.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (17)

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill is presented as an icon designer, but the documentation advertises broader capabilities including carousels, presentations, app-store assets, logos, and photo editing. This scope mismatch can mislead users and reviewers about what the skill actually does, increasing the chance that sensitive inputs are routed to functions the user did not intend to invoke.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The documentation instructs users to upload reference images and prompts to a third-party endpoint but does not clearly warn that user content and metadata will leave the local environment. This creates a privacy and compliance risk, especially if users submit sensitive images, proprietary designs, or confidential prompts under the assumption that processing is local or minimally scoped.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

The skill explicitly sends user prompts, image references, session metadata, and an API key to an external service at agent.deepnlp.org. External transmission is not inherently malicious, but it is security-relevant because it can expose confidential content or credentials to a remote processor and broadens the trust boundary beyond the local agent.

Content

Scanner excerpt · SKILL.md (reported line 63)May include surrounding context.

bash
export DEEPNLP_ONEKEY_ROUTER_ACCESS=your_access_key

curl -X POST "https://agent.deepnlp.org/agent_router" \
-H "Content-Type: application/json" \
-H "X-OneKey: $DEEPNLP_ONEKEY_ROUTER_ACCESS" \
-d '{

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 108)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 110)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 111)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 112)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 113)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 114)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 115)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 116)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 117)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 118)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 120)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 121)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 122)May include surrounding context.

md
### Design Config Layers AI Brief

| Field       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| template_id | Template ID, supported values: icon-designer,social-media-carousel,presentation,app-store,icon-designer,logo-designer,photo-editor                                                                                                                                                                                                                                                                                                                                                                                                                    |
| card_count  | 4                                                                                                                                                                                                                                                                                                            
...[truncated 25 chars]

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

Advertising watermark removal under a skill branded as an icon designer introduces an unrelated and abuse-prone image-editing capability. Watermark removal can facilitate copyright circumvention and expands the operational scope into higher-risk content manipulation without clear justification or guardrails.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.